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] centos guest domain?

To: Steven Ellis <mail_lists@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] centos guest domain?
From: Kent Watsen <kent@xxxxxxxxxx>
Date: Sun, 02 Oct 2005 00:37:48 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 02 Oct 2005 07:36:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <433F5FB3.8020304@xxxxxxxxxxxxxxxx>
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: <433EFFED.9050206@xxxxxxxxxx> <433F0FB9.9060208@xxxxxxxxxxxxxxxx> <433F3CAA.9010900@xxxxxxxxxx> <433F5FB3.8020304@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
Steven Ellis wrote:

1. You need to copy the modules for the DomU kernel into the guest filesystem.

2. You probably need an initrd for the guest otherwise it will panic.

3. I'd personally advise using the DomU kernel that comes with the 2.0.7 tar ball as it is closer to the RH released kernel.


Steven, thanks for the pointer - following your suggestions has it working now!


For others that might stumble on this thread, these steps should work:

1) install CentOS 4.1 from its ISO images
2) boot into it
3) download binary xen release from http://www.xensource.com/downloads/
4) extract it into <pick-a-dir>
5) cp <pick-a-dir>/install/boot/vmlinuz-2.6.11.12-xenU /tmp
6) cp -a <pick-a-dir>/install/lib/modules/2.6.11.12-xenU /lib/modules
7) cd /lib/modules/; depmod 2.6.11.12-xenU; mkinitrd /tmp/2.6.11.12-xenU.img 2.6.11.12-xenU
8) now, copy both of the files in /tmp to your Xen's Dom0's /boot
9) config your xen file, mine is as follows:

   kernel = "/boot/vmlinuz-2.6.11.12-xenU"
   ramdisk = "/boot/initrd-2.6.11-12.xenU.img"
   memory = 256
   name = "CentOS"
   vif = [ 'mac=aa:cc:00:00:00:63, bridge=xen-br0' ]
   disk = [ 'phy:hdb1,hdb1,w', 'phy:hdb2,hdb2,w' ]
   netmask="255.255.255.0"
   gateway="10.0.3.1"
   hostname= "centos"
   root = "/dev/hdb1 ro"
   extra = "3"

Note: this works in part because the Xen's binary release is very similar the CentOS; it is very unlikely it work for any non-Linux guest OS. It will be interesting to see how much of this kind of stuff will be eliminated with AMD's Pacifica architecture and the supporting Xen release ...


Cheers!
Kent


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

<Prev in Thread] Current Thread [Next in Thread>