HP BL680c XenServer Virtual Machine Installation 4.1.0 - Page 32

Setting up Debian-based VMs for VNC, 4.8.4. Checking runlevels, 4.9. Release Notes

Page 32 highlights

Installing Linux VMs 4.8.3. Setting up Debian-based VMs for VNC The built-in Debian Sarge and Etch templates come pre-configured with VNC setup and ready use. However, the default VNC configuration in Debian does not permit the root administration user to log in by default. To log in by VNC, you can either: • Log in to the text console and create a new, unprivileged user via the adduser command. This is the recommended course of action. • At the graphical console login prompt, select Actions, Configure the Login Manager, type in your root password, then select Security, Allow local system administrator login, and finally select Close. If you need to reset the VNC password, use the command vnc4passwd /etc/vncpass 4.8.4. Checking runlevels Red Hat and SUSE Linux VMs use runlevel 5 for graphical startup. This section describes how to verify that your VM is configured to start up in runlevel 5 and how to change it if it is not. 1. Check /etc/inittab to see what the default runlevel is set to. Look for the line that reads: id:n:initdefault: If n is not 5, edit the file to make it so. 2. You can run the command telinit q ; telinit 5 after this change to avoid having to actually reboot to switch runlevels. 4.9. Release Notes Most modern Linux distributions support Xen paravirtualization directly, but have different installation mechanisms and some kernel limitations. 4.9.1. Debian Sarge 3.1 and Etch 4.0 XenServer includes a custom Xen kernel for Debian guests installed via the built-in template. This kernel is a cut-down version of the dom0 kernel used in XenServer, and as such is the most heavily tested and reliable guest kernel available. When a Debian VM is first booted, it will have a custom script which will prompt for details such as hostname and root passwords. Since these are executed at a low run-level, it will prevent a freshly installed Debian guest from rebooting until the requested information is entered. In order to bypass the first-boot scripts and boot non-interactively, you must pass the noninteractive flag to the kernel arguments. After installation, the time-zone in a Debian VM defaults to UTC (see Section 4.7, "Time handling in Linux VMs"). It can be changed to your local value by using the tzconfig command. 27

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44

Installing Linux VMs
27
4.8.3. Setting up Debian-based VMs for VNC
The built-in Debian Sarge and Etch templates come pre-configured with VNC setup and ready use. However,
the default VNC configuration in Debian does not permit the root administration user to log in by default.
To log in by VNC, you can either:
Log in to the text console and create a new, unprivileged user via the
adduser
command. This is the
recommended course of action.
At the graphical console login prompt, select Actions, Configure the Login Manager, type in your root
password, then select Security, Allow local system administrator login, and finally select Close.
If you need to reset the VNC password, use the command
vnc4passwd /etc/vncpass
4.8.4. Checking runlevels
Red Hat and SUSE Linux VMs use runlevel 5 for graphical startup. This section describes how to verify that
your VM is configured to start up in runlevel 5 and how to change it if it is not.
1.
Check
/etc/inittab
to see what the default runlevel is set to. Look for the line that reads:
id:
n
:initdefault:
If
n
is not 5, edit the file to make it so.
2.
You can run the command
telinit q ; telinit 5
after this change to avoid having to actually reboot to
switch runlevels.
4.9. Release Notes
Most modern Linux distributions support Xen paravirtualization directly, but have different installation mech-
anisms and some kernel limitations.
4.9.1. Debian Sarge 3.1 and Etch 4.0
XenServer includes a custom Xen kernel for Debian guests installed via the built-in template. This kernel
is a cut-down version of the dom0 kernel used in XenServer, and as such is the most heavily tested and
reliable guest kernel available.
When a Debian VM is first booted, it will have a custom script which will prompt for details such as hostname
and root passwords. Since these are executed at a low run-level, it will prevent a freshly installed Debian
guest from rebooting until the requested information is entered. In order to bypass the first-boot scripts and
boot non-interactively, you must pass the
noninteractive
flag to the kernel arguments.
After installation, the time-zone in a Debian VM defaults to UTC (see Section 4.7, “Time handling in Linux
VMs”). It can be changed to your local value by using the
tzconfig
command.