[Fedora-xen] Can you attach CDs/DVDs/HDs to an XP Guest?

Dustin Henning Dustin.Henning at prd-inc.com
Fri Apr 18 12:34:52 UTC 2008


David,

                I don't know how much this will help you, as I don't know
much about your setup.  I am running XP HVM guests on F7 (Moonshine) using
the old fashioned text xen method (/etc/xen/auto/guest.hvm, xm create, xm
destroy, etc), and I can't change actual CDs or DVDs in my XP guests.  That
is to say, I think if a CD/DVD is in the drive when I start the guest and
hdc:cdrom is connected to /dev/cdrom in the hvm file, the CD/DVD in the
drive works, however, changing it out does not.  However, if hdc:cdrom is
connected to /dev/cdrom and there is no disc in the drive (or perhaps even
if there is), I can ues the xm block-attach and xm block-detach, for
instance:

xm block-list 2

xm block-detach 2 5632 -f

xm block-attach 2 file:///iso/lm70200.iso hdc:cdrom r

xm block-detach 2 5632 -f

xm block-attach 2 phy:/dev/cdrom hdc:cdrom r

In the above commands, I listed the block devices, determined which was the
cdrom, detached it, attached an iso, used it as needed in the guest,
detached the iso, and reattached the physical drive (even though it doesn't
work).  I can do this over and over again.  Going back to the physical
device probably isn't necessary, but I do it so I am always starting from
the same point.  The reason I doubt it matters is that once XP is booted, it
always shows that drive, detaching it doesn't make it disappear, and
reattaching it doesn't give it a new ID (even if scanning for hardware
changes between steps).  I am also fairly certain that trying to attach one
iso over another isn't sufficient.  If you eject the tray on the cdrom drive
from within xp, you're done until you reboot as far as I can tell, but with
the above steps, if you don't do that, it seems to work alright.  I don't
know if this will help you at all, seeing a how you more than likely use
virt-install, virt-manager, etc, but I figure it can't hurt if there is a
similar process for that system.  Good luck,

                Dustin

 

From: fedora-xen-bounces at redhat.com [mailto:fedora-xen-bounces at redhat.com]
On Behalf Of David Levinger
Sent: Thursday, April 17, 2008 20:11
To: fedora-xen at redhat.com
Subject: [Fedora-xen] Can you attach CDs/DVDs/HDs to an XP Guest?

 

Hey guys and gals,

 

As the subject suggests, is it possible to block-attach a newly placed
CD/DVD/HD/Img file to an XP guest? I've done the "normal" block-attach
command and it says it has "attached" but nothing shows in the XP guest.

 

d

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-xen/attachments/20080418/e14085b0/attachment.htm>


More information about the Fedora-xen mailing list