Personal tools
You are here: Home Docs Help! How-tos Windows CDROM's in Xen VM's

Windows CDROM's in Xen VM's

1.0

This How-to applies to: All
This How-to is intended for: Server Administrator

Some brief detail on how to connect up and switch CDROM's within Windows instances when running inside Xen

Purpose

How to persuade a Windows (2000) virtual machine running inside Xen (3.2) that you have physically changed the CD in the drive.

Prerequisities

Xen 3.2 with a Windows 2000 instance running on top with VNC console access.

Step by step

Inside the VNC console you first need to switch into the Xen monitor with;

ctrl-alt-2
If necessary you can list the monitor commands available with;
help <return>
Now tell the monitor that you're changing the CD
eject hdc <return>
Now you need to physically change the CD in the drive;
[Remove CD]
[Insert new CD]
Now tell Windows it can reconnect to the drive;
change hdc /dev/cdrom

And switch back into Windows;

ctrl-alt-1

Using command line tools

You can also change the connection from the Xen Dom0 using the xm command tool as follows;

xm block-configure <instance> phy:/dev/cdrom hdc:cdrom r

If for some reason your cdrom isn't /dev/cdrom, obviously you will need to change this, but another method for forcing a change is to connect the cdrom to a dummy ISO file, then bacl to /dev/cdrom .. apparently this should also do the trick. Indeed this command can be quite useful after startup, if you have a number of HVM's that all map to the CDROM, sometimes they don't actually attach themselves properly (parallel conflict??). This command can however be used to remedy the problem on a running instance.

Further information

There are / will be a number of Xen related articles, watch this space (or make a request!)

Data recovery
We provide a professional, cost effective and prompt data recovery service. Check out our advanced techniques and methodologies.
Printer Cartridges...
For the highest quality printer cartridges, at the best prices, connect to this site.
ink uk
Thinking ink? We are UK ink specialists, supplying home business and trade users. When getting ink, get in touch. Ink excellence.
Remote support >
Connect offers the best support for IT related issues. Give them a call.
Dedicated Hosting
If you are looking for a company to host your server then click on the link above.
Broadband Deals
For award winning service and the best broadband deals, visit Virgin Media.
Reverse Phone Lookup
Type in any phone number to instantly find out owner's name, address and more.
Laptop
Visit CheckCost UK to compare, review and buy latest computers, laptops, scanners, printers, hard drives, LCD monitors and many more.
Software
Visit Ecost Software to find your favourite brands like Adobe, Apple, Microsoft, Autodesk, Codegear, Corel, Symantec and more.
Internet Services
Looking for web design, web hosting or online application development, try Encryptec!