WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] howto install from cd/network/image/foo with 3.03

To: Marc Teichgraeber <radar@xxxxxxxxxxx>
Subject: Re: [Xen-users] howto install from cd/network/image/foo with 3.03
From: "Luke S. Crawford" <lsc@xxxxxxxxx>
Date: Fri, 26 Jan 2007 10:41:23 -0800 (PST)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 26 Jan 2007 10:41:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45BA212A.6090002@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B018E18F4@xxxxxxxxxxxxxxxxx> <45BA212A.6090002@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

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