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

To: "Jason Solan" <jsolan@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] WinXP CD-ROM problems
From: "Just Anidiot" <jistanidiot@xxxxxxxxx>
Date: Thu, 24 Apr 2008 15:47:40 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 24 Apr 2008 12:53:29 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KSKl81ctsUm/gijwlu9j99mhc5iigMwUfD8GbCNY/tQ=; b=sDCdltS20oIxhaKfAqDL3+sFnMWVn+31aE3xvp9N3EJSM2vEu9GD9n3EliER2TcIjYT2M3CwjjTwpTGD3w4nKj0d4wxTK9qPSVXFLsjXuUbq4WBfz5gd1kkfwfwwRivi+ADGwcTJcdyqHPJL/cISrQyc9rMZQ0rhXsA0jIZddmA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mfF8DGb+/LMoDc6BXsFD3g4R1PEgAVohKbfWOBreYV9rngA9srcFxfidJhNpTSwiPQtF7eQOLmsjZXOyX6h2pLONeODUkSj2vkKc7oqqQ9mV7QrrD+F3rEr8WjUAAb9YdHyvXCLiTg3ok/0hopeoZM73f/99rwLVGgpDNRPBvOE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1208968334.6014.7.camel@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <9ba2cb970804230726y741b56b9o475aefa4495061a0@xxxxxxxxxxxxxx> <EBEEB3C8FBD6B0448AEDF986B303BEB60BD54CFD@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <9ba2cb970804230806v49f148by747c64b2fcdfb403@xxxxxxxxxxxxxx> <EBEEB3C8FBD6B0448AEDF986B303BEB60BD54D1E@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <9ba2cb970804230835o449f2085m1acc3eed3c7d467c@xxxxxxxxxxxxxx> <EBEEB3C8FBD6B0448AEDF986B303BEB60BD54D2B@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <9ba2cb970804230852p24e30566i3809369e8ad07476@xxxxxxxxxxxxxx> <1208968334.6014.7.camel@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
The one for the physical drive seems to work.  Now how can a make that
command run automatically when I pop a CD into the drive?

Thanks.


On Wed, Apr 23, 2008 at 12:32 PM, Jason Solan
<jsolan@xxxxxxxxxxxxxxxxxxxx> wrote:
> 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
>

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