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] pygrub error booting iso

To: "greno@xxxxxxxxxxx" <greno@xxxxxxxxxxx>
Subject: Re: [Xen-users] pygrub error booting iso
From: Chris <tknchris@xxxxxxxxx>
Date: Sun, 13 Jun 2010 18:19:25 -0400
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 13 Jun 2010 15:20:49 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:x-mailer :mime-version:subject:date:cc; bh=tE6AqOFrhHzZUCDP3YFpanTXhl+J0BFUOgOmW7uWINc=; b=LrSrb6gLYYPKNH+du8Gm30Hu0ztOn9X4+Lk+BkmWiD+hyUfMtc65tj6EHK64P2LZOB eFhNpfFWAAbSw/6yZFXx7tzAo2uQ6fXyvuXSH7rVN2linG40XBCGbsWn4POmDENnbp3I zzu8hqP9jT+D1hvBXe+bd6nJQuF9xwNIYqqCQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:x-mailer:mime-version:subject:date:cc; b=R9Fz86ySs2q2cLyN1AwS7AAsP3a8SrsQ9YsbUNf8ctJyT/dYgUPRDhW3r2P00TIBtN rkuk1RLMjIioapXdB6hpSZVXlu6JO5k/Xy1Tklr4zz7ixGX2l+HEkVvXdMtt1E/7Gxcp z0R6qDDlJXh6QwpBoTFDnQIOPkmucNUzPNR1Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1179947911.4707167.1276465751898.JavaMail.root@xxxxxxxxxxxxxxxxxxxx>
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: <1179947911.4707167.1276465751898.JavaMail.root@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Why not just use file: and iso path? I don't see any benefit to another layer of abstraction

Sent from my iPhone

On Jun 13, 2010, at 5:49 PM, greno@xxxxxxxxxxx wrote:

I mounted an iso file like so:
-------------------------------------------
# mount -o loop=/dev/loop0 /path/to/iso /tmp/mnt
#ls /tmp/mnt
cdromupgrade dists doc install isolinux md5sum.txt pics pool preseed README.diskdefines ubuntu
-------------------------------------------

I used the following file to try to have pygrub boot the mounted iso:
-------------------------------------------
name = "RESCUE"
memory = 1024
vcpus = 4
bootloader = '/usr/local/bin/pygrub'
kernel = "/boot/vmlinuz-2.6.32.13"
ramdisk = "/boot/initrd.img-2.6.32.13"
disk = [
    'phy:/dev/loop0,hdc:cdrom,r',
    "tap:aio:/var/lib/xen/images/CLOUD-CC-1.img,xvda,w"
]
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"

vfb = [ 'type=vnc,vncunused=1' ]
-------------------------------------------

Then I tried to create:
-------------------------------------------
# xm create test.py
Using config file "./test.py".
Error: Boot loader didn't return any data!
-------------------------------------------

Is there something else I need to get pygrub to boot an iso?

-Gerry


_______________________________________________
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