WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] WinXP CD-ROM problems

In order to change cd-roms, you need to detach/re-attach the device for
WinXP to re-read the drive.  However I've noticed (at least in xen 3.1)
that you have attach a "dummy" drive before re-attaching the real drive.

Here's what i use from dom0:
/usr/sbin/xm block-configure <domU> file:/xen/foo.iso hdc:cdrom r
/usr/sbin/xm block-configure <domU> phy:/dev/cdrom hdc:cdrom r

where hdc:cdrom is the drive in the hvm config.


On Wed, 2008-04-23 at 11:52 -0400, Just Anidiot wrote:
> On Wed, Apr 23, 2008 at 11:37 AM, Tait Clarridge
> <Tait.Clarridge@xxxxxxxxxxxx> wrote:
> > Ok, Have you tried shutting down the VM completely (not just a reboot)
> >  and bringing it back up again?
> 
> Rebooting does cause WinXP to see the new disk in the drive.  However
> that doesn't really work since rebooting in the middle of the software
> install means I have to start over with disk 1.
> 
> >  Have you upgraded any part of your host recently? Or of your Xen
> >  installation?
> 
> Updates are done whenever RH makes them available.
> 
> Currently installed packages are:
> xen-devel-3.0.3-41.el5
> kernel-xen-2.6.18-53.1.14.el5
> kernel-xen-devel-2.6.18-53.1.13.el5
> xen-3.0.3-41.el5
> kernel-xen-devel-2.6.18-53.1.14.el5
> xen-libs-3.0.3-41.el5
> kernel-xen-2.6.18-53.1.13.el5
> 
> 
> 
> >
> >  Best,
> >
> > Tait
> >
> >  -----Original Message-----
> >  From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> >  [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Just Anidiot
> >
> >
> > Sent: Wednesday, April 23, 2008 11:35 AM
> >  To: xen-users@xxxxxxxxxxxxxxxxxxx
> >  Subject: Re: [Xen-users] WinXP CD-ROM problems
> >
> >  On Wed, Apr 23, 2008 at 11:23 AM, Tait Clarridge
> >  <Tait.Clarridge@xxxxxxxxxxxx> wrote:
> >  > If the phy:\ is removed it won't see it. That is a given, I haven't
> >  had
> >  >  much luck with hooking xen to a physical cdrom device.
> >  >
> >
> >  This use to work about 3-5 months ago.  I haven't needed it recently
> >  until today.
> >
> >  >  How did you copy the WinXP install disk? What messages are you
> >  getting,
> >  >  is it from the Xen BIOS or something else...
> >  >
> >
> >  Just with dd if=/dev/cdrom of=image.iso  Its been about a year since I
> >  did it and that's how I installed Windows.  Of course today also WinXP
> >  thinks it needs the disk for something stupid.
> >
> >  >  I have had no issues installing Windows XP in Xen before... do you
> >  mind
> >  >  posting your entire .hvm file and maybe the specs of your rig?
> >  >
> >
> >  Here's my hvm file  (with the old disk line)
> >  -------------------------------
> >  import os, re
> >  arch = os.uname()[4]
> >  if re.search('64', arch):
> >     arch_libdir = 'lib64'
> >  else:
> >     arch_libdir = 'lib'
> >
> >  kernel = "/usr/lib/xen/boot/hvmloader"
> >
> >  builder='hvm'
> >
> >  memory=512
> >
> >  shadow_memory = 8
> >
> >  name = "WinXP-001"
> >
> >  vif = [ 'type=ioemu, bridge=xenbr0' ]
> >
> >  disk = [ 'phy:/dev/VG_Guests/WinXP-001,ioemu:hda,w',
> >  'file:/opt/xen_stuff/winxp.iso,hdc:cdrom,w',
> >  'phy:/dev/scd0,hdd:cdrom,r' ]
> >
> >  device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
> >
> >  boot="cd"
> >
> >  sdl=0
> >
> >  vnc=1
> >
> >  vnclisten="127.0.0.1"
> >
> >  vncdisplay=21
> >
> >  vncpasswd=''
> >
> >  stdvga=0
> >
> >  serial='pty'
> >
> >  usb=1
> >  usbdevice='tablet'
> >  -------------------------
> >
> >  Thanks for trying to help me.
> >
> >
> >  >  Thanks,
> >  >  Tait
> >  >
> >  >
> >  >  -----Original Message-----
> >  >  From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> >  >  [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Just
> >  Anidiot
> >  >  Sent: Wednesday, April 23, 2008 11:07 AM
> >  >  To: xen-users@xxxxxxxxxxxxxxxxxxx
> >  >
> >  >
> >  > Subject: Re: [Xen-users] WinXP CD-ROM problems
> >  >
> >  >  On Wed, Apr 23, 2008 at 10:58 AM, Tait Clarridge
> >  >  <Tait.Clarridge@xxxxxxxxxxxx> wrote:
> >  >  > Hi Just,
> >  >  >
> >  >  >  You need to change the CDROM part of the disk = to look like
> >  >  >
> >  >  >  'file:/opt/xen_stuff/winxp.iso,ioemu:hdc:cdrom,r'
> >  >  >
> >  >  >  That should solve your problem, but make sure you remove the
> >  >  >  'phy:/dev.....' line as well as it will conflict.
> >  >  >
> >  >
> >  >  This didn't solve the problem with WinXP thinking the disk is
> >  corrupted.
> >  >
> >  >  Also I want WinXP to be able to access both the iso and the real
> >  >  physical CDROM on the box.  If I take out the 2nd CDROM (the one with
> >  >  phy:/dev...) WinXP doesn't seem to know anything about the physical
> >  >  one.
> >  >
> >  >  What can I do?
> >  >
> >  >  Thanks.
> >  >
> >  >
> >  >  >
> >  >  >
> >  >  >  -----Original Message-----
> >  >  >  From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> >  >  >  [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Just
> >  >  Anidiot
> >  >  >  Sent: Wednesday, April 23, 2008 10:26 AM
> >  >  >  To: xen-users@xxxxxxxxxxxxxxxxxxx
> >  >  >  Subject: [Xen-users] WinXP CD-ROM problems
> >  >  >
> >  >  >  I'm running Xen on RHEL5.
> >  >  >
> >  >  >  I've got two problems with CD-ROMs.
> >  >  >
> >  >  >  In my .hvm file, I've got the following line:
> >  >  >
> >  >  >  disk = [ 'phy:/dev/VG_Guests/WinXP-001,ioemu:hda,w',
> >  >  >  'file:/opt/xen_stuff/winxp.iso,hdc:cdrom,w',
> >  >  >  'phy:/dev/scd0,hdd:cdrom,r' ]
> >  >  >
> >  >  >  The first CD-ROM,  (the one linking to the file winxp.iso),
> >  appears
> >  >  to
> >  >  >  WinXP to be corrupted.  I'm able to mount that iso in the main OS
> >  so
> >  >  >  I'm thinking this is just some weird Xen/WinXP problem.  I'm not
> >  sure
> >  >  >  when this started as it is the WinXP Install disk and I don't
> >  >  normally
> >  >  >  need it.  It worked originally when I set this up.
> >  >  >
> >  >  >  The next and more pressing problem is that when I pop a CD into
> >  the
> >  >  >  CD-ROM drive, WinXP 99 times out of 100 doesn't realize a new disk
> >  >  has
> >  >  >  been inserted and doesn't update the listing.  This has made
> >  >  >  installing new software impossible.
> >  >  >
> >  >  >  Can someone please help?
> >  >  >
> >  >  >  Thanks in advance.
> >  >  >
> >  >  >  -J
> >  >  >
> >  >  >  _______________________________________________
> >  >  >  Xen-users mailing list
> >  >  >  Xen-users@xxxxxxxxxxxxxxxxxxx
> >  >  >  http://lists.xensource.com/xen-users
> >  >  >
> >  >  >
> >  >  >
> >  >
> >  >  _______________________________________________
> >  >  Xen-users mailing list
> >  >  Xen-users@xxxxxxxxxxxxxxxxxxx
> >  >  http://lists.xensource.com/xen-users
> >  >
> >  >
> >  >
> >
> >  _______________________________________________
> >  Xen-users mailing list
> >  Xen-users@xxxxxxxxxxxxxxxxxxx
> >  http://lists.xensource.com/xen-users
> >
> >
> >
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


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