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] Install Ubuntu Server 10 as PV Guest

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Install Ubuntu Server 10 as PV Guest
From: KC LO <kclo2000@xxxxxxxxx>
Date: Mon, 21 Jun 2010 11:19:30 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 20 Jun 2010 20:21:05 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=NGcS4+m8bqIIzo8sorm2ZCh7R45Dq5Ht9jEg3Lbzflw=; b=QUqauJ2rsxxj0vqIKur0I6Kn3XVWp8mdXo5ah9stgiZqFocVlCabw47RTx1h6HcHWX N6ibTjcOothmeVdc/rkl7awK2TltZWS5OdzlDxP4f+a9TwBr/7icP/Ij1B5TjsSL24fn TPHSgfRlhAFEsAqPkqGYPSPOTITA6ukDxgfqc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=a58rERDFA/Qj20unTtQoyoSDUw+agU0kgT94wnO+V769PqnKDUGpPr4aJw0wceqGVp SOh3DU5YaEL36nZQtuYbwYlE7GSX0xx3mQ7o2CfQPprD4TOIZBNqBbKYb8VUc4Vzj0AV TDdhB8kKpeMja8pb28XC4mOgNZjhV4ejhzqOw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTimElHSRLHX7P7ClSHOUvzTe32Dzvwzk2dhz0t2h@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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikKH3RquyPLGQ3E7c2RJB7UaKrImP8bjfMo-LWs@xxxxxxxxxxxxxx> <AANLkTikCL9I-JjIxOCpgJ7IKcWFHnUbQKZclJfgeU4v8@xxxxxxxxxxxxxx> <AANLkTinuC7C4oIh_w7E_7eZHAGuzSxQC7hBod1cLCe9F@xxxxxxxxxxxxxx> <AANLkTimj2v-6E9DfIOmT1MsPPBiNuVXSPm5cQbIWdlRM@xxxxxxxxxxxxxx> <AANLkTikojAk1sOuqVrHkBQiwuzU6lqLGMF_Wv1TX8jmO@xxxxxxxxxxxxxx> <AANLkTimElHSRLHX7P7ClSHOUvzTe32Dzvwzk2dhz0t2h@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,
 
Thanks all!
I have copied kernel and ramdisk to the DOMU and it worked fine even the /boot is under partition of ext4.
However, the pygrub still fails for partition of ext3 with same error.
Below is my DOMU config
name = "test"
memory = "2048"
bootloader="/usr/bin/pygrub"
extra = "(hd0,0)/grub/menu.lst"
vif = [ 'bridge=eth0' ]
vcpus=2
disk= [ 'file:/root/iso/ubuntu.img,xvda,w' ]
root="/dev/xvda1 ro"
>>
When I replace with kernel and ramdisk, ubuntu can boot successfully.  Any ideas?
 
On 21 June 2010 09:47, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
On Sun, Jun 20, 2010 at 2:59 PM, KC LO <kclo2000@xxxxxxxxx> wrote:
> RuntimeError: couldn't find bootloader config file in the image provided.

Quick check: did you happen to use ext4 for /boot? AFAIK pygrub (on
Xen 3.4 anyway) does not support ext4. ext3 works just fine.

>
> I have used kpartx -av /root/iso/ubuntu.img to mount the boot directory of

/root/iso is a strange place to put domU image :P

> It seems that it don't has the linux-xen kernel for PV client.  Is it the
> reason for it fail to boot?

It shouldn't matter. Ubuntu's has pv_ops enabled kernel. Also, if it
were a problem with kernel, you'd get a different error message.

As a temporary work around, you can try copying domU's kernel and
initrd to dom0, and load it on domU Xen config file using "kernel",
"ramdisk", and "extra" directive.

--
Fajar

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