1. Create a 30GB file ,
dd if=/dev/zero of=fmw11g.img bs=1024k count=30000
2. Add the file /OVM/linuxvm/fmw11g.img
to the vm.cfg file , for example ,
disk = ['file:/OVM/linuxvm/System.img,xvda,w','file:/OVM/linuxvm/fmw11g.img,xvdb,w',]
3. Now start the VM by using the command ,
xm create vm.cfg
4. In the fdisk -l command , you should be able to see this file ,
For example ,
fdisk -l
Disk /dev/xvda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 13 104391 83 Linux
/dev/xvda2 14 1264 10048657+ 83 Linux
/dev/xvda3 1265 1566 2425815 82 Linux swap / Solaris
Disk /dev/xvdb: 31.4 GB, 31457280000 bytes
255 heads, 63 sectors/track, 3824 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
5. using fdisk /dev/xvdb command create a partion and format that partition
using the command ,
mkfs.ext3 /dev/xvdb1
6. After this mount this file system by adding this entry to the /etc/fstab file ,
/dev/xvdb1 /fmw11g ext3 defaults 1 2
run the command , mount -a