I have a xen system with four guest OS's, (see list below). When I reboot the host, other guests autostart normally, but mail2 does not. I have found no explanation for this.
The host and all guests are CentOS 5.5.
[root@farm1 xen]# ls -l /etc/xen/auto total 0 lrwxrwxrwx 1 root root 8 Dec 11 2009 dawit -> ../dawit lrwxrwxrwx 1 root root 8 May 5 21:10 mail2 -> ../mail2 lrwxrwxrwx 1 root root 8 Nov 26 2009 mail3 -> ../mail3 lrwxrwxrwx 1 root root 6 Oct 29 2009 ns2 -> ../ns2
Here is my config for the problem guest:
cat /etc /xen/mail2 name = "mail2" uuid = "68e33ec6-ef36-9eac-27d7-65a709684551" maxmem = 500 memory = 500 vcpus = 1 bootloader = "/usr/bin/pygrub" # kernel = "/var/lib/xen/boot_kernel.5g5MLq" # ramdisk = "/var/lib/xen/boot_ramdisk.1pSOoP" # extra = "ro root=LABEL=/ console=xvc0" on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" disk = [ "tap:aio:/vm/mail2.img,xvda,w" ] vif = [ "mac=00:16:36:24:67:3c,bridge=xenbr0,script=vif-bridge" ]
- Jussi
Am 30.10.10 14:46, schrieb Jussi Hirvi:
The host and all guests are CentOS 5.5.
[root@farm1 xen]# ls -l /etc/xen/auto total 0 lrwxrwxrwx 1 root root 8 Dec 11 2009 dawit -> ../dawit lrwxrwxrwx 1 root root 8 May 5 21:10 mail2 -> ../mail2 lrwxrwxrwx 1 root root 8 Nov 26 2009 mail3 -> ../mail3 lrwxrwxrwx 1 root root 6 Oct 29 2009 ns2 -> ../ns2
SELinux turned on? What does ls -Z in that directory say? Do you get AVC denials in the audit log?
Ralph
On 30.10.2010 16.57, Ralph Angenendt wrote:
SELinux turned on?
Nope, SELinux is off - in /etc/selinux/config it says: SELINUX=disabled.
What does ls -Z in that directory say?
# ls -Z /etc/xen drwxr-xr-x root root system_u:object_r:etc_t:s0 auto -rw------- root root dawit -rw------- root root mail2 -rw------- root root mail3 -rw------- root root ns2 -rwxr-xr-x root root qemu-ifup drwxr-xr-x root root system_u:object_r:bin_t:s0 scripts -rw-r--r-- root root xend-config.sxp -rw-r--r-- root root xend-pci-permissive.sxp -rw-r--r-- root root xend-pci-quirks.sxp -rw-r--r-- root root xmexample1 -rw-r--r-- root root xmexample2 -rw-r--r-- root root xmexample.hvm -rw-r--r-- root root xmexample.vti
Do you get AVC denials in the audit log?
# grep -rl AVC /var/log ...gives no output.
- Jussi
On 30.10.2010 15:46, Jussi Hirvi wrote:
I have a xen system with four guest OS's, (see list below). When I reboot the host, other guests autostart normally, but mail2 does not. I have found no explanation for this.
The host and all guests are CentOS 5.5.
Have you checked relevant log files: - dmesg - /var/log/xen/*
Usually if one of the guests doesn't start without explanation it should give something out. Brute force fix would be to delete the guest and recreate it.
-vpk
On 30.10.2010 19.29, Veli-Pekka Kestilä wrote:
Have you checked relevant log files:
- dmesg
-/var/log/xen/*
I tried to check them the last time this happened - there is a lot of stuff in the logs (which makes it harder to find what's relevant), and I did not find anything unusual.
Usually if one of the guests doesn't start without explanation it should give something out. Brute force fix would be to delete the guest and recreate it.
Ok, there's an idea... I might try that some time.
- Jussi
On 30.10.2010 19:58, Jussi Hirvi wrote:
On 30.10.2010 19.29, Veli-Pekka Kestilä wrote:
Have you checked relevant log files:
- dmesg
-/var/log/xen/*
I tried to check them the last time this happened - there is a lot of stuff in the logs (which makes it harder to find what's relevant), and I did not find anything unusual.
One other thing to test is to run 'service xendomains start' when the failing domain is down. It could print out some errors and after that there should be more error messages either in those error files mentioned before or in 'xm dmesg'
-vpk
On 30.10.2010 20.11, Veli-Pekka Kestilä wrote:
One other thing to test is to run 'service xendomains start' when the failing domain is down. It could print out some errors and after that there should be more error messages either in those error files mentioned before or in 'xm dmesg'
Ok, thanks for the tip. - Jussi