[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] CDROM on PV domU


  • To: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Wolfgang Grossbauer <wg@xxxxxxxxxxxxxx>
  • Date: Thu, 29 Apr 2010 13:24:23 +0200
  • Delivery-date: Thu, 29 Apr 2010 04:25:51 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Felix Kuperjans wrote:
  Hi,

you made a small error in your disk configuration:

disk = [ 'phy:/dev/scd0,*hdc:*cdrom,w' ]

You have to specify hdc (or anything similar) to set the position of the cdrom drive (in this case: secondary IDE, master). It is also possible to specify e.g. sda:cdrom, which will attach the device to the first SCSI port (but you can't boot from SCSI devices).

In addition, I think it was rather /dev/scd0 instead of /dev/sd0.

I hope this helps you.

Felix

Am 28.04.2010 18:14, schrieb Wolf Grossi:
Hi,

how do I attach a cdrom to a pv guest?
Xen-server is openSuSE-11.2 and domU is opensuse-11.2.

According to the xen-manual I tried
disk = [ 'phy:/dev/sd0,cdrom,w' ]
in the vm configuration.
When creating the vm however it crashes w/o a message in /var/log/qemu-dm-opensuse11.log

I've also tried to attach with
xm block-attach opensuse11 phy:/dev/sr0 /dev/cdrom r
same problem as obove.

Thanks Felix, I proceeded as you suggested, however still the same problem.
vm config sections:
disk=[ 'file:/var/lib/xen/images/MAGRO1V/disk0,xvda,w'
      ,'phy:/dev/sr0,hdc:cdrom,r'
     ]

running 'xm create ...' I get
...
2.267952] kernel BUG at /usr/src/packages/BUILD/kernel-xen-2.6.31.5/linux-2.6.31/block/blk-core.c:2216!
[    2.267952] invalid opcode: 0000 [#1] SMP
[    2.267952] last sysfs file:
[    2.267952] Modules linked in: xenblk(+) cdrom
...
etc.etc

Reading 'kernel BUG' lets my alarm bells ring - do I need an updated xen-kernel?

Wolf




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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.