didattici:virt-manager
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
didattici:virt-manager [2020/06/28 11:40] – profpro | didattici:virt-manager [2021/02/07 15:52] – aggiunte dipendenze arch linux profpro | ||
---|---|---|---|
Line 1: | Line 1: | ||
===Virtual Machine Manager=== | ===Virtual Machine Manager=== | ||
- | Virt-manager è il pacchetto | + | Virt-manager è il pacchetto per la virtualizzazione [[https:// |
{{ : | {{ : | ||
Line 41: | Line 41: | ||
# virsh net-destroy default | # virsh net-destroy default | ||
----- | ----- | ||
+ | ==Arch Linux== | ||
+ | Rispetto a Debian è più difficile installare questo pacchetto su Arch Linux | ||
+ | perché le dipendenze devono essere risolte manualmente | ||
+ | |||
+ | virt-manager qemu libvirt iptables firewalld dnsmasq | ||
+ | |||
+ | oppure **ebtabled** al posto di iptables | ||
+ | |||
+ | E' necessario aggiungere se stessi al gruppo utenti | ||
+ | |||
+ | # gpasswd -a fabio kvm | ||
+ | |||
+ | Configurare la voce " | ||
+ | |||
+ | / | ||
+ | |||
+ | |||
+ | |||
+ | Piccolo script necessario su Arch Linux prima di avviare virt-manager | ||
+ | < | ||
+ | systemctl start firewalld; sleep 1 | ||
+ | systemctl start virtlogd.service; | ||
+ | systemctl restart libvirtd.service; | ||
+ | # virsh net-start default | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== | ||
approfondimento | approfondimento | ||
Line 59: | Line 94: | ||
</ | </ | ||
+ | ----- | ||
+ | Per modificare un disco qcow2 (dopo aver spento la macchina virtuale) | ||
+ | |||
+ | apt-get install libguestfs-tools | ||
+ | # | ||
+ | virt-filesystems --long --parts --blkdevs -h -a / | ||
+ | cd / | ||
+ | qemu-img create -f qcow2 -o preallocation=metadata outdisk.qcow2 8500M | ||
+ | virt-resize / | ||
+ | rimuovere vecchia immagine |
didattici/virt-manager.txt · Last modified: 2024/04/19 07:58 by profpro