I tried to use cdrom in domU linux pv (Linux Mint 11 based on Natty). With ''/mnt/vm/iso/test.iso,raw,xvdb,ro,cdrom'', Mint sees it as internal disk (not cdrom) and only administrators can mount it. I tried also ''/dev/scd0,raw,xvdb,ro,cdrom'' does the same thing. Is possible use cdrom on linux domU pv full working where also normal user can mount it without terminal? Did I something wrong, or are there still bugs in this regard? Dom0 is Squeeze 6.0.4 64 bit with kernel 2.6.32-5-xen-amd64 version 2.6.32-41, xen from xen-unstable.hg changeset 24593:e2722b24dc09 DomU xl file configuration: ------------------------- name=''MINT11PV'' memory=1024 vcpus=2 disk=[''/mnt/vm/disks/MINT11PV.disk1.xm,raw,xvda1,rw'', ''/mnt/vm/iso/test.iso,raw,xvdb,ro,cdrom''] vif=[''bridge=xenbr0''] vfb=[''vnc=1,vncunused=1,vnclisten=0.0.0.0,keymap=it''] bootloader = ''/usr/bin/pygrub'' ------------------------- Thanks for any reply and sorry for bad english. -- View this message in context: http://xen.1045712.n5.nabble.com/Cdrom-on-Linux-domU-PV-tp5460198p5460198.html Sent from the Xen - Dev mailing list archive at Nabble.com.
I updated xen to changeset 24701:3574f4d67843 and also tried with xl cd-insert and it failed with this error: xl cd-insert MINT12PV xvdb raw:/dev/scd0 libxl: error: libxl.c:1579:libxl_cdrom_insert: Virtual device not found I used wrong parameters or is there a bug? Thanks for any reply. -- View this message in context: http://xen.1045712.n5.nabble.com/Cdrom-on-Linux-domU-PV-tp5460198p5463631.html Sent from the Xen - Dev mailing list archive at Nabble.com.
On Mon, 2012-02-06 at 14:32 +0000, Fantu wrote:> I tried to use cdrom in domU linux pv (Linux Mint 11 based on Natty). > With ''/mnt/vm/iso/test.iso,raw,xvdb,ro,cdrom'', Mint sees it as internal disk > (not cdrom) and only administrators can mount it. > I tried also ''/dev/scd0,raw,xvdb,ro,cdrom'' does the same thing. > Is possible use cdrom on linux domU pv full working where also normal user > can mount it without terminal?It should be. Please can you provide the output of "xenstore-ls -fp" when the guest is running with the device attached. Also from within the guest can you run (as root): udevadm info --query=all --path /block/xvdb and post the output.> Did I something wrong, or are there still bugs in this regard?The most recent bugs of this type were in udev and not Xen and caused it to fail to correctly detect Xen CD-ROMs as such. If the above indicates everything is OK on the Xen side then we can delve into that a little deeper but in the meantime what version of udev are you running in the guest?> Dom0 is Squeeze 6.0.4 64 bit with kernel 2.6.32-5-xen-amd64 version > 2.6.32-41, xen from xen-unstable.hg changeset 24593:e2722b24dc09What is the domU kernel version? Ian.
On Tue, 2012-02-07 at 16:08 +0000, Fantu wrote:> I updated xen to changeset 24701:3574f4d67843 and also tried with xl > cd-insert and it failed with this error: > > xl cd-insert MINT12PV xvdb raw:/dev/scd0 > libxl: error: libxl.c:1579:libxl_cdrom_insert: Virtual device not found > > I used wrong parameters or is there a bug?cd-insert is an HVM guest command, it must refer to an existing emulated CD-ROM device. Since you say you are using PV this can''t exist. The error message could probably be improved here. Ian.
Thanks for reply And about cdrom full working on domU pv? (not see as internal disk) -- View this message in context: http://xen.1045712.n5.nabble.com/Cdrom-on-Linux-domU-PV-tp5460198p5466814.html Sent from the Xen - Dev mailing list archive at Nabble.com.
Dom0 is Squeeze 6.0.4 64 bit with kernel 2.6.32-5-xen-amd64 version 2.6.32-41, xen from xen-unstable.hg changeset 24701:3574f4d67843 On domUs pv xl file configuration: ''/dev/scd0,raw,xvdb,ro,cdrom'' -------------------------------- DomU Mint 11 (based on Natty - Ubuntu 11.04): udev 167-0ubuntu3 linux-image-2.6.38-8-generic 2.6.38-8.42 With physical cdrom, on xl file configuration: ''/dev/scd0,raw,xvdb,ro,cdrom'' udevadm info --query=all --path /block/xvdb P: /devices/vbd-51728/block/xvdb N: xvdb S: disk/by-path/xen-vbd-51728 S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51728/block/xvdb E: MAJOR=202 E: MINOR=16 E: DEVNAME=/dev/xvdb E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_PATH=xen-vbd-51728 E: ID_PART_TABLE_TYPE=dos E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 E: ID_FS_TYPE=iso9660 E: ID_FS_USAGE=filesystem E: UDISKS_PRESENTATION_NOPOLICY=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 Not see it but work if do manual mount as root --------- With iso cdrom, on xl file configuration: ''/mnt/vm/iso/precise.iso,raw,xvdb,ro,cdrom'' udevadm info --query=all --path /block/xvdb P: /devices/vbd-51728/block/xvdb N: xvdb S: disk/by-path/xen-vbd-51728 S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51728/block/xvdb E: MAJOR=202 E: MINOR=16 E: DEVNAME=/dev/xvdb E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_PATH=xen-vbd-51728 E: ID_PART_TABLE_TYPE=dos E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 E: ID_FS_TYPE=iso9660 E: ID_FS_USAGE=filesystem E: UDISKS_PRESENTATION_NOPOLICY=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 Not see it but work if do manual mount as root -------------------------------- -------------------------------- DomU Mint 12 (based on Oneiric - Ubuntu 11.10): udev 173-0ubuntu4.1 linux-image-3.0.0-13-generic 3.0.0-13.22 With physical cdrom, on xl file configuration: ''/dev/scd0,raw,xvdb,ro,cdrom'' udevadm info --query=all --path /block/xvdb P: /devices/vbd-51728/block/xvdb N: xvdb S: disk/by-path/xen-vbd-51728 S: cdrom E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51728/block/xvdb E: MAJOR=202 E: MINOR=16 E: DEVNAME=/dev/xvdb E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_CDROM=1 E: ID_PATH=xen-vbd-51728 E: ID_PATH_TAG=xen-vbd-51728 E: GENERATED=1 E: UDISKS_PRESENTATION_NOPOLICY=1 E: UDISKS_PARTITION_TABLE=1 E: UDISKS_PARTITION_TABLE_SCHEME=mbr E: UDISKS_PARTITION_TABLE_COUNT=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 /dev/cdrom E: TAGS=:udev-acl: Not see it but work if do manual mount as root --------- With iso cdrom, on xl file configuration: ''/mnt/vm/iso/precise.iso,raw,xvdb,ro,cdrom'' udevadm info --query=all --path /block/xvdb P: /devices/vbd-51728/block/xvdb N: xvdb S: disk/by-path/xen-vbd-51728 S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 S: cdrom E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51728/block/xvdb E: MAJOR=202 E: MINOR=16 E: DEVNAME=/dev/xvdb E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_CDROM=1 E: ID_PATH=xen-vbd-51728 E: ID_PATH_TAG=xen-vbd-51728 E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 E: ID_FS_TYPE=iso9660 E: ID_FS_USAGE=filesystem E: ID_PART_TABLE_TYPE=dos E: GENERATED=1 E: UDISKS_PRESENTATION_NOPOLICY=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 /dev/cdrom E: TAGS=:udev-acl: Not see it but work if do manual mount as root --------- --------- --------- I try also different configuration of device as partition... With physical cdrom, on xl file configuration: ''/dev/scd0,raw,xvdb1,ro,cdrom'' udevadm info --query=all --path /block/xvdb device path not found udevadm info --query=all --path /block/xvdb1 P: /devices/vbd-51729/block/xvdb1 N: xvdb1 S: disk/by-path/xen-vbd-51729 S: cdrom1 E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51729/block/xvdb1 E: MAJOR=202 E: MINOR=17 E: DEVNAME=/dev/xvdb1 E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_CDROM=1 E: ID_PATH=xen-vbd-51729 E: ID_PATH_TAG=xen-vbd-51729 E: GENERATED=1 E: UDISKS_PRESENTATION_NOPOLICY=1 E: UDISKS_PARTITION_TABLE=1 E: UDISKS_PARTITION_TABLE_SCHEME=mbr E: UDISKS_PARTITION_TABLE_COUNT=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51729 /dev/cdrom1 E: TAGS=:udev-acl: See it as cdrom but not work, also with manual mount as root not work --------- With iso cdrom, on xl file configuration: ''/mnt/vm/iso/precise.iso,raw,xvdb1,ro,cdrom'' udevadm info --query=all --path /block/xvdb device path not found udevadm info --query=all --path /block/xvdb1 P: /devices/vbd-51729/block/xvdb1 N: xvdb1 S: disk/by-path/xen-vbd-51729 S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 S: cdrom1 E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51729/block/xvdb1 E: MAJOR=202 E: MINOR=17 E: DEVNAME=/dev/xvdb1 E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_CDROM=1 E: ID_PATH=xen-vbd-51729 E: ID_PATH_TAG=xen-vbd-51729 E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 E: ID_FS_TYPE=iso9660 E: ID_FS_USAGE=filesystem E: ID_PART_TABLE_TYPE=dos E: GENERATED=1 E: UDISKS_PRESENTATION_NOPOLICY=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51729 /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 /dev/cdrom1 E: TAGS=:udev-acl: Cdrom full working and see it correctly -------------------------------- If you need more test and data ask me and I do and post -- View this message in context: http://xen.1045712.n5.nabble.com/Cdrom-on-Linux-domU-PV-tp5460198p5469072.html Sent from the Xen - Dev mailing list archive at Nabble.com.
On Thu, 2012-02-09 at 10:22 +0000, Fantu wrote:> Dom0 is Squeeze 6.0.4 64 bit with kernel 2.6.32-5-xen-amd64 version > 2.6.32-41, xen from xen-unstable.hg changeset 24701:3574f4d67843Thanks but I also need to see the xenstore-ls -fp corresponding to each case. For simplicity lets just concentrate on the "/mnt/vm/iso/precise.iso,raw,xvdb,ro,cdrom" case for now. Once we have solved that we can revisit any others which are still broken. The issue is, I suspect, related to the lack of ID_CDROM=1 in most of your outputs. Running "/lib/udev/cdrom_id $DEV" ought to produce some related output, if not please can you use strace to observe the ioctls it is making (and post the log). I suspect this is more likely to be a udev issue with Linux Mint / Ubuntu. Have you searched the appropriate bug trackers / wikis / etc for those distros? Ian.
Thanks I have rebuild xen to latest revistion, now: Dom0 is Squeeze 6.0.4 64 bit with kernel 2.6.32-5-xen-amd64 version 2.6.32-41, xen from xen-unstable.hg changeset 24709:8ba7ae0b070b -------------------------------- DomU Mint 11 (based on Natty - Ubuntu 11.04): udev 167-0ubuntu3 linux-image-2.6.38-8-generic 2.6.38-8.42 With iso cdrom, on xl file configuration: ''/mnt/vm/iso/precise.iso,raw,xvdb,ro,cdrom'' udevadm info --query=all --path /block/xvdb P: /devices/vbd-51728/block/xvdb N: xvdb S: disk/by-path/xen-vbd-51728 S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51728/block/xvdb E: MAJOR=202 E: MINOR=16 E: DEVNAME=/dev/xvdb E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_PATH=xen-vbd-51728 E: ID_PART_TABLE_TYPE=dos E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 E: ID_FS_TYPE=iso9660 E: ID_FS_USAGE=filesystem E: UDISKS_PRESENTATION_NOPOLICY=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 /lib/udev/cdrom_id /dev/xvdb Give no output In attachment there are complete output of xenstore-ls and strace of cdrom_id http://xen.1045712.n5.nabble.com/file/n5469490/MINT11.txt MINT11.txt With strace I see how cdrom capability is at 0 -------------------------------- -------------------------------- DomU Mint 12 (based on Oneiric - Ubuntu 11.10): udev 173-0ubuntu4.1 linux-image-3.0.0-13-generic 3.0.0-13.22 With iso cdrom, on xl file configuration: ''/mnt/vm/iso/precise.iso,raw,xvdb,ro,cdrom'' udevadm info --query=all --path /block/xvdb P: /devices/vbd-51728/block/xvdb N: xvdb S: disk/by-path/xen-vbd-51728 S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 S: cdrom E: UDEV_LOG=3 E: DEVPATH=/devices/vbd-51728/block/xvdb E: MAJOR=202 E: MINOR=16 E: DEVNAME=/dev/xvdb E: DEVTYPE=disk E: SUBSYSTEM=block E: ID_CDROM=1 E: ID_PATH=xen-vbd-51728 E: ID_PATH_TAG=xen-vbd-51728 E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 E: ID_FS_TYPE=iso9660 E: ID_FS_USAGE=filesystem E: ID_PART_TABLE_TYPE=dos E: GENERATED=1 E: UDISKS_PRESENTATION_NOPOLICY=1 E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 /dev/cdrom E: TAGS=:udev-acl: /lib/udev/cdrom_id /dev/xvdb ID_CDROM=1 In attachment there are complete output of xenstore-ls http://xen.1045712.n5.nabble.com/file/n5469490/MINT12.txt MINT12.txt -------------------------------- Soon I''ll try again next version of Ubuntu now in alpha status (12.04 LTS) and if the problem about cdrom is of distribution I will report it on launchpad, I had already searched the forums and launchpad about it without getting resolved. -- View this message in context: http://xen.1045712.n5.nabble.com/Cdrom-on-Linux-domU-PV-tp5460198p5469490.html Sent from the Xen - Dev mailing list archive at Nabble.com.
On Thu, 2012-02-09 at 13:57 +0000, Fantu wrote:> Thanks > > I have rebuild xen to latest revistion, now: > Dom0 is Squeeze 6.0.4 64 bit with kernel 2.6.32-5-xen-amd64 version > 2.6.32-41, xen from xen-unstable.hg changeset 24709:8ba7ae0b070b > > -------------------------------- > DomU Mint 11 (based on Natty - Ubuntu 11.04): > udev 167-0ubuntu3 > linux-image-2.6.38-8-generic 2.6.38-8.42I wonder if this kernel is missing: commit 4352b47ab7918108b389a48d2163c9a4c2aaf139 Author: Marek Marczykowski <marmarek@mimuw.edu.pl> Date: Tue May 3 12:04:52 2011 -0400 xen-blkfront: fix data size for xenbus_gather in blkfront_connect barrier variable is int, not long. This overflow caused another variable override: "err" (in PV code) and "binfo" (in xenlinux code - drivers/xen/blkfront/blkfront.c). The later caused incorrect device flags (RO/removable etc). Signed-off-by: Marek Marczykowski <marmarek@mimuw.edu.pl> Acked-by: Ian Campbell <Ian.Campbell@citrix.com> [v1: Changed title] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> The symptoms of this could include a device not appearing as a cdrom when it should. Your xenstore output contains /local/domain/0/backend/vbd/1/51728/device-type = "cdrom" (n0,r1) but the CDROM_GET_CAPABILITY ioctl is failing which is somewhat consistent with this.> > > With iso cdrom, on xl file configuration: > ''/mnt/vm/iso/precise.iso,raw,xvdb,ro,cdrom'' > > udevadm info --query=all --path /block/xvdb > P: /devices/vbd-51728/block/xvdb > N: xvdb > S: disk/by-path/xen-vbd-51728 > S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 > E: UDEV_LOG=3 > E: DEVPATH=/devices/vbd-51728/block/xvdb > E: MAJOR=202 > E: MINOR=16 > E: DEVNAME=/dev/xvdb > E: DEVTYPE=disk > E: SUBSYSTEM=block > E: ID_PATH=xen-vbd-51728 > E: ID_PART_TABLE_TYPE=dos > E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 > E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 > E: ID_FS_TYPE=iso9660 > E: ID_FS_USAGE=filesystem > E: UDISKS_PRESENTATION_NOPOLICY=1 > E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 > /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 > > /lib/udev/cdrom_id /dev/xvdb > Give no output > > In attachment there are complete output of xenstore-ls and strace of > cdrom_id > http://xen.1045712.n5.nabble.com/file/n5469490/MINT11.txt MINT11.txt > With strace I see how cdrom capability is at 0 > -------------------------------- > > -------------------------------- > DomU Mint 12 (based on Oneiric - Ubuntu 11.10): > udev 173-0ubuntu4.1 > linux-image-3.0.0-13-generic 3.0.0-13.22 > > With iso cdrom, on xl file configuration: > ''/mnt/vm/iso/precise.iso,raw,xvdb,ro,cdrom'' > > udevadm info --query=all --path /block/xvdb > P: /devices/vbd-51728/block/xvdb > N: xvdb > S: disk/by-path/xen-vbd-51728 > S: disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 > S: cdrom > E: UDEV_LOG=3 > E: DEVPATH=/devices/vbd-51728/block/xvdb > E: MAJOR=202 > E: MINOR=16 > E: DEVNAME=/dev/xvdb > E: DEVTYPE=disk > E: SUBSYSTEM=block > E: ID_CDROM=1 > E: ID_PATH=xen-vbd-51728 > E: ID_PATH_TAG=xen-vbd-51728 > E: ID_FS_LABEL=Ubuntu_12.04_LTS_amd64 > E: ID_FS_LABEL_ENC=Ubuntu\x2012.04\x20LTS\x20amd64 > E: ID_FS_TYPE=iso9660 > E: ID_FS_USAGE=filesystem > E: ID_PART_TABLE_TYPE=dos > E: GENERATED=1 > E: UDISKS_PRESENTATION_NOPOLICY=1 > E: DEVLINKS=/dev/disk/by-path/xen-vbd-51728 > /dev/disk/by-label/Ubuntu\x2012.04\x20LTS\x20amd64 /dev/cdrom > E: TAGS=:udev-acl: > > /lib/udev/cdrom_id /dev/xvdb > ID_CDROM=1 > > In attachment there are complete output of xenstore-ls > http://xen.1045712.n5.nabble.com/file/n5469490/MINT12.txt MINT12.txt > -------------------------------- > > Soon I''ll try again next version of Ubuntu now in alpha status (12.04 LTS) > and if the problem about cdrom is of distribution I will report it on > launchpad, I had already searched the forums and launchpad about it without > getting resolved. > > -- > View this message in context: http://xen.1045712.n5.nabble.com/Cdrom-on-Linux-domU-PV-tp5460198p5469490.html > Sent from the Xen - Dev mailing list archive at Nabble.com. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel