solusvm的xen服务器上,xen vps无法启动,出现 Unable to load SELinux Policy 错误的解决办法:
If you are getting the following error on a XEN domU :
1
2
|
Unable to load SELinux Policy. Machine is in enforcing mode. Halting now. Kernel panic - not syncing: Attempted to kill init! |
add the following line to domU config file :
1
|
extra = "selinux=0 ro" |
解决办法:
直接在solusvm面板山,修改xen vps的custom config,勾选 Enable Custom Config, 加上extra = "selinux=0 ro",save & reboot
配置文件参考:
more /home/xen/vm1519/vm1519.cfg
## This configuration file was automatically generated
## by SolusVM on Sun Apr 21 21:58:54 2013
## Cfg type: XEN-PV-LOCAL-STORAGE
#kernel = '/boot/solus-vmlinuz'
#ramdisk = '/boot/solus-initrd.img'
bootloader = '/usr/bin/pygrub'
extra = ''
memory = 1024
hostname = 'www.ctohome.com'
cpu_weight = 256
name = 'vm1519'
vif = ['ip=63.23.2.3, vifname=vifvm519.0, mac=00:1a:3e:64:d7:6e, rate=8320KB/s']
vnc = 0
vcpus = 4
vncviewer = 0
serial = 'pty'
disk = ['phy:/dev/ctovps/vm1519_img,sda1,w', 'phy:/dev/ctovps/vm1519_swap,sda2,w']
#root = '/dev/sda1 ro'
extra = "selinux=0 ro"