David Levinger
2008-Apr-18 00:11 UTC
[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
Dustin Henning
2008-Apr-18 12:25 UTC
RE: [Fedora-xen] Can you attach CDs/DVDs/HDs to an XP Guest?
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
From: fedora-xen-bounces@redhat.com [mailto:fedora-xen-bounces@redhat.com]
On Behalf Of David Levinger
Sent: Thursday, April 17, 2008 20:11
To: fedora-xen@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
Dustin Henning
2008-Apr-18 12:34 UTC
RE: [Fedora-xen] Can you attach CDs/DVDs/HDs to an XP Guest?
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@redhat.com [mailto:fedora-xen-bounces@redhat.com]
On Behalf Of David Levinger
Sent: Thursday, April 17, 2008 20:11
To: fedora-xen@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
David Levinger
2008-Apr-18 21:10 UTC
RE: [Fedora-xen] Can you attach CDs/DVDs/HDs to an XP Guest?
Thanks Dustin,
Your response gave me hope and I kept poking around and found the
following two previous email threads:
http://xen.markmail.org/message/55544ap2h34mzi3n?q=block-attach+hvm
<http://xen.markmail.org/message/55544ap2h34mzi3n?q=block-attach+hvm&page6>
&page=6
and
http://xen.markmail.org/message/xxnkqhjgsqrtvukn?q=block-attach+hvm
<http://xen.markmail.org/message/xxnkqhjgsqrtvukn?q=block-attach+hvm&page2#query:block-attach%20hvm+page:2+mid:6eyxxqeg3vrrobe6+state:results>
&page=2#query:block-attach%20hvm+page:2+mid:6eyxxqeg3vrrobe6+state:results
And it looks like xm block-configure was the ticket! It hasn''t worked
for
me 100% but by setting the devices to "null" it works pretty darn good
:-)
Thanks again,
David
_____
From: Dustin Henning [mailto:Dustin.Henning@prd-inc.com]
Sent: Friday, April 18, 2008 5:35 AM
To: ''David Levinger''; fedora-xen@redhat.com
Subject: RE: [Fedora-xen] Can you attach CDs/DVDs/HDs to an XP Guest?
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@redhat.com [mailto:fedora-xen-bounces@redhat.com]
On Behalf Of David Levinger
Sent: Thursday, April 17, 2008 20:11
To: fedora-xen@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