Multipass
instalando
sudo snap install multipass
trocando o drive de virtualização
sudo snap install lxd
sudo multipass set local.driver=lxd
criando uma instancia com o nome devel
multipass launch -n devel
listando as instancias criadas
multipass list
mostrando informações da instancia devel
multipass exec devel -- lsb_release -a
entrando na vm
multipass shell devel
listando template de instalações/vm
multipass find
apagando
multipass stop devel
multipass delete devel
multipass purge
lista os tipos de redes
multipass networks
pegue o nome da rede bridge e rode o comando (troque br-04c521ab65d6 pelo o que aparecer na sua rede)
multipass launch --network "br-04c521ab65d6"
trocando drive de virtualização
sudo multipass set local.driver=libvirt
sudo multipass set local.driver=virtualbox
-c define a quantidade de cpu -m define o tamanho da memória ram -d define o tamanho do disco -n define o nome da máquina virtual
multipass launch -c 2 -m 4G -d 15G -n test2-instance
montando pasta local na vm
multipass mount ~/Downloads ubuntu-focal
alterando tamanho da memória ram
multipass stop debian11
multipass set local.debian11.memory=4G
alterando a quantidade de cpu
multipass set local.debian11.cpus=2
alterando o tamanho do disco
multipass set local.debian11.disk=20G
- multipass umount ubuntu-focal
- multipass info devel
- multipass suspend devel
- multipass exec ambiente-test -- ip -br address show scope global
- multipass launch --network name=ethernet,mode=auto
- multipass launch --bridged
- multipass launch --network <physical device>
- multipass launch --network mpbr0
transferindo dados locais para máquina virtual
multipass transfer local_file.txt good-prawn:.
vice-versa
multipass transfer ample-pigeon:remote_file.txt .
instalando debian 11 numa máquina virtual
wget http://cloud.debian.org/images/cloud/bullseye/latest/debian-11-genericcloud-amd64.qcow2
multipass launch file:///home/usuario/Downloads/debian-11-genericcloud-amd64.qcow2 -n debian11
qemu, libvirt, and lxd on Linux.
- https://qiita.com/ynott/items/01e2913539c664b6559d
- https://www.linuxhowto.net/how-to-configure-network-bridge-in-ubuntu/
- https://www.typea.info/blog/index.php/2021/03/10/create_ubuntu_multipass_kvm_bridge_network/
- https://www.ichim.co.uk/articles/Using-Multipass-on-Windows/
- https://multipass.run/docs/working-with-instances