Installer les prérequis :
sudo apt -y install libguestfs-tools
guestfish --ro -i -a /data/vms/images/116/vm-116-disk-0.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 Système d'exploitation : Ubuntu 18.04.2 LTS /dev/sda2 monté sur /
Lister les partitions :
>list-filesystems /dev/sda1: unknown /dev/sda2: ext4
Monter la partition /dev/sda2 du disque virtuel dans /mnt/vmdisk :
guestmount -a /data/vms/images/116/vm-116-disk-0.qcow2 -m /dev/sda2 /mnt/vmdisk
Démonter la partition :
guestunmount /mnt/vmdisk