VDI 3.0 Demo Installation

Recently I bought a mini pc, an Acer Aspire X1700 and I set up a VDI 3.0 showcase.The Acer Aspire X1700 is so small and light weight, you can put it in a small business suitcase or a larger bag and take it to customer visits.

In this first part I share my experiences with the installation and configuration of VDI 3.0.
In a second part I will explain how I setup desktop pools, provide storage for the VMs and so on.

The VDI 3.0 Installation instructions by Stephanie Lewellen were very helpful.

Systems Configuration
check system requirements

My Equipment:
Acer Aspire X1700, Mini PC
CPU: Intel Core 2 Quad 8200
RAM: 4 GB
Disk space: 1 TB
onboard LAN: RTL8211b
LAN: e1000g0 ( I ordered an Intel Pro NIC, because the onboard chip RTL8211b was not recognized by Solaris Express ).
View the prtconf file.

I used Solaris Express Build112.
For the Sun Ray Service it is important to use a static IP Address.


bash-3.2# uname -a
SunOS gandalf 5.11 snv_112 i86pc i386 i86pc
bash-3.2#

I set up following disk partitions:


bash-3.2# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@0,0/pci1025,158@e/disk@0,0

Specify disk (enter its number): 0
partition> p
Current partition table (original):
Total disk cylinders available: 60797 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 1913 29.31GB (1913/0/0) 61464690
1 unassigned wm 1914 - 3826 29.31GB (1913/0/0) 61464690
2 backup wm 0 - 60796 931.46GB (60797/0/0) 1953407610
3 unassigned wm 3827 - 4336 7.81GB (510/0/0) 16386300
4 home wm 4337 - 16813 191.16GB (12477/0/0) 400886010
5 unassigned wm 16814 - 31474 224.62GB (14661/0/0) 471057930
6 unassigned wm 31475 - 46135 224.62GB (14661/0/0) 471057930
7 unassigned wm 46136 - 60796 224.62GB (14661/0/0) 471057930
8 boot wu 0 - 0 15.69MB (1/0/0) 32130
9 unassigned wm 0 0 (0/0/0) 0

Slice 0 is the root partion, of course.
Slice 1 is for future purpose to upgrade the BE with Live upgrade and this partition will be used as ABE.
Slice 3 is the /swap partition. This partition should be twice the size of the amount of physical memory. So in my case it is 8GB.
Slice 4 is used for /export/home.
Slice 5, 6 and 7 is used for ZFS. Later you'll see that I use these slices as zpools and to provide one of the zpools as storage for the VMs via iSCSI.

Download Software

For the VDI 3.0 installation you need:
1. SUN VDI Software 3.0 for Solaris ( 90 days trial )

2. additionally get VirtualBox to create VMs
The latest release to use with Sun VDI 3.0 is VirtualBox version 2.0.8

3. OpenSolaris 2008.11 to provide ISCSI storage as VM via Sun xVM VirtualBox.

4.and finally, but not necessarily
Sun Secure Global Desktop Software
to provide access to centralized Windows, Linux, Unix applications ( 30 days trial ), if you so wish.

Installation and Configuration
Links:
http://wikis.sun.com/display/VDI3/Home
http://wikis.sun.com/display/VDI3/Installing Setup VDI 3.0 with Sun xVM VirtualBox
http://wikis.sun.com/display/VDI3/How+to+Set+Up+an+OpenSolaris+Storage+Server How to Set Up an OpenSolaris Storage Server

1. Set Up and prepare an OpenSolaris Storage Server

create zpools
I used slices c1t0d0s5, c1t0d0s6 and c1t0d0s7 as explained above.
Run the following comamnds as root:

# zpool create pool1 c1t0d0s5
# zpool create pool2 c1t0d0s6
# zpool create pool3 c1t0d0s7

Check the zpool status:

bash-3.2# zpool status
pool: pool1
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
c1t0d0s5 ONLINE 0 0 0

errors: No known data errors

pool: pool2
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
pool2 ONLINE 0 0 0
c1t0d0s6 ONLINE 0 0 0

errors: No known data errors

pool: pool3
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
pool3 ONLINE 0 0 0
c1t0d0s7 ONLINE 0 0 0

errors: No known data errors
bash-3.2#

use pool1 for VDI
create a ZFS filesystem for the Virtual machines/operatingsystems.

