En un Virtuozzo falla el arranque del VPS,
]# vzctl start 1
Starting Container …
Wrong HW address don’t start SVE
Error executing mount script /var/opt/pva/pp/sve//scripts/mount
Container start failed
Probamos para ver un poco mas de detalle
[root@hn31 ~]# vzctl –verbose start 1
Starting Container …
Running command: /usr/sbin/vzquota show 1 -p /var/opt/pva/pp/sve//fs
Running command: /usr/sbin/vzquota on 1 -s 0 -R -p /var/opt/pva/pp/sve//fs -b 1048676 -B 1153124 -i 200000 -I 220000 -e 0 -n 0
Mounting root: /vz/template:/var/opt/pva/pp/sve//fs /vz/root/1
Running command: /var/opt/pva/pp/sve//scripts/mount
Wrong HW address don’t start SVE
Error executing mount script /var/opt/pva/pp/sve//scripts/mount
Running command: /usr/sbin/vzquota stat 1 -f -p /var/opt/pva/pp/sve//fs
Running command: /usr/sbin/vzquota off 1 -p /var/opt/pva/pp/sve//fs
Running command: /usr/sbin/vzquota setlimit 1 -p /var/opt/pva/pp/sve//fs -b 1048676 -B 1153124 -i 200000 -I 220000 -e 0 -n 0
Container start failed
El problema es que el script de arranque chequea los interfaces, para ello procedemos a editar el archivo que falla para ponerlo en modo debug el .sh File /var/opt/pva/pp/sve//scripts/mount
poniendo en la primera linea: “#!/bin/bash -x” y de aqui ya empiezo a ver la movida por donde viene
[root@hn31 ~]# vzctl –verbose start 1
Starting Container …
Running command: /usr/sbin/vzquota show 1 -p /var/opt/pva/pp/sve//fs
Running command: /usr/sbin/vzquota on 1 -s 0 -R -p /var/opt/pva/pp/sve//fs -b 1048676 -B 1153124 -i 200000 -I 220000 -e 0 -n 0
Mounting root: /vz/template:/var/opt/pva/pp/sve//fs /vz/root/1
Running command: /var/opt/pva/pp/sve//scripts/mount
+ . /etc/sysconfig/vz-scripts/1.conf
++ VERSION=2
++ ONBOOT=yes
++ KMEMSIZE=11055923:11377049
++ LOCKEDPAGES=256:256
++ PRIVVMPAGES=65536:69632
++ SHMPAGES=21504:21504
++ NUMPROC=240:240
++ PHYSPAGES=0:2147483647
++ VMGUARPAGES=33792:2147483647
++ OOMGUARPAGES=26112:2147483647
++ NUMTCPSOCK=360:360
++ NUMFLOCK=188:206
++ NUMPTY=16:16
++ NUMSIGINFO=256:256
++ TCPSNDBUF=1720320:2703360
++ TCPRCVBUF=1720320:2703360
++ OTHERSOCKBUF=1126080:2097152
++ DGRAMRCVBUF=262144:262144
++ NUMOTHERSOCK=360:360
++ DCACHESIZE=3409920:3624960
++ NUMFILE=9312:9312
++ AVNUMPROC=180:180
++ NUMIPTENT=128:128
++ MEMINFO=privvmpages:1
++ CPUUNITS=1000
++ DISKSPACE=1048576:1153024
++ DISKINODES=200000:220000
++ QUOTATIME=0
++ OFFLINE_MANAGEMENT=yes
++ ARCH=x86
++ PLATFORM=linux
++ SLMMEMORYLIMIT=268435456:268435456
++ VE_ROOT=/vz/root/1
++ VE_PRIVATE=/var/opt/pva/pp/sve/
++ DISTRIBUTION=sve
++ TECHNOLOGIES=’nptl x86′
++ ORIGIN_SAMPLE=basic
++ VEFORMAT=vz3
++ VEID=1
++ IP_ADDRESS=192.168.75.143
+ mkdir -p /vz/root/1/var/opt/pavm/proxy/
+ mkdir -p /vz/root/1/var/log/pavm/
+ mkdir -p /vz/root/1/opt/pavm/
++ cat /etc/vz/redirect.d/vzpp-plesk.conf /etc/vz/redirect.d/vzpp.conf
++ grep PORT
++ sed ‘s/^PORT=”\?\([[:digit:]]*\)”\?/\1/’
+ PORTS_LIST=’8443
4643′
+ ‘[‘ -z ” ‘]’
+ PATH=/bin:/sbin/:/usr/sbin/:/usr/bin/
++ ip route list
++ awk ‘/^default / && $(NF – 1) == “dev” { print $(NF) }’
+ HN_IFACE=
+ HN_ADDRESS=
+ ‘[‘ -z ” ‘]’
+ echo ‘Wrong HW address don’\”t start SVE’
Wrong HW address don’t start SVE
+ exit 1
Error executing mount script /var/opt/pva/pp/sve//scripts/mount
Running command: /usr/sbin/vzquota stat 1 -f -p /var/opt/pva/pp/sve//fs
Running command: /usr/sbin/vzquota off 1 -p /var/opt/pva/pp/sve//fs
Running command: /usr/sbin/vzquota setlimit 1 -p /var/opt/pva/pp/sve//fs -b 1048676 -B 1153124 -i 200000 -I 220000 -e 0 -n 0
Container start failed
[root@hn31 ~]#
[root@hn31 ~]#
desde linea de comandos puedes probar como una linea del script se comporta mal y debes como sigue:
Donde dice:
ip route list | awk ‘/^default / && $(NF – 1) == “dev” { print $(NF) }’
no muestra nada, por lo que hago:
# ip route list | awk ‘/^default / && $(NF – 4) == “dev” { print $(NF -3) }’
Sin embargo opto por poner el interface a pelo en el script, comento la linea de asignación y pongo una asignación eth0, en el script: /var/opt/pva/pp/sve//scripts/mount
# HN_IFACE=`ip route list | awk ‘/^default / && $(NF – 1) == “dev” { print $(NF) }’`
HN_IFACE=’eth0’
y le quitamos el debug de la primera linea.