Mudanças entre as edições de "Multipass"
Linha 46: | Linha 46: | ||
</source> | </source> | ||
− | pegue o nome da rede bridge e rode o comando | + | pegue o nome da rede bridge e rode o comando (troque br-04c521ab65d6 pelo o que aparecer na sua rede) |
<source lang="bash"> | <source lang="bash"> | ||
multipass launch --network "br-04c521ab65d6" | multipass launch --network "br-04c521ab65d6" | ||
</source> | </source> | ||
− | |||
− | + | multipass exec ambiente-test -- ip -br address show scope global | |
− | |||
− | multipass exec | ||
multipass launch --network name=ethernet,mode=auto | multipass launch --network name=ethernet,mode=auto | ||
+ | trocando drive de virtualização | ||
+ | <source lang="bash"> | ||
sudo multipass set local.driver=libvirt | sudo multipass set local.driver=libvirt | ||
sudo multipass set local.driver=virtualbox | sudo multipass set local.driver=virtualbox | ||
+ | </source> | ||
+ | <source lang="bash"> | ||
multipass launch -c 2 -m 4G -d 15G --network name=en0 -n test2-instance | multipass launch -c 2 -m 4G -d 15G --network name=en0 -n test2-instance | ||
+ | </source> | ||
montando pasta local na vm | montando pasta local na vm | ||
+ | <source lang="bash"> | ||
multipass mount ~/Downloads ubuntu-focal | multipass mount ~/Downloads ubuntu-focal | ||
+ | </source> | ||
multipass umount ubuntu-focal | multipass umount ubuntu-focal | ||
Linha 74: | Linha 78: | ||
multipass stop devel | multipass stop devel | ||
multipass start devel | multipass start devel | ||
+ | |||
+ | transferindo dados locais para máquina virtual | ||
+ | <source lang="bash"> | ||
+ | multipass transfer local_file.txt good-prawn:. | ||
+ | </source> | ||
+ | |||
+ | vice-versa | ||
+ | <source lang="bash"> | ||
+ | multipass transfer ample-pigeon:remote_file.txt . | ||
+ | </source> | ||
qemu, libvirt, and lxd on Linux. | qemu, libvirt, and lxd on Linux. | ||
− | https://multipass.run/docs/additional-networks | + | * https://multipass.run/docs/additional-networks |
− | https://multipass.run/docs/set-command | + | * https://multipass.run/docs/set-command |
Edição das 14h49min de 14 de agosto de 2022
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