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] installing a new domU

To: Fred Blaise <chapeaurouge@xxxxxxxxx>
Subject: Re: [Xen-users] installing a new domU
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 18 Oct 2005 10:28:13 -0500
Cc: Ryan Grimm <grimm@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 18 Oct 2005 15:25:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <9cfa15020510180115m58e15953q6d00707ac0edf25@xxxxxxxxxxxxxx>
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: <9cfa15020510180115m58e15953q6d00707ac0edf25@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
Fred Blaise wrote:

Hi all

I have a stupid question...

How do you actually install a new OS inside a new domainU ?
I assumed it'd be vmware like, meaning, given the following config:
Xen does paravirtualization which means that it cannot run unmodified Operating Systems (like VMware can). This makes installation a little challenging since distro installers (while just userspace processes) are very picky about how/where they are run.

The easiest approach to installing domUs is to just use qemu. Do a normal install into a qemu disk and then use that disk image as /dev/hda in Xen. For instance, if you install a domU with the following qemu command line:

qemu -hda /dev/volumnes/fedora4 -cdrom /dev/cdrom -boot d

Then in Xen, you would use a config that had at least these parameters:

kernel='/boot/vmlinuz-2.6-xenU'
memory=512
name='oes1'
disk=['phy:volumes/fedora3', 'hda', 'w']
root='/dev/hda1'

And it should Just Work.

Regards,

Anthony Liguori

kernel = "/boot/vmlinuz-2.6.12-xenU"
memory = 512
name = "oes1"
disk = [ 'phy:vgdata/lv_xen_oes1,hda1,w' ]
disk = [ 'phy:md2,hda2,w' ]
dhcp="dhcp"
root = "/dev/hda1 ro"
extra = "4"

and starting it like 'xm create oes1 -c', the console opens, sees
nothing (lv_xen_oes1 is empty), it would prompt me to install the new
OS..

But since I get a
VFS: Cannot open root device "hda1" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

I am assuming there needs to be something on it before I start the
domain? In that case, how do I install a new OS inside that domain?

Thanks a lot for pointing me to relevant documentation, or answering
this stupid question.

fred

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

\

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