Although XenServer's management interface (i.e., xsconsole) is a security protection against XenServer getting tampered with by an unauthenticated user, auto-running xsconsole may be cumbersome for you in certain situations. For example, if you are configuring and testing things out inside the XenServer's local command shell, you probably are not happy with the situation where your command shell is automatically terminated and replaced by xsconsole after some period of inactivity, and you have to re-authenticate against xsconsole to open a new command shell.
If you would like to disable automatic startup of xsconsole management interface upon XenServer boot, so that you can get only interactive console login, do the following as the root.
#!/bin/bash TTY=$1 #exec /sbin/mingetty --noissue --autologin root --loginprog=/usr/bin/xsconsole $TTY exec /sbin/mingetty --noissue --noclear $TTY
In the above, I comment out the original line starting with "exec /sbin/mingetty", and add a new line. The line of command which is commented out launches console using /usr/bin/xsconsole upon boot. With the above change, you will see a simple login screen after XenServer boots up.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!