Information Technology Reference
In-Depth Information
% rdesktop 192.168.1.41
WARNING: Remote desktop changed from 800x600 to 640x480.
Complete the installation of the Windows XP operating system, including reg-
istration and activation as required by your particular licensing arrangements.
Once this step is finished, perform the initial customization, such as installing
virus protection and firewall software as well as any other applications that will be
required for the operation of this desktop.
Yo u s h o u l d a l s o i n s t a l l t h e Vi r t u a l B o x G u e s t A d d i t i o n s . O n t h e h o s t , t h e s e
features are found at /opt/VirtualBox/additions/VBoxGuestAdditions.
iso . Working as vboxuser in the Container, run the following command to attach
them to the guest's DVD device:
% VBoxManage storageattach "Windows XP" --storagectl \
"IDE Controller" --port 0 --device 0 --type hdd -medium \
/opt/VirtualBox/additions/VBoxGuestAdditions.iso
The Windows XP guest will detect that media has been inserted into the DVD
drive and start the guest installation automatically. Once the drivers have been
installed, shut down the desktop so that we can complete the last task: making the
guest start automatically when the Container is booted.
8.5.6 Creating an Autostart Service for the Guest
The last remaining task is to create a service script that will automatically start
the VirtualBox guest when the Container is booted. The script shown here, which
is named /etc/init.d/vbox , is a simple method to accomplish this task. To that
file, create a hard link named /etc/rc3.d/s99vbox . That will boot the Windows
guest at the proper time in the boot sequence of the Container.
# cat /etc/init.d/vbox
#!/bin/sh -x
case "$1" in
'restart')
$0 stop
$0 start
;;
'start')
su vboxuser -c 'nohup VBoxHeadless --startvm "Windows XP"
>>/var/tmp/vboxguest.log 2>&1 & '
 
 
Search WWH ::




Custom Search