[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] Changing CD's on DomU



> Hi.  I have a windows xp DomU running and it only remembers the last
CD
> that was used in the physical drive.  So if I want to install
something
> with multiple CD's, I'm kind of out of luck, as it doesn't refresh
when  I
> put in a new CD.  Is there a workaround for this?

Maybe right click and eject the CD from within windows?

Failing that, you might just be able to use 'xm block-configure' to
reconfigure the disk to exactly the same block device...

The syntax is pretty straightforward:

"
xm block-configure <Domain> <BackDev> <FrontDev> <Mode>
"

Where <domain> is the name of the domain (from xm list), <backdev> is
the Dom0 block device (the first bit in the 'disk=' line in the config,
<frontdev> is the DomU block device (the second bit in the 'disk=' line
in the config), and mode is the access mode (the third bit in the
'disk=' line in the config).

So... the disk= line in my config file looks like ('scuse the line
wrapping):

"
disk = [ 'phy:/dev/vg00/virt-bitdc02-0,hda,w',
'phy:/installmedia/Microsoft/W2K3R2_x32_1_ent.iso,hdc:cdrom,r' ]
"

and I want to change the CD to the '.../W2K3R2_x32_2_ent.iso' (the
second install CD), I would issue the command:

"
xm block-configure bitdc02
phy:/installmedia/Microsoft/W2K3R2_x32_2_ent.iso hdc:cdrom r
"

I'm using iso images, but the same thing should work if you just specify
the same device again for a physical CD drive, or maybe specify an
invalid device first, wait a few seconds, then specify the original
device again.

HTH

James


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.