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&page=6 and 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 J Thanks again, David From: Dustin Henning
[mailto:Dustin.Henning@xxxxxxxxxxx] 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@xxxxxxxxxx [mailto:fedora-xen-bounces@xxxxxxxxxx] On Behalf Of David Levinger 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 |
-- Fedora-xen mailing list Fedora-xen@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-xen