Multipass
instalando
sudo snap install multipass
trocando o drive de virtualização
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"
multipass exec ambiente-test -- ip -br address show scope global
multipass launch --network name=ethernet,mode=auto
trocando drive de virtualização
sudo multipass set local.driver=libvirt
sudo multipass set local.driver=virtualbox
multipass launch -c 2 -m 4G -d 15G --network name=en0 -n test2-instance
montando pasta local na vm
multipass mount ~/Downloads ubuntu-focal
multipass umount ubuntu-focal
multipass launch -c 2 -m 2G -d 20G -n devel multipass info devel multipass suspend devel
multipass stop devel multipass start devel
transferindo dados locais para máquina virtual
multipass transfer local_file.txt good-prawn:.
vice-versa
multipass transfer ample-pigeon:remote_file.txt .
qemu, libvirt, and lxd on Linux.
multipass launch --bridged
multipass launch --network <physical device>
multipass launch --network mpbr0
- 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