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] Xen and Fedora 7

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen and Fedora 7
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Sun, 13 Apr 2008 17:27:12 +0100
Cc: David Morsberger <david@xxxxxxxxxxxxxx>
Delivery-date: Sun, 13 Apr 2008 09:27:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <000901c8933d$f5475500$fb05030a@xxxxxxxxx>
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: <000901c8933d$f5475500$fb05030a@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
> I recently installed Fedora 7, Xen with Windows Vista in a VM using the
> Virtual Machine Manager tool. Everything has worked great but now I can not
> get the VM to start during Linux boot. I made sure xend and xendomain are
> started using chkconfig.
>
>
>
> Everything I have read talked about placing a .hvm file in the
> /etc/xen/auto directory. The Virtual Machine Manager tool did not create a
> .hvm file to place in the directory.

When a configuration file is created it's not necessarily called 
something.hvm.  The extension isn't necessary.

It may be that F7's virt-manager doesn't create config files at all and 
instead uses Xend's "managed domains"...  If this is the case then you'd need 
a different approach to make a domain autostart at boot.

> How do I start my Vista VM when the machine boots?

I can't actually find a way to change a managed VM to autostart :-(  The only 
way I can see is to use virsh to dump the XML config for a domain, delete the 
old managed config (but not the virtual disks, etc) add an option 
for "auto_power_on", set to "true", then use xm new to create a new managed 
virtual machine based on the modified config.  Or alternatively, you could 
try finding where Xend stores managed domain configs and editting them 
(whilst Xend is not running).

To be perfectly honest, all that is a bit unpleasant...  I think the support 
in this area is not complete, so unless virt-manager or virsh provides a 
friendlier way of changing settings you may not have a nice alternative.  
It's equally possible that I just don't understand managed domains well 
enough and am missing something obvious...

Perhaps the simplest way would be to create your own startup script to run 
some xm create commands on boot, then add it to something like /etc/rc.local 
to be run at boot?

> Also, are there any hooks to gracefully shutdown Vista when the VM is
> shutdown?

Not by default, that I know of.  If you were running a PV driver pack in the 
guest this might be possible.

Cheers,
Mark

-- 
Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)

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

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