Re: [CentOS-virt] how to enable auto-start on newer versions of Xen ?

2016-08-23 Thread Craig Thompson
Thank you, Sarah.  That was the missing piece.



--

Craig Thompson, President

Caldwell Global Communications, Inc.


-Original message-
From: Sarah Newman 
Sent: Tuesday 23rd August 2016 17:14
To: Discussion about the virtualization on CentOS 
Subject: Re: [CentOS-virt] how to enable auto-start on newer versions of Xen ?


On 08/23/2016 01:10 PM, Sarah Newman wrote:
> On 08/23/2016 12:59 PM, Craig Thompson wrote:
> 
>> I was thinking that in iterations past, it was possible just to run the 
>> hypervisor, put a symlink in /etc/xen/auto, and VMs would be auto-started 
>> upon reboot.  Maybe I'm wrong, and maybe those older boxes had libvirt 
>> installed on them, too.
>>
> 
> We haven't had issues on xen 4.6. We don't use libvirt.
> 
> Are you sure xendomains is enabled? Maybe in the past it was enabled by 
> default but isn't now.
> 
> If it is enabled, have you tried running the xendomains init script manually 
> with bash -x to see where it's going wrong? You need to add 'set -x' to
> /usr/lib64/xen/bin/xendomains as well for full output.
> 

Sorry, I missed the CentOS 7 bit.

Looking at https://github.com/CentOS-virt7/xen/blob/xen-46/SPECS/xen.spec#L613 
it looks like xendomains is not enabled by default. It looks like that
happened in 
https://github.com/CentOS-virt7/xen/commit/01a31207ef50ec8c664fa0807ac85075dca3aa53.
 No clue as to why.

--Sarah

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] how to enable auto-start on newer versions of Xen ?

2016-08-23 Thread Sarah Newman
On 08/23/2016 01:10 PM, Sarah Newman wrote:
> On 08/23/2016 12:59 PM, Craig Thompson wrote:
> 
>> I was thinking that in iterations past, it was possible just to run the 
>> hypervisor, put a symlink in /etc/xen/auto, and VMs would be auto-started 
>> upon reboot.  Maybe I'm wrong, and maybe those older boxes had libvirt 
>> installed on them, too.
>>
> 
> We haven't had issues on xen 4.6. We don't use libvirt.
> 
> Are you sure xendomains is enabled? Maybe in the past it was enabled by 
> default but isn't now.
> 
> If it is enabled, have you tried running the xendomains init script manually 
> with bash -x to see where it's going wrong? You need to add 'set -x' to
> /usr/lib64/xen/bin/xendomains as well for full output.
> 

Sorry, I missed the CentOS 7 bit.

Looking at https://github.com/CentOS-virt7/xen/blob/xen-46/SPECS/xen.spec#L613 
it looks like xendomains is not enabled by default. It looks like that
happened in 
https://github.com/CentOS-virt7/xen/commit/01a31207ef50ec8c664fa0807ac85075dca3aa53.
 No clue as to why.

--Sarah

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] how to enable auto-start on newer versions of Xen ?

2016-08-23 Thread Sarah Newman
On 08/23/2016 12:59 PM, Craig Thompson wrote:

> I was thinking that in iterations past, it was possible just to run the 
> hypervisor, put a symlink in /etc/xen/auto, and VMs would be auto-started 
> upon reboot.  Maybe I'm wrong, and maybe those older boxes had libvirt 
> installed on them, too.
> 

We haven't had issues on xen 4.6. We don't use libvirt.

Are you sure xendomains is enabled? Maybe in the past it was enabled by default 
but isn't now.

If it is enabled, have you tried running the xendomains init script manually 
with bash -x to see where it's going wrong? You need to add 'set -x' to
/usr/lib64/xen/bin/xendomains as well for full output.

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] how to enable auto-start on newer versions of Xen ?

2016-08-23 Thread Craig Thompson
PJ,


I didn't have virsh installed (libvirt-client).  After having installed it, it 
still didn't see the process:



virsh autostart testvm
error: failed to connect to the hypervisor
error: no valid connection
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such 
file or directory



Then, after having installed libvirt, it gives essentially the same error.



