Hi all, I''m trying to use an IDE DVD Writer in my domU. Here is the disk line from my config file: disk = [ ''phy:hydra/perseus-disk,xvda1,w'', ''phy:hydra/perseus-swap,xvda2,w'', ''phy:/dev/dvd1,hdc:cdrom,w'' ] I think it is connected, because I get this: # xm block-list perseus -l [...] (5632 ((backend-id 0) (virtual-device 5632) (device-type cdrom) (state 6) (backend /local/domain/0/backend/vbd/12/5632) (ring-ref 10) (event-channel 8) (protocol x86_64-abi) ) ) There seems to be no device for the writer, though: root@perseus:~# ls -l /dev/xvd* /dev/hd* ls: /dev/hd*: No such file or directory brw-rw---- 1 root disk 202, 1 Feb 14 16:36 /dev/xvda1 brw-rw---- 1 root disk 202, 2 Feb 14 16:36 /dev/xvda2 I''m running Xen 3.1.0 on a Kubuntu Gutsy Dom0 (AMD64). Thanks in advance for any tips! Paul PS In my searching for a solution to this, I found some folks saying that I need to have media in the writer when booting the domU. Please say it isn''t so!!!! (I did try it, but still no luck) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Paul, Maybe I''m wrong, but from the config file you wrote, I assume that you''re using a PV guest. As far as I remember, you can not assign a "Device" as a CDROM or CDRW in a PV DomU. although you can assign a mounted cd drive as a "block disk drive". This will mean that you can never use a CD/DVD writer in a PV domU. In a HVM DomU, you can show a CDROM with your syntax in config file hdc:cdrom, but I''ve never seen anywhere that a "writer" device is emulated. Always read-only cd/dvd rom drive. What you can do is to possibly use iSCSI and/or Ata over Ethernet to try to push your cd writer to a virtual domain. I''ve never tested it nor I now if is''t technically possible. I would kindly ask other users to comment and correct me if there''s anything wrong. Regards, Emre On Thu, Feb 14, 2008 at 10:48 PM, Paul Waldo <paul@waldoware.com> wrote:> Hi all, > > I''m trying to use an IDE DVD Writer in my domU. Here is the disk line > from my > config file: > > disk > [ ''phy:hydra/perseus-disk,xvda1,w'', ''phy:hydra/perseus-swap,xvda2,w'', > ''phy:/dev/dvd1,hdc:cdrom,w'' ] > > I think it is connected, because I get this: > # xm block-list perseus -l > [...] > (5632 > ((backend-id 0) > (virtual-device 5632) > (device-type cdrom) > (state 6) > (backend /local/domain/0/backend/vbd/12/5632) > (ring-ref 10) > (event-channel 8) > (protocol x86_64-abi) > ) > ) > > There seems to be no device for the writer, though: > root@perseus:~# ls -l /dev/xvd* /dev/hd* > ls: /dev/hd*: No such file or directory > brw-rw---- 1 root disk 202, 1 Feb 14 16:36 /dev/xvda1 > brw-rw---- 1 root disk 202, 2 Feb 14 16:36 /dev/xvda2 > > > I''m running Xen 3.1.0 on a Kubuntu Gutsy Dom0 (AMD64). > > Thanks in advance for any tips! > > Paul > > PS > In my searching for a solution to this, I found some folks saying that I > need > to have media in the writer when booting the domU. Please say it isn''t > so!!!! (I did try it, but still no luck) > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Emre Erenoglu erenoglu@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Hi all, > > I''m trying to use an IDE DVD Writer in my domU. Here is the disk line > from my > config file: > > disk > [ ''phy:hydra/perseus-disk,xvda1,w'', ''phy:hydra/perseus-swap,xvda2,w'', > ''phy:/dev/dvd1,hdc:cdrom,w'' ] >The block interface provided by blkback and blkfront is pretty basic, supporting only read, write, and write+barrier. There is no provision for the sort of commands required for doing writing. Have a look through the archives (maybe xen-devel) for some scsi passthrough patches. They may do what you want. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> The block interface provided by blkback and blkfront is pretty basic, > supporting only read, write, and write+barrier. There is no provision > for the sort of commands required for doing writing.s/writing/burning. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Emre. Yes, you are correct that this is a PV guest. OK, so I can''t get there from here... Should a USB DVD writer work if I can get the USB ports pushed into the DomU? Thanks! Paul On Thursday 14 February 2008 8:14:22 pm Emre ERENOGLU wrote:> Hi Paul, > > Maybe I''m wrong, but from the config file you wrote, I assume that you''re > using a PV guest. As far as I remember, you can not assign a "Device" as a > CDROM or CDRW in a PV DomU. although you can assign a mounted cd drive as a > "block disk drive". This will mean that you can never use a CD/DVD writer > in a PV domU. > > In a HVM DomU, you can show a CDROM with your syntax in config file > hdc:cdrom, but I''ve never seen anywhere that a "writer" device is emulated. > Always read-only cd/dvd rom drive. > > What you can do is to possibly use iSCSI and/or Ata over Ethernet to try to > push your cd writer to a virtual domain. I''ve never tested it nor I now if > is''t technically possible. > > I would kindly ask other users to comment and correct me if there''s > anything wrong. > > Regards, > > Emre > > On Thu, Feb 14, 2008 at 10:48 PM, Paul Waldo <paul@waldoware.com> wrote: > > Hi all, > > > > I''m trying to use an IDE DVD Writer in my domU. Here is the disk line > > from my > > config file: > > > > disk > > [ ''phy:hydra/perseus-disk,xvda1,w'', ''phy:hydra/perseus-swap,xvda2,w'', > > ''phy:/dev/dvd1,hdc:cdrom,w'' ] > > > > I think it is connected, because I get this: > > # xm block-list perseus -l > > [...] > > (5632 > > ((backend-id 0) > > (virtual-device 5632) > > (device-type cdrom) > > (state 6) > > (backend /local/domain/0/backend/vbd/12/5632) > > (ring-ref 10) > > (event-channel 8) > > (protocol x86_64-abi) > > ) > > ) > > > > There seems to be no device for the writer, though: > > root@perseus:~# ls -l /dev/xvd* /dev/hd* > > ls: /dev/hd*: No such file or directory > > brw-rw---- 1 root disk 202, 1 Feb 14 16:36 /dev/xvda1 > > brw-rw---- 1 root disk 202, 2 Feb 14 16:36 /dev/xvda2 > > > > > > I''m running Xen 3.1.0 on a Kubuntu Gutsy Dom0 (AMD64). > > > > Thanks in advance for any tips! > > > > Paul > > > > PS > > In my searching for a solution to this, I found some folks saying that I > > need > > to have media in the writer when booting the domU. Please say it isn''t > > so!!!! (I did try it, but still no luck) > > > > _______________________________________________ > > 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 Paul, theoretically, having a USB port in DomU shall do the job. Let us know if you''re successful in that! :) Emre On Fri, Feb 15, 2008 at 1:29 PM, Paul Waldo <paul@waldoware.com> wrote:> Hi Emre. Yes, you are correct that this is a PV guest. OK, so I can''t > get > there from here... Should a USB DVD writer work if I can get the USB > ports > pushed into the DomU? Thanks! > > Paul > > On Thursday 14 February 2008 8:14:22 pm Emre ERENOGLU wrote: > > Hi Paul, > > > > Maybe I''m wrong, but from the config file you wrote, I assume that > you''re > > using a PV guest. As far as I remember, you can not assign a "Device" as > a > > CDROM or CDRW in a PV DomU. although you can assign a mounted cd drive > as a > > "block disk drive". This will mean that you can never use a CD/DVD > writer > > in a PV domU. > > > > In a HVM DomU, you can show a CDROM with your syntax in config file > > hdc:cdrom, but I''ve never seen anywhere that a "writer" device is > emulated. > > Always read-only cd/dvd rom drive. > > > > What you can do is to possibly use iSCSI and/or Ata over Ethernet to try > to > > push your cd writer to a virtual domain. I''ve never tested it nor I now > if > > is''t technically possible. > > > > I would kindly ask other users to comment and correct me if there''s > > anything wrong. > > > > Regards, > > > > Emre > > > > On Thu, Feb 14, 2008 at 10:48 PM, Paul Waldo <paul@waldoware.com> wrote: > > > Hi all, > > > > > > I''m trying to use an IDE DVD Writer in my domU. Here is the disk line > > > from my > > > config file: > > > > > > disk > > > [ ''phy:hydra/perseus-disk,xvda1,w'', ''phy:hydra/perseus-swap,xvda2,w'', > > > ''phy:/dev/dvd1,hdc:cdrom,w'' ] > > > > > > I think it is connected, because I get this: > > > # xm block-list perseus -l > > > [...] > > > (5632 > > > ((backend-id 0) > > > (virtual-device 5632) > > > (device-type cdrom) > > > (state 6) > > > (backend /local/domain/0/backend/vbd/12/5632) > > > (ring-ref 10) > > > (event-channel 8) > > > (protocol x86_64-abi) > > > ) > > > ) > > > > > > There seems to be no device for the writer, though: > > > root@perseus:~# ls -l /dev/xvd* /dev/hd* > > > ls: /dev/hd*: No such file or directory > > > brw-rw---- 1 root disk 202, 1 Feb 14 16:36 /dev/xvda1 > > > brw-rw---- 1 root disk 202, 2 Feb 14 16:36 /dev/xvda2 > > > > > > > > > I''m running Xen 3.1.0 on a Kubuntu Gutsy Dom0 (AMD64). > > > > > > Thanks in advance for any tips! > > > > > > Paul > > > > > > PS > > > In my searching for a solution to this, I found some folks saying that > I > > > need > > > to have media in the writer when booting the domU. Please say it > isn''t > > > so!!!! (I did try it, but still no luck) > > > > > > _______________________________________________ > > > Xen-users mailing list > > > Xen-users@lists.xensource.com > > > http://lists.xensource.com/xen-users > > >-- Emre Erenoglu erenoglu@gmail.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thursday 14 February 2008 08:41:05 pm James Harper wrote:> The block interface provided by blkback and blkfront is pretty basic, > supporting only read, write, and write+barrier. There is no provision > for the sort of commands required for doing writing.What is ''write+barrier''? Thanx. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> On Thursday 14 February 2008 08:41:05 pm James Harper wrote: > > The block interface provided by blkback and blkfront is prettybasic,> > supporting only read, write, and write+barrier. There is noprovision> > for the sort of commands required for doing writing. > > What is ''write+barrier''? Thanx.The barrier is a signal to pass on to the disk that all writes sent to the disk before the barrier should be completed before any writes sent after the barrier. The disk (or disk array etc) may re-order writes for efficiency reasons, especially if write caching is happening. This can be disastrous if the operating system has made an assumption about the atomicity of its write operation. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users