27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Log file is /root/.vnc/gpok223.endicott.ibm.com:1.log<br />

[ OK ]<br />

► <strong>The</strong>re is one more configuration to be done. Change from the Tiny window manger, twm, to<br />

the Motif window manager, mwm:<br />

# cd /root/.vnc<br />

# vi xstartup // change last line<br />

...<br />

xsetroot -solid grey<br />

vncconfig -iconic &<br />

xterm -geometry 80x24+<strong>10</strong>+<strong>10</strong> -ls -title "$VNCDESKTOP Desktop" &<br />

mwm &<br />

► Restart the VNC server with the service command:<br />

# service vncserver restart<br />

Shutting down VNC server: 1:root [ OK ]<br />

Starting VNC server: 1:root<br />

New 'gpok223.endicott.ibm.com:1 (root)' desktop is gpok223.endicott.ibm.com:1<br />

Starting applications specified in /root/.vnc/xstartup<br />

Log file is /root/.vnc/gpok223.endicott.ibm.com:1.log<br />

[ OK ]<br />

► You should now be able to use the VNC client to connect to the IP address of the cloner<br />

with a :1 appended. A sample session is shown in Figure 7-14.<br />

Figure 7-14 VNC client session to the VNC server<br />

Note that the VNC server will not be started automatically across reboots. When you need a<br />

graphical environment, you can either to start the vncserver process manually<br />

(recommended), or you can use chkconfig to enable automatic startup.<br />

7.2.6 Setting system to halt on SIGNAL SHUTDOWN<br />

By default, RHEL 6 reboots when a Ctrl-Alt-Del key sequence is trapped. This key sequence<br />

is simulated by z/<strong>VM</strong> when it issues a SIGNAL SHUTDOWN command. Rather than rebooting, you<br />

want your system to halt. To set the system to halt, per<strong>for</strong>m the following steps:<br />

Chapter 7. Installing RHEL 6 on the cloner 123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!