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: "Luke S. Crawford" <lsc@xxxxxxxxx>
Subject: Re: [Xen-users] howto install from cd/network/image/foo with 3.03
From: Marc Teichgraeber <radar@xxxxxxxxxxx>
Date: Fri, 26 Jan 2007 20:01:43 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 26 Jan 2007 11:01:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.NEB.4.64.0701261010190.7076@xxxxxxxxxxxxxxxxxx>
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> <Pine.NEB.4.64.0701261010190.7076@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20061206)
Luke S. Crawford wrote:
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.
First of all, thank you very much for your quemu-example, this helps me much. Its solves my problem, so everything further is actually not so important, but :) * How would a HVM-config file look like? It would be nice to know to understand the difference. * Why can I not do this 'boot from install media' stuff in not HVM-configs? I dont understand this, i mean, the prophet has to climb the mountain someway, respectively the guest-operating system hast to enter the host. Momentarily I rsync one instance to another and make it unique afterwards or rsync from a "real" System into sparse files on my guest an make them bootable the.

radar

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.
--
--------------------------------
Marc Teichgräber
Systemadministration

neofonie GmbH
Robert-Koch-Platz 4
10115 Berlin
fon: +49.30 24627 222
fax: +49.30 24627 120

marc.teichgraeber@xxxxxxxxxxx
http://www.neofonie.de
--------------------------------


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