[virt-tools-list] Why there is no "autostop"?

Eric Blake eblake at redhat.com
Thu Mar 13 19:44:36 UTC 2014

On 03/13/2014 01:39 PM, Peng Yu wrote:

>> Use the libvirt-guests service, then edit /etc/sysconfig/libvirt-guests
>> to change ON_SHUTDOWN=shutdown instead of the default of suspend.

> What is the ubuntu equivalent? I only find the following conf files.
> But ON_SHUTDOWN appears in none of them. Thanks.

Can you find the equivalent of /usr/libexec/libvirt-guests.sh, and see
what file it sources?  Basically, libvirt installs the libvirt-guest
preferences file into $sysconfdir/sysconfig by default, but I don't know
enough about the ubuntu services setup to know where that would be.  Or
do a file listing of your libvirt packages, to see which directory owns
a file named libvirt-guests.

> /etc/libvirt$ ls *.conf
> libvirt.conf  libvirtd.conf  lxc.conf  qemu.conf  qemu-lockd.conf

It won't be in this directory; /etc/libvirt is reserved for
configuration files sourced by libvirt binaries, while you are looking
for the libvirt-guests (no suffix) file that gets installed in the
directory reserved for configuration files sourced by system services.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140313/760f9cd8/attachment.sig>

More information about the virt-tools-list mailing list