Our Blog

VDI at home: building a 10-user environment for $500 (Part 2: VMware View Installation)

July 15th, 2011

Sam Lee By Sam Lee, Data Center Team Lead

Unlike the ESXi install, VMware View installation was straight forward.  I spend most of the time updating windows during the installation process.  Plan for at least 3 hours for windows update (server and Windows 7).  Rest of the VMware View component installation may take another 2 to 3 hours.

These are key pre-requisites for installing VMware View.

  • ISO for Windows 2008 R2 server and Windows 7 OS
  • Windows Volume License key for Windows 2008 R2 server and Windows 7
  • VMware Virtual Center SW
  • VMware View SW with license key

I’m going to use the internal 500G SATA drives for server VM, user data storage, and ISO files, and use the SSD storage for VMware View replica and linked clones.

  1. Configure ESXi server
    1. Change the swap file location to the 500G Sata datastore.  By placing the swapfile to the SATA drive, expensive SSD storage space consumption can be reduced.  By default, esx will place swap file with VM.
    2. Load windows ISOs to SATA datastore.
  2. Creating base Windows 2008 server image
    1. Even though VM provisioning can be simplified with templates, it requires Virtual Center.  Before VC can be installed, mechanism for VM provisioning should be setup to deploy of server VMs such as AD and the VC server itself.  Easy way to achieve the VM provisioning without VC is OVF packaging.   A Windows 2008 R2 server with the latest patches and application can be exported out to OVF package for future deployment.
    2. Create Windows 2008 R2 VM (use VM version 7) with 1G RAM (we don’t have lots of RAM here), 50G HD (thin provisioned) and VMXNET3 vNIC.  Install Windows 2008 R2 server OS, install VMware Tools, and apply all the patches including SP1.  Also install nice to have SW such as Adobe reader, Adobe Flash, putty, Chrome etc.
    3. After the server VM is ready, set the IP property to DHCP and run sysprep.  In Windows 2008 R2, the sysprep is pre-loaded with the OS.  Navigate to C:\Windows\System32\sysprep directory and run sysprep.exe
    4. Select “System Out of Box Experience (OOBE)” for System Cleanup Action and check “Generalize” box, and select “Shutdown” for Shutdown options.
    5. Disconnect CDROM drives mapped to ISO datastore by mapping the CDROM device for VM to “Client Device” in VM settings.
    6. Highlight the Windows 2008 R2 VM, and choose File->Export-Export OVF Template
    7. Select directory and choose “Folder of File (OVF)” format
    8. It will take 20 to 30 minutes to export the VM to OVF format.  The export process will create subdirectory in the output directory and will place compressed VMDK file.
    9. To deploy new VM, choose File-Deploy OVF Template form vSPhere client.
  3. Installing AD, DNS, and DHCP server
    1. Before VMware virtual center can be installed, Active Directory need to be available.  Existing AD server can be used or new AD can be deployed. 
    2. Setup new AD by deploying pre-created Windows 2008 R2 OVF template (File->Deploy OVF Template).  The deployment of new VM will take about 10 minutes.
    3. Set static IP to the AD VM.  Install DNS (without configuring), and install AD and DHCP server role.
    4. If folder redirection is desired, create OU for VDI users and apply folder redirection GPO for My Documents and Desktop.
    5. Add ESXi, VC, and VMware View Connection server address in the DNS.  Configure ESXi server with proper DNS, Gateway, and NTP server.  0.pool.ntp.org can be used for external NTP server.
  4. Installing Virtual Center and VMware View Composer

VMware View Composer enables single image management for VMware View VDI environment by utilizing VMware linked clone and persistent disk technology.  Linked clone is a hypervisor based writable snapshot technology that can rapidly create many VMs based on a single master image.  With persistent disk, all the user profile information is redirected to a separate VMDK file (which typically shows up as a D: drive) that persists during VM refresh or recreation process.  With persistent user data disk, the user desktop can be easily recreated even after system failure.  VMware View composer changes the default user profile path to the D: drive in the Microsoft Windows registry during image customization steps.  

Note of caution:  Since the profile redirection only applies to users whose accounts do not exist on the master image, any user account which was used to prepare the image will not be redirected to the persistent disk.  Either use separate admin account for master image setup or delete the user profile before image deployment.

    1. Deploy Microsoft Windows 2008 R2 server and install the Virtual Center software.  Use built in SQL Express DB.
    2. Download and install “Microsoft SQL Server Management Express Studio.”  Open the command prompt as the administrator and execute the installation package from the command prompt. (http://www.microsoft.com/downloads/en/details.aspx?familyid=c243a5ae-4bd1-4e3d-94b8-5a0f62bf7796&displaylang=en”)
    3. VMware View Composer, which handles the linked clone creation, installs on the Virtual Center server.  VMware View Composer will require its own database.  To create the VMware View Composer database, launch the SQLExpress Management studio with the “run as administrator” option.

        i.     In SQLExpress Management Studio, create new a new database name for VMware View Composer (ex.  VMware ViewCMP)

       ii.     Go to Administrative Tools->Data Source (ODBC) and create System a DSN for the VMware View database with “SQL Native Client” driver.  Choose integrated Windows authentication and change the default database to VMware View Composer database (ex. VMware ViewCMP).

      iii.     Test the ODBC connection Install VMware View Composer.  Make sure to install the Composer with the “run as administrator” option

Finally, install VMware View Composer.  Make sure to install the Composer with the “run as administrator” option

Next up, creating the master desktop VM

    2 Responses to VDI at home: building a 10-user environment for $500 (Part 2: VMware View Installation)

  1. Ali says:

    Some additional info, other peatnoitl approaches:1. Am booting from a LUN on the raid device, so the megaraid.o module may be loading earlier than it does for you. Not sure when vmkernel masks PCI devices for the service console, but this may be useful info2. Results of esxcfg-boot -q vmkmod from running service console:vmkapimod vmkapimodvmklinux linuxtg3.o nicmegaraid2.o scsi3. Not really familiar with service console and vmkernel handling of PCI devices, but the cpci option could be a peatnoitl sticking point if not set correctly. Mine is cpci=2:1;3:; . Note that the LSI 300-8xlp is in 3.lspci excerpt is:02:01.0 PCI bridge: Intel Corporation: Unknown device 0335 (rev 0a)02:03.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)02:03.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)03:0e.0 RAID bus controller: LSI Logic / Symbios Logic: Unknown device 0409 (rev 0a)lspci -n excerpt is:02:01.0 Class 0604: 8086:0335 (rev 0a)02:03.0 Class 0200: 14e4:1648 (rev 10)02:03.1 Class 0200: 14e4:1648 (rev 10)03:0e.0 Class 0104: 1000:0409 (rev 0a)4. 8x vs 8xlp models do use the same firmware and have the same PCI ids, but it could be a difference in modelsHope some of this is useful. Good luck!

    • Cdykstra says:

      View Software licenses list at $250. For production environment, 50 users running on 2 X5650 CPU, 96G RAM will cost around $180 per user for server cost. The SSD storage will cost another $120 per user for external SSD array such as Violin memory. For user data storage, existing SAN/NAS can be used. Since user data does not have to be high performance, SATA storage can be used, which will set you back around $150/user for 100 user environment (EMC VNXe 3100, etc). The zero clients start from $300. So total product cost can be around $1000 per user or less based on product discount.

      - Sam Lee, Data Center Team Lead

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>