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

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



On Fri, Nov 03, 2006 at 12:16:52AM +0000, Robin Bowes wrote:
> Ben wrote:
> > I wrote it a while ago, but check out the hacked verison of
> > xenguest-install.py I attached here:
> > 
> > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=185860
> > 
> > I assume it would still work....
> 
> It sure does!
> 
> I updated it to include some of the changes added to the more recent
> xenguest-install.py (uuid stuff, mainly).
> 
> One small snag...
> 
> I ran it as follows:
> 
> xenguest-install-md.py --bridges="xenbr0" --file="/dev/vg01/guest1_root
> /dev/vg01/guest1_usr /dev/vg01/guest1_home /dev/vg01/guest1_var
> /dev/vg01/guest1_swap" --name=guest1 --ram=256
> --location=http://mirrors.kernel.org/fedora/core/5/i386/os/
> --extra-args="ip=192.168.23.230 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";
> 
> Each of the defined partitions were mapped as a physical disk in the
> guest, i.e. xvda, xvdb, xvdc, etc.

Yes, each 'disk' defined in the guest config file maps to a single 
block device in the guest - hence they appear as distinct device nodes

> I'd like them to appear as xvda1, xvda2, xvda3, etc.

Then you want multiple partitions instead of multiple disks.

> Any idea how to change the code to do that?

Define a single disk file in the host & pass it to the guest, and within the
guest split it up into multiple partitions.  Nb, this doesn't prevent you
from accessing individual parititions in the host if you want to - see th
kpartx tool

http://fedoraproject.org/wiki/FedoraXenQuickstartFC6#head-9c5408e750e8184aece3efe822be0ef6dd1871cd

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 


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