Back

Mount Xen guest partition into Xen host (Dom0)

Problem:
I need to get some files from my broken virtual machine (VM) into host box to copy them into newly created VM (or repair old VM). Old VM even does not boot. Old VM had virtual HDD /dev/xvda mapped to /dev/sda7 on Xen host. There are several partitions on this virtual drive.

Solution:
To see what is available on this virtual HDD:
fdisk -l /dev/sda7

To mount:
lomount –t ext3 –diskimage /dev/sda7 –partition 2 /mnt