Hi, I recently moved a Win2k3 server from VMware into Xen. I am a little puzzled over a couple of things and would like confirmation of whether what I am seeing/doing is correct (expected behaviour) or if not what I am doing wrong. 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. 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 ? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Glen and Rosanne Eustace GodZone Internet Services, a division of AGRE Enterprises Ltd. P.O. Box 8020, Palmerston North, New Zealand 4446. Ph: +64 6 357 8168, Fax +64 6 357 8165, Mob: +64 21 424 015 http://www.godzone.net.nz "A Ministry specialising in providing low-cost Internet Services to NZ Christian Churches, Ministries and Organisations." _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@lists.xensource.com http://lists.xensource.com/xen-users
> 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. Hmmm, I start all my PVs with xm create, I wasn''t even aware that there was a new option :-( I also created the hvm the same way which is why I was surprised by the different behavior. > You don''t. You can''t boot off a cdrom in a pv domain - only in an hvm > domain. Ooops my error, it is the hvm I am having trouble with the CD on. > 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. Hmmm, must be a better way to do this. With VMware, I used to mount the iso via a symlink and then used to do a disconnect, relink to a different iso, connect again to change the CD. But I am not sure how to do this with an HVM. At the moment, I have virt-manager telling me that hdc is there and windows telling me its not. :-( -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Glen and Rosanne Eustace GodZone Internet Services, a division of AGRE Enterprises Ltd. P.O. Box 8020, Palmerston North, New Zealand 4446. Ph: +64 6 357 8168, Fax +64 6 357 8165, Mob: +64 21 424 015 http://www.godzone.net.nz "A Ministry specialising in providing low-cost Internet Services to NZ Christian Churches, Ministries and Organisations." _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thursday May 29 2008 01:29:08 am Glen Eustace wrote:> With VMware, I used to mount the iso via a symlink and then used to do a > disconnect, relink to a different iso, connect again to change the CD. > But I am not sure how to do this with an HVM. At the moment, I have > virt-manager telling me that hdc is there and windows telling me its > not. :-(I''ve never tried hot-plugging a cdrom into an hvm domain that didn''t boot with that definition, so Windows always sees something - it just may not be correct. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users