Cloudstack 4.3 Debian 6 (64bit) Boot Order Related Login Problem
Cloudstack 4.3 Debian 6 (64bit) Boot Order Related Login Problem
I have a rather bizarre problem, I created a template from an ISO (MailCleaner ISO, mailcleaner.org) and when I create a VM with this template, I can boot but after starting services I can not get a login prompt it simply blinks and waits after services started (no login prompt),
If, I go into my Xenserver and issue this command then everything works just fine:
Cloudstack 4.3 Debian 6 (64bit) Boot Order Related Login Problem
I solved this puzzle First off all, if you are using Xenserver with Cloudstack 4.3, everytime you stop and start your VM, you get a different UUID for your VM in Xencenter, which makes it impossible to fix VM related problems inside of your Xenserver, instead you have to work inside of your VM or Cloudstack GUI,API etc.
This particular problem turns out to be a console problem, when using PV instead of HVM you have to add hvc0 and xvc0 lines to your /etc/inittab and also /etc/securetty files (I am using debian 6 [64-bit] here so for example, if you are using Centos files are in a different location and also names are different) in order to get a console prompt.
/etc/inittab
add 2 lines: ( after 6:23:respawn:/sbin/getty 38400 tty6 this line)
hvc0:2345:respawn:/sbin/getty 38400 hvc0
xvc0:2345:respawn:/sbin/getty 38400 xvc0
/etc/securetty
add 2 lines : (after #virtual consoles section, after tty63)
# Virtual consoles
tty1
..
..
tty63
hvc0
xvc0
If you are using PV then make sure in xencenter "Boot Options" have only this line "-- quiet console=hvc0"