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 ? Thank you very much yushang _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Jan 28, 2008 10:41 AM, 余上 <yusunn@gmail.com> 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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, The cdrom= option never really works, your best bet is to change the "disk" line to read. disk = [''file:/path/to/harddrive.img,ioemu:hda,w'',''file:/path/to/cdrom.img,ioemu:cdrom:hdb,r''] then change "boot" to read. boot =''dc'' That is if you have the CD image on the hard drive, this would probably be the best way to do it. If you need to copy it, just do a dd like "dd if=/dev/cdrom of=/path/to/cdrom.img" . Remember that the /path/to stuff is just temporary for the terms of this help, change it to where you are keeping your images.. like /media/sda6/usr/xenimgs/ Let me know if this helps. Tait -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of ?? Sent: January-28-08 10:42 AM To: xen-users@lists.xensource.com Subject: [Xen-users] can''t boot from cdrom 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 ? Thank you very much yushang _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sorry that line is meant to have hdc instead of hdb beside the ioemu:cdrom part... at least that is how i tested it and have it working. -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Tait Clarridge Sent: January-28-08 10:51 AM To: ??; xen-users@lists.xensource.com Subject: RE: [Xen-users] can''t boot from cdrom Hi, The cdrom= option never really works, your best bet is to change the "disk" line to read. disk [''file:/path/to/harddrive.img,ioemu:hda,w'',''file:/path/to/cdrom.img,ioem u:cdrom:hdb,r''] then change "boot" to read. boot =''dc'' That is if you have the CD image on the hard drive, this would probably be the best way to do it. If you need to copy it, just do a dd like "dd if=/dev/cdrom of=/path/to/cdrom.img" . Remember that the /path/to stuff is just temporary for the terms of this help, change it to where you are keeping your images.. like /media/sda6/usr/xenimgs/ Let me know if this helps. Tait -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of ?? Sent: January-28-08 10:42 AM To: xen-users@lists.xensource.com Subject: [Xen-users] can''t boot from cdrom 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 ? Thank you very much yushang _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thank you all , I can proceed with your guiding. 2008/1/28, Tait Clarridge <Tait.Clarridge@lavalife.com>:> Sorry that line is meant to have hdc instead of hdb beside the > ioemu:cdrom part... at least that is how i tested it and have it > working. > > -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Tait > Clarridge > Sent: January-28-08 10:51 AM > To: ??; xen-users@lists.xensource.com > Subject: RE: [Xen-users] can''t boot from cdrom > > Hi, > > The cdrom= option never really works, your best bet is to change the > "disk" line to read. > > disk > [''file:/path/to/harddrive.img,ioemu:hda,w'',''file:/path/to/cdrom.img,ioem > u:cdrom:hdb,r''] > > then change "boot" to read. > > boot =''dc'' > > > That is if you have the CD image on the hard drive, this would probably > be the best way to do it. > If you need to copy it, just do a dd like "dd if=/dev/cdrom > of=/path/to/cdrom.img" . > > Remember that the /path/to stuff is just temporary for the terms of this > help, change it to where you are keeping your images.. like > /media/sda6/usr/xenimgs/ > > Let me know if this helps. > > Tait > > -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of ?? > Sent: January-28-08 10:42 AM > To: xen-users@lists.xensource.com > Subject: [Xen-users] can''t boot from cdrom > > 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 ? > > Thank you very much > yushang > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users