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] can't boot from cdrom

To: "余上" <yusunn@xxxxxxxxx>
Subject: Re: [Xen-users] can't boot from cdrom
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Mon, 28 Jan 2008 10:50:25 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 28 Jan 2008 07:51:26 -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:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=mfamxLY/YTkh1RFt9EdS7U4/Rxqv3YdqhG+gAmxaHro=; b=QDuEJDCrVKfEUDrhr3EGK3h2Q/X1Yj4D9ZVdTlofaTOWnvbyhDLMRGPEY5o/8enaSu0xID0oqrUoEyoDYx7RnodwK7fov6l/M98zNeRA0450flgZEs6N61khS8NYKYCATG9gC+jSIz8vlZdrey4OeXpZF0bg+R+0VfP+jjtcr+E=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=aK7v4BFUK+Oe30ohVoWYIOv+1FX+O79FvckVK2/2iNjfzMQ4smRPjfpNjb3Ru07Lu1jpWg4+Diz8gcqg2GezbiGPZIxDLt1qUzbbNBUJeKpujESM4bPTLvjkTCSTeVSzluJQO0d8qr0WfIp5KagUE6vp4yafWqFvppTA8TjluU4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <298d852f0801280741h67b0fc0bte1ca4be80578de6f@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: <298d852f0801280741h67b0fc0bte1ca4be80578de6f@xxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Jan 28, 2008 10:41 AM, 余上 <yusunn@xxxxxxxxx> wrote:
Hi All,

Following is my winxp hvm config:

kernel = "/usr/lib/xen/boot/hvmloader"
builder = 'hvm'
memory = 192
name = "winxp"
vcpus = 2
disk = [ 'file:/media/sda6/usr/xenimgs/winxp.img,ioemu:hda,w' ]
device_model = '/usr/lib/xen/bin/qemu-dm.debug'
cdrom='/dev/hda'
sdl=1
boot='d'

and following is the boot message:
...
Booting from CD-Rom...
CDROM boot failure code : 0002
Boot from CD-Rom failed: could not read the boot disk
FATAL: No bootable device.

I have checked /dev/hda , it does exist , any idea ?

You need to modify your disk line to something similar to either:

disk = ['file:/media/sda6/usr/xenimgs/winxp.img,ioemu:hda,w,'tap:aio:/root/winxp.iso,hdc:cdrom,r']

OR

disk = ['file:/media/sda6/usr/xenimgs/winxp.img,ioemu:hda,w,'phy:/dev/cdrom,hdc:cdrom,r']
 
notice the cdrom device that was added to each. The first example is for a cdrom image, the second example if for a physical cdrom

changing file: to tap:aio is also recommended too, as file: is being (or was) deprecated.

Regards,
Todd



Thank you very much
yushang

_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>