to make the 'boot from install media' stuff work from within Xen, you must
use HVM. The config file you posted is not using HVM.
If you want to install from a CDROM without using HVM, you can do so using
qemu; it's a little slower, but it works fine.
first, if you need network, create a /etc/qemu-ifup that looks somethying
like this:
#!/bin/sh
/sbin/modprobe tun
/sbin/ifconfig $1 promisc 0.0.0.0
/usr/sbin/brctl addif xenbr0 $1
(this assumes you have xenbr0 configured for xen) - if you are installing
from a cd that does not require network access, you can skip this bit.
Next, make sure you shutdown any DomU that uses the partition or file you
want to install on. Xen is good at checking to make sure you don't step
on other people's disks, but Qemu and Xen are not aware of oneanother in
this way.
Now, you can start up your install using qemu:
qemu -hda /home/lsc/centos3 -cdrom /home/lsc/CentOS-3.8-server-i386.iso
-boot d -vnc 2
(this will allow you to VNC into this server, screen 2 and see the
install)
(instead of /home/lsc/centos3, you could use /dev/hda4 or another physical
partition if you like; instead of /home/lsc/CentOS-3.8-server-i386.iso
you can use /dev/cdrom, if you like.)
when you are done, setup a xen DomU in the usual way. in the disk=
section add file: or phy: as appropriate before the disk you passed to
qemu as -hda.
On Fri, 26 Jan 2007, Marc Teichgraeber wrote:
Meeeep, thats not working for me.
My Xen version is Xen 3.0.3
Here is my config for a test domain
------------------------------------------------------------------------------------------------------------------
disk = [ 'file:/data/xen/test/hda,hda,w',
'file:/data/xen/SuSE_9.3_CD1.iso,hdc:cdrom,r' ]
memory = 2048
vcpus = 1
image = 'linux'
name = 'test'
vif = [ 'mac=00:16:3e:b7:77:3d' ]
localtime = 1
on_reboot = 'restart'
on_reboot = 'destroy'
on_crash = 'restart'
extra = 'TERM=xterm'
kernel = '/boot/vmlinuz-xen'
ramdisk = '/boot/initrd-xen'
root = '/dev/hda ro'
boot = 'd'
--------------------------------------------------------------------------------------------------------------------
No booting from the iso. I also tried "boot='c'", "boot=''cd", boot='dc'".
I think there is no more working "boot" parameter anymore in Xen 3.0.3.
There is some different way to schoose the boot-medium.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|