bash-3.2# zfs create pool1/VDI

create ZFS Volumes as VM storage. Later, I will sahre them via iSCSI.

bash-3.2# zfs create -V 1g pool1/vmhome1
bash-3.2# zfs create -V 1g pool1/vmhome2
bash-3.2# zfs create -V 1g pool1/vmhome3
bash-3.2# zfs create -V 1g pool1/vmhome4

setup a /swap ZFS Volume used by VirtualBox ( twice the size of phys. RAM ).

bash-3.2# zfs create -v 8g pool1/swap

list the zfs filesystems.

bash-3.2# zfs list
NAME USED AVAIL REFER MOUNTPOINT
pool1 30.0G 190G 21K /pool1
pool1/VDI 18.0G 190G 18.0G /pool1/VDI
pool1/swap 8G 198G 16K -
pool1/vmhome1 1G 191G 16K -
pool1/vmhome2 1G 191G 16K -
pool1/vmhome3 1G 191G 16K -
pool1/vmhome4 1G 191G 16K -
pool2 70K 220G 19K /pool2
pool3 70K 220G 19K /pool3
bash-3.2#

list the zfs volumes, only.

bash-3.2# zfs list -t volume
NAME USED AVAIL REFER MOUNTPOINT
pool1/swap 8G 198G 16K -
pool1/vmhome1 1G 191G 16K -
pool1/vmhome2 1G 191G 16K -
pool1/vmhome3 1G 191G 16K -
pool1/vmhome4 1G 191G 16K -

and list zfs filesystems, only.

bash-3.2# zfs list -t filesystem
NAME USED AVAIL REFER MOUNTPOINT
pool1 30.0G 190G 21K /pool1
pool1/VDI 18.0G 190G 18.0G /pool1/VDI
pool2 70K 220G 19K /pool2
pool3 70K 220G 19K /pool3
bash-3.2#

check the content of the zpools simply by changing the directory and list the contents.

bash-3.2# cd /
bash-3.2# ls
bin export media pool1 root usr
boot home mnt pool2 sbin var
dev kernel net pool3 swap
devices lib opt proc system
etc lost+found platform rmdisk tmp
bash-3.2#
bash-3.2# cd pool1
bash-3.2# ls
VDI
bash-3.2# cd VDI
bash-3.2# ls
Opensolaris200811.vdi Windows2003.vdi

Well, this is done. Next step is to install VirtualBox to create and maintain VMs.

2. Install VirtualBox
Change to the directory were you stored the VirtualBox download files. I stored it the directory "Downloads" in roots homedirectory. First, the .gz file must be unpacked, then the .tar file must be unpacked and finally the package is installed.

bash-3.2# cd /root
bash-3.2# ls
Desktop Documents Downloads Public core
bash-3.2# cd Downloads
bash-3.2# ls
VirtualBox-2.0.8-44071-SunOS_amd64.tar.gz
vbox_2.0.zip
vda_3.0_amd64.zip
bash-3.2#
bash-3.2# gunzip VirtualBox-2.0.8-44071-SunOS_amd64.tar.gz
bash-3.2# tar xf VirtualBox-2.0.8-44071-SunOS_amd64.tar
bash-3.2#
bash-3.2# pkgadd -d VirtualBoxKern-2.0.8-SunOS-r44071.pkg

The following packages are available:
1 SUNWvboxkern Sun xVM VirtualBox Kernel Interface Module
(i386) 2.0.8,REV=2009.03.09.22.19

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

## Installing part 1 of 1.
/platform/i86pc/kernel/misc/amd64/vbi
/platform/i86pc/kernel/misc/vbi
[ verifying class ]

Installation of was successful.
bash-3.2#
bash-3.2# pkgadd -d VirtualBox-2.0.8-SunOS-amd64-r44071.pkg

The following packages are available:
1 SUNWvbox Sun xVM VirtualBox
(i386) 2.0.8,REV=r44071.2009.03.09.22.19

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

Sun xVM VirtualBox(i386) 2.0.8,REV=r44071.2009.03.09.22.19
VirtualBox Personal Use and Evaluation License (PUEL)

License version 7, September 10, 2008

The following files are being installed with setuid and/or setgid
permissions:
/opt/VirtualBox/VBoxBFE
/opt/VirtualBox/VBoxHeadless
/opt/VirtualBox/VBoxSDL
/opt/VirtualBox/VirtualBox

