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

Re: [Xen-devel] Cdrom on Linux domU PV



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.42

I wonder if this kernel is missing:
        commit 4352b47ab7918108b389a48d2163c9a4c2aaf139
        Author: Marek Marczykowski <marmarek@xxxxxxxxxxxx>
        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@xxxxxxxxxxxx>
            Acked-by: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
            [v1: Changed title]
            Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
        
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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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


 


Rackspace

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