[Fedora-xen] xenguest-install.py with multiple disks?

Robin Bowes robin-lists at robinbowes.com
Thu Nov 2 21:30:49 UTC 2006


Hi,

I've successfully used xenguest-install.py to do a kickstart install of
FC5 as follows:

xenguest-install.py --name=guest1 --file=/dev/vg01/lv_guest1_vm
--ram=384 --location=http://mirrors.kernel.org/fedora/core/5/i386/os/
--extra-args="ip=192.168.23.229 netmask=255.255.255.248
gateway=192.168.23.225 dns=192.168.2.203,192.168.2.204
ks=http://example.com/kickstart/guest1-fc5.cfg"

This presents a lv to the guest and the kickstart config does all the
partioning (I use lvm in kickstart too!).

However, I've decided that the best way to use multiple partitions with
xen guests is to define them as logical volumes on the Dom0 host and
pass them to the DomU guest as separate partitions.

e.g.
lvcreate --name guest1_root --size 1.2G /dev/vg01
lvcreate --name guest1_usr --size 800M /dev/vg01
lvcreate --name guest1_home --size 5G /dev/vg01
lvcreate --name guest1_var --size 15G /dev/vg01
lvcreate --name guest1_swap --size 2G /dev/vg01

Then the Xen guest disk configuration would be something like:

disk = [ 'phy:/dev/vg01/guest1_root,xvda1,w',
         'phy:/dev/vg01/guest1_usr,xvda2,w',
         'phy:/dev/vg01/guest1_home,xvda3,w',
         'phy:/dev/vg01/guest1_var,xvda4,w',
         'phy:/dev/vg01/guest1_swap,xvda5,w' ]

i.e. each lv on the Dom0 will appear as a separate partition inside the
DomU guest. The benefit of this is that all partition management will be
done in Dom0, e.g. To increase a partition size, I can shutdown the
guest, increase the lv size, grow the FS and restart the guest.

My question is:

How can I specify multiple disks for the Xen0 guest and launch a
kickstart installation?

Thanks for any thoughts.

R.




More information about the Fedora-xen mailing list