FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 10-30-2010, 12:46 PM
Jussi Hirvi
 
Default Xen guest not starting automatically

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=vi f-bridge" ]


- Jussi

--
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hirvi@greenspot.fi * http://www.greenspot.fi
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-30-2010, 01:57 PM
Ralph Angenendt
 
Default Xen guest not starting automatically

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-30-2010, 02:09 PM
Jussi Hirvi
 
Default Xen guest not starting automatically

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_ubject_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_ubject_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

--
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hirvi@greenspot.fi * http://www.greenspot.fi
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-30-2010, 04:29 PM
Veli-Pekka Kestilš
 
Default Xen guest not starting automatically

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


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-30-2010, 04:58 PM
Jussi Hirvi
 
Default Xen guest not starting automatically

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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-30-2010, 05:11 PM
Veli-Pekka Kestilš
 
Default Xen guest not starting automatically

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 10-30-2010, 07:08 PM
Jussi Hirvi
 
Default Xen guest not starting automatically

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:18 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org