WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] CD/DVD drive in DomU

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] CD/DVD drive in DomU
From: Paul Schulze <avlex@xxxxxxx>
Date: Wed, 6 Aug 2008 01:07:22 +0200
Delivery-date: Tue, 05 Aug 2008 16:08:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-pgp-agent:x-mailer:sender; bh=kCiyn6Q9yjTU+JBjCoh/fjWJpk8SoVyzLXBAjB9rQh4=; b=KUdxYrlAwjpM8xGnCpeGmVQ6aMmxUYbBDhdzH1JQkhxkIATmU5eid8NEw59ZyP9zjn pQRsxJg8DGOZWll947ht4gapN4GX6w4ByO1clqKJ8/txwFd+i6fAo/Xf8Ccyi+ADA1FE fhWQVnTeJZ664YWWuxygWm/Eiqcxb4EZWpL0M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-pgp-agent:x-mailer :sender; b=SOLKiVfNGcyGNpvVVgZaa00dJjhVeDMrYLhsVZhhMh5xHJ53RmMXz99p/zavyy3pdR /ZUpLPapvwjYHBedWPrgCTeZq+A58kQpb9wajspCWOAQnQq1NOQnb6LZdIUal6dSusMX I3K/xwD7LTz08EJbLuNV7R5W209RONtNUyOJM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1e16a9ed0808051311g6c65ff59i899085f097b293ef@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <293D672A-CFE7-4D90-9336-72CD902F8B45@xxxxxxx> <1e16a9ed0808051311g6c65ff59i899085f097b293ef@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 05.08.2008 um 22:11 schrieb Todd Deshane:

On Tue, Aug 5, 2008 at 9:39 AM, Paul Schulze <avlex@xxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

I was just playing around with my Xen project again and tried to assign a physical CD/DVD drive to my Desktop DomU via the disk section in the config file, because I want to use it for CD and DVD reading and writing (like on a
normal desktop). I tried 'phy:/dev/scd0,scd0,r' and
'phy:/dev/scd0,scd0:cdrom,r', which resulted in the device not showing up in
/dev in the DomU at all, and 'phy:/dev/scd0,hdc:cdrom,r' and
'phy:/dev/scd0,hdc,r', resulting in the device showing up but wodim -scanbus
not finding it (which would be essential for CD/DVD writing) and no
auto-mounting.

After a bit of research, I tried to pass the IDE controller to that DomU, which resulted in the CD/DVD drive not being available in either of the VMs and a system crash when destroying the Desktop DomU. I already checked for possibly overlapping IRQs, but as far as I could see, when assigning the
IDE controller to that DomU, it is then the sole user of it.

Am I doing something wrong here, or is there any better way to accomplish this? Ideally, the sollution wouldn't have to depend on passing the IDE controller to the DomU, since I am planning on replacing the current IDE DVD-Writer with a SATA BD-Combo and my board only has one SATA controller (and I wouldn't like to buy a separate one). Any ideas on how to make this
work?


Maybe this is related:
http://xen.markmail.org/search/?q=media#query:media%20date% 3A200807-200808%20+page:1+mid:2qqhjm6mb2yearoc+state:results


Hi Todd,

Thanks for pointing me there. Sadly, this post would explain the problems, I had with just passing a physical block device to the DomU. If I understand it correctly, this means that there is no way, disk burning would work properly, even with the patch, because the DomU still only passes along the raw device data without the proper controller access (in which case, phy as tag is totally misleading and should probably be changed to raw or something). To get this to work, I'll have to get PCI passhrough to work properly for the IDE controller, make the DomU recognize the drive and hope that someone comes up with a good way to use a physical CD/DVD drive without PCI passthrough in the future (which would need some hack on ioctl too, if I remember correctly), to be able to use a SATA drive with just one controller.

Are my assumptions wrong, or does someone have an idea on the problems, I previously described with passing the IDE controller to the DomU? The hardware, I'm trying this on is an AMD X2 4850e on an Asus M3A-H/HDMI board, with Ubuntu Server (with Xen 3.2 from the repository) as a Dom0 and Ubuntu as DomU, debootstrapped via xen- tools. Up until now, the system was pretty stable and reliable, considering the amount of PCI devices, I hand to the Desktop and IPCop DomU, so I really don't get what is going wrong with the IDE controller (and the graphics card like I described in some earlier posts). If someone has a hint there, I'd be grateful.

Thanks,


Paul.

- --
Paul Schulze
avlex@xxxxxxx
Public Key: http://solaris-net.dyndns.org/keys/key_avlex.asc

"Making mistakes is human,
but to really fuck things up you need Computers"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFImN0qYDWOGtiChoARAhRiAJ9gxZlg1w+9/UT9C9/XAoRjQVCdvgCfZb3Z
RPWLCPfyV1ww45fwN7vetCA=
=s5pH
-----END PGP SIGNATURE-----

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

<Prev in Thread] Current Thread [Next in Thread>