Do you want to install these as setuid/setgid files [y,n,?,q] y

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of [y,n,?] y

Installing Sun xVM VirtualBox as

## Executing postinstall script.
Configuring VirtualBox kernel modules...
VirtualBox Host kernel module loaded.
VirtualBox NetFilter kernel module loaded.
Creating links...
Done.

Installation of was successful.
bash-3.2#

3. Start VirtualBox and lauch the GUI

Now that the package was installed successfully, we go further to create VMs, which we later can use as templates for additional VMs.
Open a terminal and start VirtualBox

bash-3.2# /opt/VirtualBox/VirtualBox &


Note: Please ignore the message that there is a new version of VirtualBox, the installed Version 2.0.8 is a special version for VDI 3.0.

In the GUI
a. click New
b. give it a name, e.g "Opensolaris2008.11"
c. choose OS Type OpenSolaris and click Next
d. Base Memory Size should be 1G and click Next
e. for the Boot Hard Disk click New then Next chosse Fixed-size image and follow the instructions ( Image File Name = OpenSolaris2008.11, Image Size = 16.00GB ), click Next and then Finish
alternately you can use an existing vdi image, then click on Existing, click Add and Browse to the Image File e.g. /pool1/VDI/Opensolaris200811.vdi, click Select, click Next and Finish
f. go to Settings in the GUI and choose CD/DVD-ROM, activate the check box Mount CD/DVD Drive, automatically the check box Host CD/DVD Drive and the appropriate drive will be enabled. Note: if you choose an already existing File image deactivate the Mount CD/DVD Drive check box. You can later mount the CD/DVD Drive in the VM Menu Devices.
g. Go to Network and Enable Network Adapter, if not already done. Click OK.
h. Start the VM by clicking Start in the GUI and the installation starts from CD or altenately the VM starts from the existing Hard Disk Image
i. Install the Guest Additions via VM Menu Devices Install Guest Additions

Install additional VMs

repeat the steps from 3. for all other VMs you wish to install.
If you install Windows XP you finally install the System Preparation file ( sysprep file ) to be able to create clones of your Windows XP VM template and to automatically customize neccessary identy and domain settings.
In the GUI
a. click New
b. give it a name, e.g WindowsXP
c. choose OS Type Windows XP and click Next
d. Base Memory Size should be 1G and click Next
e. for the Boot Hard Disk click New then Next chosse Fixed-size image and follow the instructions ( Image File Name = WindowsXP, Image Size = 10.00GB ), click Next and then Finish
f. go to Settings in the GUI and choose CD/DVD-ROM, activate the check box Mount CD/DVD Drive, atumatically the check box Host CD/DVD Drive and the appropriate drive will be enabled.
g. Go to Network and Enable Network Adapter, if not already done. Click OK.
h. Start the VM by clicking Start in the GUI and the Installation starts
i. Install the Guest Additions via VM Menu Devices Install Guest Additions
j. After successfully installed Windows XP start the internet Explorer and get the cab files
k. Install the System Preparaton file by unpacking it in C:/Sysprep. You can download the files here:
Windows XP Service Pack 2 Deployment Tools
http://www.microsoft.com/downloads/details.aspx?FamilyId=3E90DC91-AC56-4665-949B-BEDA3080E0F6&displaylang=en
Windows XP Service Pack 3 Deployment Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=673a1019-8e3e-4be0-ac31-70dd21b5afa7&displaylang=en
Copy the deploy.cab in C:/, create a new directory called Sysprep, then double-click on the deploy.cab icon, and copy all files to C:/Sysprep.
l. Activate the sysprep file
change directory to Sysprep and run sysprep by double-clicking
activate reseal button to generate SIDs ( security identifiers on next reboot; and activate the mini-prep.
or run
# C:\\Sysprep\\sysprep.exe \\-mini \\-reseal \\-quiet \\-activated
After this the Windows XP VM will be shut off. Restart it in VirtualBox GUI with Start.
m. Windows XP restarts

Repeat the steps for any other OS and enter an appropriate name in step b. and in step c. choose the according OS type.

4. Installation of VDI 3.0

Now it is time to install the VDI 3.0 package.
Go to the directory where you stored the downloaded files, unpack it and folow the installation steps followed:

bash-3.2# unzip vda_3.0_amd64.zip
bash-3.2# cd image
bash-3.2# ls
Copyright
FR_Copyright
Legal
README.html
README.txt
Supplemental
mysql-cluster-com-6.3.20-solaris10-x86_64.tar.gz
srss_4.1
srwc_2.1
vda-install
vda_3.0
bash-3.2#

Start the installtion by running that script:

bash-3.2# ./vda-install
Please contact Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, Califor
nia 95054 if you have questions.
Do you accept the license agreement? (y/n) y
Sun VDI 3.0 Installation
+ Installing Sun Ray Server Software...
VDI 3.0 installs
- Sun Ray Server Software...
- Sun Ray Connector for Windows Operating Systems...
- Sun VDI Core...
- MySQL Database...
- Installing Web Administration...
- Installing Apache Tomcat...
- Installing RDP Broker...
- Installing Sun Ray Client...

Sun VDI 3.0 was succesfully installed!
A log file is available at '/var/sadm/install/logs/vda-install.2009_04_17_20:19:14.log'.

It is necessary to reboot the server now. Please do not use 'reboot', but 'init 6'. 'init 6' forces the system to shutdown properly and to run necessary scripts to make changes to the system, which reboot doesn't.

5. Configuration of SUN VDI 3.0

After that you can continue to configure Sun VDI 3.0 with '/opt/SUNWvda/sbin/vda-config'.
Run

bash-3.2#/opt/SUNWvda/sbin/vda-config

to configure the VDI including the Sunray Services,Kiosk Session configurations, and Windows Connector.

bash-3.2# cd /opt/SUNWvda/sbin
bash-3.2# ./vda-config

Sun Virtual Desktop Infrastructure 3.0 Configuration

A high available VDI environment requires at least 3 servers or access to a remote database.

If you want to create a Sun VDI database cluster configure the Primary Sun VDI Host first. During the configuration you will be asked to enter the DNS names of two unconfigured Secondary Sun VDI Hosts.
If this is the configuration of a Secondary Sun VDI Host then you will be asked to enter the DNS name of the configured Primary Sun VDI Host.

If you decide to use a remote database, then configure the Primary Sun VDI Host first. A Secondary Sun VDI Host is recommended to host the Sun Ray sessions.

An Evaluation Sun VDI Host configures all necessary components on one server.

1 Primary Sun VDI Host
2 Secondary Sun VDI Host
0 Evaluation Sun VDI Host

Select (1/2/0): 0

for an evaluation installation

Sun Ray Server Software Configuration
+ Providing configuration data...
+ Loading Sun Ray data store...
+ Populating Sun Ray data store...
+ Creating Sun Ray core services configuration...
+ Restarting Sun Ray data store daemon...
+ Configuring Sun Ray Server Software Web Administration...
+ Adding 10 user accounts for Sun Ray sessions...

Sun Ray Client Configuration
+ Setting Kiosk Mode Session Type to 'vda'...
+ Enabling Kiosk Mode Policy for All Card and Non-Card Users...
+ Enabling LAN Connections...
+ Configuring Sun Ray Connector for Windows Operating Systems...

and then the process stuck and I stopped the the install script.
Looking into the log file /var/adm/log vda-config.date_time.log, I could see, the script wanted me to confirm the location of libcrypto.so.0.9.8.

Adding user root ...
User(s) added successfully!
Deleting user admin ...
User(s) deleted successfully!
+ Configuring Sun Ray Connector for Windows Operating Systems...
Enter complete location for libcrypto.so.0.9.7 [/usr/sfw/lib/libcrypto.so.0.9.8]
:
Invalid filename /usr/sfw/lib/libcrypto.so.0.9.8
Enter complete location for libcrypto.so.0.9.7 [/usr/sfw/lib/libcrypto.so.0.9.8]
:
Invalid filename /usr/sfw/lib/libcrypto.so.0.9.8
Enter complete location for libcrypto.so.0.9.7 [/usr/sfw/lib/libcrypto.so.0.9.8]
:
bash-3.2#

The workaround is to create a softlink in /usr/sfw/lib to the existing libcrypto.so.0.9.8 in /lib:

bash-3.2# cd /usr/sfw/lib
bash-3.2# ln -s /lib/libcrypto.so.0.9.8
bash-3.2# ls libcr\*
libcrypto.so.0.9.8

If you stopped the script, like I did, you have to unconfigure VDI 3.0, before you can restart the configuration. For this run:

bash-3.2# cd /opt/SUNWvda/sbin
bash-3.2# ls
vda vda-db-status vda-migrate vda-webadmin
vda-config vda-install vda-service
bash-3.2# ./vda-config -u

Sun Virtual Desktop Infrastructure 3.0 Configuration

Do you want to unconfigure? (y/[n]) y
The unconfiguration of Sun VDI 3.0 has completed.
A log file is available at '/var/adm/log/vda-config.2009_04_17_20:56:43.log'.
bash-3.2#

and then start the configuration, again.

bash-3.2# pwd
/opt/SUNWvda/sbin
bash-3.2# ./vda-config

Sun Virtual Desktop Infrastructure 3.0 Configuration

A high available VDI environment requires at least 3 servers or access to a remote database.

An Evaluation Sun VDI Host configures all necessary components on one server.

1 Primary Sun VDI Host
2 Secondary Sun VDI Host
0 Evaluation Sun VDI Host

Select (1/2/0): 0

Sun Ray Server Software Configuration
+ Providing configuration data...
+ Loading Sun Ray data store...
+ Populating Sun Ray data store...
+ Creating Sun Ray core services configuration...
+ Restarting Sun Ray data store daemon...
+ Configuring Sun Ray Server Software Web Administration...
+ Adding 10 user accounts for Sun Ray sessions...

Sun Ray Client Configuration
+ Setting Kiosk Mode Session Type to 'vda'...
+ Enabling Kiosk Mode Policy for All Card and Non-Card Users...
+ Enabling LAN Connections...
+ Configuring Sun Ray Connector for Windows Operating Systems...

This is the point where I stuck before.
Press to confirm the path you can not see on the screen yet.
And the install script proceeds:

+ Restarting Sun Ray Server Software...

MySQL Database Configuration
+ Creating MySQL group (vdadb)...
+ Creating MySQL user (vdadb)...
+ Setting up MySQL directory...
+ Setting up MySQL cluster directory...
+ Initializing database...
+ Starting Sun VDI database (MySQL)...

Be patient, this takes some time.....

+ Setting user rights...
+ Creating database tables...

this takes some time too .....

+ Configuring database connection...

Sun VDI Web Administration Configuration
+ Enabling Sun VDI web administration...
+ Restarting Sun VDI web administration...

RDP Broker Configuration
+ Starting RDP broker...

Common Agent Container Configuration
+ Restarting Common Agent Container service...
+ Enabling Common Agent Container Service default instance at system boot...

The configuration of Sun VDI 3.0 has completed.
A log file is available at '/var/adm/log/vda-config.2009_04_17_20:58:31.log'.

The command line tools are located at '/opt/SUNWvda/sbin'.
You can access the Sun VDI web administration at http://gandalf:1800
bash-3.2#

finally we made it.

check the log file to view the configuration logs:

bash-3.2# less vda-config.date_new_time.log
bash-3.2#

Note: For the evaluation setup no password will be set for the MySQL database.
To set a password use the following script: /opt/SUNWvda/mysql/bin/mysqladmin --defaults-file=/etc/opt/SUNWvda/my.cnf password .

The installation is finished.
The next steps are to create and administrate desktop pools and VMs.
These steps and my expereinces I am going to decribe in part two,soon.

You can access the Sun VDI web administration UI at http://servername:1800
A helpful instuction how to go further is here http://wikis.sun.com/display/VDI3/Administering .

claudia

Comments:

Just wondering when you will post part 2 of the demo setup.

Posted by Ming Wong on May 24, 2009 at 10:15 PM CEST #

I am really sorry, but I have not the time yet to follow up with the second part. I will do as soon as I can.

cheers,
claudia

Posted by Claudia on May 25, 2009 at 04:22 AM CEST #

Please do!! Thanks so far, this was a big help.....

Posted by guest on May 25, 2009 at 12:40 PM CEST #

Post a Comment:
Comments are closed for this entry.
About

Claudia Hildebrandt \* Sytems Engineer \* Sun Microsystems GmbH \* Berlin \*

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
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
   
       
Today
Bookmarks
VMware
Misc
VirtualBox
xVM Products
Storage
Solaris
Sun Ray
claudia@Web 2.0
Visualization
Server