| Xen template console hvc0 [message #91396] |
Tue, 22 November 2011 08:44  |
|
When a Xen virtual machine is rebuilt, HyperVM slips its own inittab into the machine. This sets the tty to /bin/sh so that when you connect through xen console or SSH to the host with the VM name, you go right to the shell.
My problem with this is that you go right into the OS without authenticating as a user on the system and the shell behaves badly anyway. So I fixed this in a template by modifying inittab, but on rebuild HyperVM slips its own back in.
I would like to modify HyperVM to keep it from doing this. My thought is that it would give the template creator more control over how the template behaves and you could still have that "feature" by adding in that inittab yourself.
Any thoughts?
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|
| Re: Xen template console hvc0 [message #91470 is a reply to message #91396] |
Wed, 23 November 2011 08:15  |
|
This actually pulls it from a file in the HyperVM program path. This may be wrong as I am doing this from memory but it is something like:
/usr/local/lxlabs/hypervm/files/sysfile/inittab/
If you want a better console, though you will be prompted to login further, you would use hvc0 for most distros. I am still testing it out and having some issues, but you would use xvc0 for CentOS 5 because of the kernel version.
https://www.mercuryvps.com
HyperVM Xen VPS hosting
|
|
|