Cloudmin fails to start at boot

Hello Folks!

Minimal install of latest version CentOS Linux release 7.2.1511 (Core) followed by a Cloudmin KVM script installation on a HP DL380 G7 with 2 * X5650 and 36GB RAM. There were a few problems with firewall who prevented VNC from working, but where is the virtual text bases serial console, I really miss that...

After configuring Cloudmin accordingly to the book, installing a couple of guests, here 6, a few 64 bit Centos7, Debian8 and some old 32 bit Centos5.11 we restarted the whole server.

After the server was up again, neither webmin nor Cloudmin had started automatically, so I did:

[root@redstar ~]# systemctl enable webmin webmin.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig webmin on

[root@redstar ~]# systemctl enable cloudmin-kvm cloudmin-kvm.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig cloudmin-kvm on

Then I did a reboot, the server comes up again, but no webmin and no cloudmin has started....

Followed by a manual: systemctl start webmin

A check: systemctl start cloudmin-kvm # this one took very long time

[root@redstar ~]# systemctl status cloudmin-kvm.service ● cloudmin-kvm.service - LSB: Start KVM instances created by Cloudmin Loaded: loaded (/etc/rc.d/init.d/cloudmin-kvm) Active: failed (Result: exit-code) since Fri 2016-01-22 23:27:50 CET; 40min ago Docs: man:systemd-sysv-generator(8) CGroup: /system.slice/cloudmin-kvm.service ├─3754 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start ├─4852 /usr/libexec/qemu-kvm -name guest1.cloudmin.example.com -m 4096 -drive file=/kvm/guest1.cloudmin.example.com.img,media... ├─4909 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start ├─4969 /usr/libexec/qemu-kvm -name guest2.cloudmin.example.com -m 4096 -drive file=/kvm/guest2.cloudmin.example.com.img,media... ├─5358 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start ├─5361 /usr/libexec/qemu-kvm -name guest3.cloudmin.example.com -m 4096 -drive file=/kvm/guest3.cloudmin.example.com.img,media... ├─5463 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start ├─5635 /usr/libexec/qemu-kvm -name guest4.cloudmin.example.com -m 4096 -drive file=/kvm/guest4.cloudmin.example.com.img,media... ├─5690 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start └─6064 /usr/libexec/qemu-kvm -name guest5.cloudmin.example.com -m 4096 -drive file=/kvm/guest5.cloudmin.example.com.img,media...

Jan 22 23:24:23 redstar systemd[1]: Starting LSB: Start KVM instances created by Cloudmin... Jan 22 23:27:50 redstar systemd[1]: cloudmin-kvm.service: control process exited, code=exited status=111 Jan 22 23:27:50 redstar systemd[1]: Failed to start LSB: Start KVM instances created by Cloudmin. Jan 22 23:27:50 redstar systemd[1]: Unit cloudmin-kvm.service entered failed state. Jan 22 23:27:50 redstar systemd[1]: cloudmin-kvm.service failed.

What is this for a problem, anyone who have seen this before ?

Status: 
Active

Comments

If you login to Cloudmin, and then go to Webmin -> System -> Bootup and Shutdown, are the webmin and cloudmin-kvm actions enabled at boot?

Hello Jamie!

Yes they are set to start at boot.

Webmin -> System -> Bootup and Shutdown: Service name Service description Start at boot? Running now?
cloudmin-kvm Start KVM instances created by Cloudmin Yes No webmin Start or stop the Webmin server Yes Yes

I did start both manually. Yet cloudmin-kvm is not registered by system as running, so we check with ps below:

[root@redstar ~]# ps -ef | grep -i cloudmin-kvm root 2725 11212 0 10:01 pts/0 00:00:00 grep --color=auto -i cloudmin-kvm root 3754 1 0 Jan22 ? 00:00:00 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start root 4909 1 0 Jan22 ? 00:00:00 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start root 5358 1 0 Jan22 ? 00:00:00 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start root 5463 1 0 Jan22 ? 00:00:00 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start root 5690 1 0 Jan22 ? 00:00:00 /bin/sh /etc/rc.d/init.d/cloudmin-kvm start

[root@redstar ~]# ps -ef | grep -i webmin root 4393 1 0 Jan22 ? 00:00:01 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf root 6182 11212 0 10:10 pts/0 00:00:00 grep --color=auto -i webmin

Hello !

I did notice that guest was missing in systemctl status cloudmin-kvm, so I did some more checks to se status of webmin. That service is "green", but what does guest6 do here, and two times like two instances ?

[root@redstar ~]# systemctl status webmin -l ● webmin.service - LSB: Start or stop the Webmin server Loaded: loaded (/etc/rc.d/init.d/webmin) Active: active (running) since Fri 2016-01-22 23:24:25 CET; 12h ago Docs: man:systemd-sysv-generator(8) CGroup: /system.slice/webmin.service ├─4393 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf ├─9679 sh -c ((sleep 0 ; ionice -n0 /usr/libexec/qemu-kvm -name guest6.cloudmin.example.com -m 4096 -drive file=/kvm/guest6.cloudmin.example.com.img,media=disk,index=0,if=virtio -boot c -net tap,vlan=0,script=/kvm/guest6.cloudmin.example.com-eth0.sh -net nic,vlan=0,macaddr=02:54:00:A3:BA:7C -vnc :6,password -usbdevice tablet -monitor tcp:127.0.0.1:40005,server -smp 4) >/kvm/guest6.cloudmin.example.com.console 2>&1 </dev/null &) 2>&1 </dev/null └─9681 /usr/libexec/qemu-kvm -name guest6.cloudmin.example.com -m 4096 -drive file=/kvm/guest6.cloudmin.example.com.img,media=disk,index=0,if=virtio -boot c -net tap,vlan=0,script=/kvm/guest6.cloudmin.example.com-eth0.sh -net nic,vlan=0,macaddr=02:54:00:A3:BA:7C -vnc :6,password -usbdevice tablet -monitor tcp:127.0.0.1:40005,server -smp 4

Jan 22 23:24:23 redstar systemd[1]: Starting LSB: Start or stop the Webmin server... Jan 22 23:24:25 redstar systemd[1]: Started LSB: Start or stop the Webmin server.

Those subprocesses are there because the KVM instances were started from Webmin.

One thing you should check is if anything got logged to /var/webmin/miniserv.error at boot time, such as messages from Webmin indicating why it failed to start.