Tuesday Nov 25, 2008
Adding a disk image to a xvm/xen guest
Adding a disk to a linux guest.
Create a 16GB vmdk format sparse disk image:
/usr/lib/xen/bin/vdiskadm create -t vmdk:sparse -s 16g -c "extra disk" /path/to/disk/dir
Attach that new disk image to a guest:
virsh attach-disk virtual-guest /path/to/disk/dir xvdd --driver tap --subdriver vdisk
Note the use of 'xvdd' for the disk name that the linux will see the disk as.
Then one can add the disk to the linux guest's /etc/fstab:
/dev/xvdd1 /export/dsk1 ext3 noauto 0 0
And off one goes
Posted at 03:01PM Nov 25, 2008 by smg in General |
Comments: