Metodos de como acessar/editar discos de VM em formato qcow2 ou raw
Método 1: libguestfs-tools (guestmount) # guestmount -a /tmp/disk-vm1-qcow2 -m /dev/sda1 /mnt/disk-vm1 ou em modo read-only # guestmount -a /tmp/disk-vm1-qcow2 -m /dev/sda1 --ro /mnt/disk-vm1 # guestunmount /mnt Método 2: libguestfs-tools (guestfish) # guestfish -a /tmp/disk-vm1-qcow2 Welcome to guestfish, the guest filesystem shell for editing virtual machine filesystems and disk images. Type: 'help' for help on commands 'man' to read the manual 'quit' to quit the shell > run 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ --:-- > mount /dev/sda [tab] /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8 > mount /dev/sda1 / > ls / grub images.lst images.lst.old vmlinux > edit /images.lst ... > unmount / > exit Método 3: (raw image) # losetup /dev/loop0 image.img # kpartx -...