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

Re: [Xen-users] Install from CD





qemu works well, as many of the partition types that Xen supports are also supported by qemu. Of course, the CD is unlikely to contain a Xen kernel, so after the install, you will need to install the modules and stuff.

here are some notes I made for a client that uses systemimager to manage their boxes; With this they can install any of their existing systemimager images to a VBD partition. (with an OVERRIDES folder that adds the modules for the xen kernel and moves /lib/tls and stuff)

this way it each domU looks to have only one partition when viewed from the dom0, but from within the domU it has all the partitions systemimager made.

first, your install image must support one of the network adaptors exported by qemu, like the NE2000 (or not use the network, that is fine as well.)

in my client's system, they were booting off a floppy that ran the systemimager stuff, so I use a floppy image, but QEMU has an option for adding a virtual cdrom drive as well.

I made the floppy image with dd if=/dev/fd0 of=floppy.img

Mount -oloop floppy.img /mnt/floppy

Edit /mnt/floppy/local.cfg

copy in new kernel

Umount /mnt/floppy


Boot the floppy with the following command on dom0:



qemu  -hda /dev/sda5   -no-kqemu -nographic    -fda floppy.img  -boot a
-net nic -net tap



where /dev/sda5 is the partition to install into (so in my disk section I would use phy:/dev/sda5)

to make networking work with qemu, you want a /etc/qemu-ifup that looks something like this

/sbin/modprobe tun

/sbin/ifconfig $1 promisc 0.0.0.0

/usr/sbin/brctl addif xenbr0 $1


On Tue, 19 Sep 2006, jonr@xxxxxxxxxx wrote:

Date: Tue, 19 Sep 2006 09:22:38 -0800
From: jonr@xxxxxxxxxx
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Install from CD

I have read some things that lead me to believe that I can do this. Do I need to
make an iso image of the cd then loopback mount it and make a config file that
points to the cdrom as the active partition? Is it even possible to do this and
if it is, will I need to patch the kernel or just move the
/lib/modules/2.<kernel> over to the new VM?

Thanks for any help,

Jon

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

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