Mount a disk image in XEN

This is an extremely simple yet extraordinarily useful command.  As root on your xen server execute the following command replace the disk image with your diskimage and the partition number if necessary.

# lomount -diskimage /etc/xen/images/ -partition 2 /mnt

Edit the required files, unmount, start the virtual machine.

Leave a Reply