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

Windows CDROM's in Xen VM's

3.16666666667

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!)

Broadband Deals
Compare the best broadband deals available in the UK from all the leading Internet Service Providers including BT, Sky and Virgin Media.
IT Support Manchester
For IT support, Manchester based MailSure will provide technical support for your IT needs or take control of your IT requirements at any stage in your business development.
IT Support Bristol
IT Services and IT Support provider based in Bristol. Computer maintenance with server support as standard.
Mobile Broadband Deals
Compare the cheapest mobile broadband deals on Mobile Broadband Genie, the independent UK price comparison website.
Project Planning Software
Atlantic Global offers full solutions of project management software, including project planning software, timesheets and more
City Leased Lines
Dedicated 100Mbit fibre optic Internet and Cloud outsourcing in the City of London, call now on 020 7096 9004 or email sales@metro-tek.com
IT Support
For The Best IT Support In London Make Our IT Department Your IT Department. Microsoft Gold Certified Partner.
IT Support London
Efficent IT Support & Hosted Services for SME businesses in and around greater London.
Reliable Web Hosting
Affordable Web Hosting with one click installs for Joomla, Moodle, Wordpress and more!
Data Recovery
Professional data recovery services