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. Any hints? Wolf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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. > > > Any hints? > Wolf > > _______________________________________________ > 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
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@lists.xensource.com http://lists.xensource.com/xen-users
[snip]> I have created to day a new VM on an OpenSuse 11.2, here is the part of > the config file cncerning the disks : > disk=[ ''phy:/dev/HUGE_1/XXXXXXXXX_SYS,hda,w'', > ''phy:/dev/HUGE_1/XXXXXXXXX_DAT,hdb,w'', > ''phy;/dev/SYSTEM/XXXXXXXXX_LOG,hdc,w'', > ''phy:/dev/sr0,hdd:cdrom,r'', >This is remarkable, I use a similar entry for the cdrom in the disk section: disk=[ ''file:/var/lib/xen/images/MAGRO1V/disk0,xvda,w'' ,''phy:/dev/sr0,hdc:cdrom,r'' ] However, running ''xm create ...'' runs into a ''kernel BUG'': ... [2.263729] xen-vbd: registered block device major 22 [2.264990] blkfront: hdc: barriers enabled [2.266463] blk: request botched [2.267402] ------------[ cut here ]------------ [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. Are you using a patched xen-kernel? Wolf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
JP P wrote: [snip]>> >> Are you using a patched xen-kernel? >> Wolf > > Hello, > > The machine is en OpenSuse 11.2 with a 2.6.34-rc4 kernel, but the thing > was also working with 2.6.31.12, 2.6.33-6, I use that since a long time > (until 2.6.18 ?) with a SLES 10 SP1. >I understand that your dom0 is a SLES-10/SP2, and the domU is the openSuSE-11.2, is that correct? Wolf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users