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] Shutting down full virt DomU

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Shutting down full virt DomU
From: jim burns <jim_burn@xxxxxxxxxxxxx>
Date: Wed, 28 May 2008 18:08:29 -0400
Delivery-date: Wed, 28 May 2008 15:09:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <483C5C2C.7030001@xxxxxxxxxxxxxx>
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: <483C5C2C.7030001@xxxxxxxxxxxxxx> (sfid-20080527_153032_633163_0E2AB5C1)
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
On Tuesday May 27 2008 03:08:28 pm Glen Eustace wrote:
> From within the DomU, if I tell windows to shutdown, it does and does
> in virt-manager as 'shutdown' with no dom id.  But it would appear that
> it is really still there.  I can not 'destroy' it as I haven't got an Id
> anymore and if I try to 'create' it, I get an error saying the name
> already exists.  I did manage to start it again from virt-manager by
> just using the 'Right-click RUN' command.
>
> When I shutdown linux DomU's (all PV), the DomU disappears completely
> from the list and I restart with xm create.
>
> Is this expected behavior ? or am I doing something wrong.

Your up against the difference between 'xm create' and 'xm new'. 'new' just 
puts the domain configuration in xenstore, awaiting an 'xm start' to run the 
domain - but when you shutdown, the domain definition is still in xenstore 
until you do an 'xm delete'. Virsh has similar options define/undefine/start, 
and this is what clicking the buttons in virt-manager is doing behind the 
scenes.

Your pv domains, just coincidentally, were either not created with 
virt-manager or virt-install. or you deleted the domain in virt-manager 
somewhere along the way. All domains created by virt-manager/install linger 
in xenstore till deleted, whether pv or hvm.

> What I was trying to do above, was to change the CD device to use a
> different ISO.  I tried xm block-detach but that doesn't seem to work
> without a --force, and then Windows still thinks the drive exists.  The
> drive went away after the restart, as performed above.
>
> I then used xm block-attach and whilst virt-manager shows the device as
> I had hoped, Windows doesn't however.  I tried getting device manager to
> rediscover but that didn't work either.
>
> How does one change CDs with a PV ?

You don't. You can't boot off a cdrom in a pv domain - only in an hvm domain. 
In fact, I've never gotten an 'xm block-attach' of a cdrom to actually do 
anything in a pv domain. 'xm' seems happy, the device shows up in xenstore, 
but the pv domain has nothing new in /dev. Looking at it from virt-manager, 
you can only add a disk partition or simple file as a storage device in a pv 
domain. By contrast, an hvm domain has many more options, including 'ide 
cdrom'.

But you were talking about Windows, and thus hvm. I can usually get an hvm 
domain to see 'something', but it may be something that was in there 1 or 2 
block-attach's ago! I have the most luck switching from a physical cdrom to 
an .iso file, change my cd, then switch back (block-attach) the cdrom drive. 
It's a bit buggy. YMMV.

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

<Prev in Thread] Current Thread [Next in Thread>