I was thinking that in iterations past, it was possible just to run the 
hypervisor, put a symlink in /etc/xen/auto, and VMs would be auto-started upon 
reboot.  Maybe I'm wrong, and maybe those older boxes had libvirt installed on 
them, too.



If I need to install libvirt, what does this mean overall?  What am I changing? 
 What other process needs to run or be started upon boot on a  CentOS 7.x box?



Thanks.



--

Craig Thompson, President

Caldwell Global Communications, Inc.


-Original message-
From: PJ Welsh 
Sent: Monday 15th August 2016 17:05
To: Discussion about the virtualization on CentOS 
Subject: Re: [CentOS-virt] how to enable auto-start on newer versions of Xen ?

Try, "virsh autostart VMNAME"
pjwelsh

On Mon, Aug 15, 2016 at 2:54 PM, Craig Thompson  > wrote:
Hello,


In days past, all I had to do was create /etc/xen/auto and put a symlink in 
there to the config file for each VM I wanted to have started automatically.



Since updating to 4.6, this doesn't work.  Period.



I'm having a hard time finding what needs to change in order to get VMs to auto 
start on reboot of a server.  Can someone please point me to documentation that 
I have missed or share the gold nugget?





--

Craig Thompson, President

Caldwell Global Communications, Inc.



___
 CentOS-virt mailing list
 CentOS-virt@centos.org  
 https://lists.centos.org/mailman/listinfo/centos-virt
 


___

CentOS-virt mailing list

CentOS-virt@centos.org

https://lists.centos.org/mailman/listinfo/centos-virt



___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] how to enable auto-start on newer versions of Xen ?

2016-08-16 Thread Scot P. Floess


Craig,

Try this:

mkdir -p /etc/libvirt/libxl/autostart
cd /etc/libvirt/libxl/autostart
ln -s /etc/libvirt/libxl/[name-of-vm].xml

I just verified that worked for me...  Here is my setup:

[root@host-1 ~]# ls -latr /etc/libvirt/libxl
total 24
drwx--. 6 root root 4096 Jun 26 15:31 ..
-rw---  1 root root 1279 Jul 19 12:36 pulp.xml
-rw---  1 root root 1279 Aug  1 12:38 solr.xml
-rw---  1 root root 1300 Aug  4 13:01 workstation.xml
-rw---  1 root root 1306 Aug  8 12:48 atomic-master.xml
-rw---  1 root root 1271 Aug  8 12:48 db.xml
drwxr-xr-x  3 root root  111 Aug 16 12:12 .
drwxr-xr-x  2 root root   28 Aug 16 12:12 autostart
[root@host-1 ~]#
[root@host-1 ~]# ls -latr /etc/libvirt/libxl/autostart/
total 0
drwxr-xr-x 3 root root 111 Aug 16 12:12 ..
lrwxrwxrwx 1 root root  34 Aug 16 12:12 workstation.xml -> 
/etc/libvirt/libxl/workstation.xml

drwxr-xr-x 2 root root  28 Aug 16 12:12 .


Hope that helps!

Flossy


PS I am running 4.6.1...






In days past, all I had to do was create /etc/xen/auto and put a symlink in 
there to the config file for each VM I wanted to have started automatically.

Since updating to 4.6, this doesn't work.  Period.

I'm having a hard time finding what needs to change in order to get VMs to auto 
start on reboot of a server.  Can someone please point me to documentation that 
I have missed or share the gold nugget?



--

Craig Thompson, President

Caldwell Global Communications, Inc.





Scot P. Floess RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
   http://flossware.sourceforge.net
   https://github.com/organizations/FlossWare___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] how to enable auto-start on newer versions of Xen ?

2016-08-15 Thread Craig Thompson
Hello,


In days past, all I had to do was create /etc/xen/auto and put a symlink in 
there to the config file for each VM I wanted to have started automatically.



Since updating to 4.6, this doesn't work.  Period.



I'm having a hard time finding what needs to change in order to get VMs to auto 
start on reboot of a server.  Can someone please point me to documentation that 
I have missed or share the gold nugget?





--

Craig Thompson, President

Caldwell Global Communications, Inc.


___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt