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

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


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= netmask=
gateway= dns=,

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.

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_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.


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