[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to specify "disk=[....]" setting in "xl create" config?

I'm following the wiki https://help.ubuntu.com/community/Xen#Manually_Create_a_PV_Guest_VM 
(section "

Set Up Initial Guest Configuration


but in the .cfg , what should I specify for the "disk = " line? ---- my host box is not using LVM, so I'll have to use "file-backed storage" for PV disk image. (https://wiki.xenproject.org/wiki/Storage_options  , indeed this worked when I gave --dir= instead of --lvm= when running the xml-create command in https://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide )

here is my current config:

yy@yy-70A4000HUX:~/ub_xen$ cat ub_xen.cfg
name = "ubud1"

kernel = "/home/yy/ub_xen/vmlinuz"
ramdisk = "/home/yy/ub_xen/initrd.gz"
#bootloader = "/usr/lib/xen-4.4/bin/pygrub"

memory = 1024
vcpus = 1

# Custom option for Open vSwitch
vif = [ 'bridge=xenbr0' ]

disk = [ 'vdev=hda,target=/home/yy/ub_xen/images' ]

# You may also consider some other options

I ran the command with sudo xl create -c ub_xen.cfg

this worked fine first, giving me the regular install process on console, pulling install files from remote archive, but when it comes to the step of disk paritioning, it's showing me a "SCSI" partitioning choice, with no volumes / partitions/disks to be chosen.

I guess this is because I'm not setting the right value for "disk = [ ]" option. what should I use here if I use file-backed storage for PV (just like VMware does)?

thanks a lot



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.