Re: Booting virtual machines automatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,
You may see /etc/init.d/libvirtd carefully, libvirt is default started 
on runlevel 3, 4, 5 (# Default-Start: 3 4 5):

# chkconfig libvirtd --list
libvirtd       	0:off	1:off	2:off	3:on	4:on	5:on	6:off

It may be different for libvirtd location from you, because I'm using 
a RHEL OS.

Good Luck!
Alex


----- Original Message -----
From: "Daniel Gonzalez" <gonvaled@xxxxxxxxxxxx>
To: "Alex Jia" <ajia@xxxxxxxxxx>
Cc: libvirt-users@xxxxxxxxxx
Sent: Monday, March 5, 2012 6:08:18 PM
Subject: Re: Booting virtual machines automatically

Thanks Alex, 


That did the trick. Now I am curious: how is libvirtd started at all? 


I have Ubuntu 10.10, and I have noticed the presence of a symbolic link: 



lrwxrwxrwx 1 root root 21 2011-05-26 09:45 /etc/init.d/libvirt-bin -> /lib/init/upstart-job 


But this script is not used in any of the runlevels. Who is starting libvirtd? 


Thanks, 
Daniel Gonzalez 

On Thu, Mar 1, 2012 at 4:21 PM, Alex Jia < ajia@xxxxxxxxxx > wrote: 


Hi Daniel, 
The following autostart should be okay for you: 

# virsh help autostart 
NAME 
autostart - autostart a domain 

SYNOPSIS 
autostart <domain> [--disable] 

DESCRIPTION 
Configure a domain to be automatically started at boot. 

Regards, 
Alex 




----- Original Message ----- 
From: "Daniel Gonzalez" < gonvaled@xxxxxxxxxxxx > 
To: libvirt-users@xxxxxxxxxx 
Sent: Thursday, March 1, 2012 10:51:45 PM 
Subject: Booting virtual machines automatically 


Hello, 


I am managing several virtual machines (a predefined set) with virsh, and I would like to make sure that all VMs are booted when the host reboots. 


What is the recommended approach for this? 


Thanks, 
Daniel Gonzalez 


_______________________________________________ 
libvirt-users mailing list 
libvirt-users@xxxxxxxxxx 
https://www.redhat.com/mailman/listinfo/libvirt-users 


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux