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] how to use prebuilt images from jailtime.org?

To: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Subject: Re: [Xen-users] how to use prebuilt images from jailtime.org?
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Mon, 03 Mar 2008 10:06:45 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 03 Mar 2008 02:02:15 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=U76BNToecH5FGXJtxzPNwgOZo7BC8AoiNrbn54TsBbQ=; b=Hh+MP+PQUek8YOxxYmUykpWlMRs/jyowti2FYylr9VEC0ZrZQZGbD2y6Ozq18ryUoSBkRjo/t5yCPKq68uvDgxTEqflIblGJukbPlNZaNG4eeABiZLXAJ3alvisgzntBxrvIt1Uiyd+9sfAOTCvVgACv4NWPFdUs2v8OpZJceio=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=WGrpKHW31RFtTOVFsQFfnvUJk13R8rMuxQtmE/9MI2v3Y+BS0CI5FqP9oOn1axQL5TCzs6elb7HLOeafXr5jquGJLqNUiL1r45zj9thed4vh553gDIGDRJOxRXx/+y9eMc7IiQakY12dzOvNRr7Q7HVYKIHhz0lTXPygaWowz9s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47CBC20B.2000702@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: <47CBC20B.2000702@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Rudi Ahlers wrote:
Hi

Does anyone know how to use the images from http://www.jailtime.org/? I've downloaded the CentOS 5.1 (http://www.jailtime.org/download:centos:v5.1) to my CentOS 5.1 x64 Xen 3.1 server, and unpacked it to my /home folder.

Then I took the included config file, centos.5-1.xen3.cfg and copied it to /xen - and modified to my needs:

[root@gimbli home]# more /etc/xen/centos5-1
kernel = "/boot/vmlinuz-2.6.18-53.1.13.el5xen"
memory = 256
name = "centos5-1"
vif = [ '' ]
dhcp = "dhcp"
#disk = ['file:/home/vm/centos.5-1.img,sda1,w', 'file:/home/centos.swap,sda2,w']
#root = "/dev/xvda1 ro"

disk = [ "tap:aio:/home/vm/centos.5-1.img,xvda,w" ]
root = "/dev/xvda ro"


Yet, when I try and use it, I get the following error:
VFS: Cannot open root device "xvda" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I gave up on the jailtime images a while ago: they're useful, but I find a fast virt-install to be similarly useful and to cooperate with the CentOS/RHEL ideas about where things go. In particular, the /etc/fstab of the Jailtime image expects partitions to be on /dev/sda, while the current Xen installers and kernels put them in /dev/xvda.

Check the /etc/fstab of your image (which should be mountable with kpartx and loopback mounts, and look at its /etc/fstab. Or simply mount the partitions as /dev/sda the same way that the Jailtime author did.

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