8.6. Virtual Machines

8.6.1. How to Configure Desktop Resources Per Pool (Oracle VDI Provider)
8.6.2. Optimizing Windows 7 Desktop Images
8.6.3. Optimizing Windows Vista Desktop Images
8.6.4. Optimizing Windows XP Desktop Images
8.6.5. Optimizing Desktop Images for Other Operating Systems

8.6.1. How to Configure Desktop Resources Per Pool (Oracle VDI Provider)

With Oracle VDI, you can configure Desktop Resource settings for all desktops within a specific pool. The settings only apply to pools that use an Oracle VDI desktop provider.

Oracle VDI Manager Steps

  1. In Oracle VDI Manager, go to Pools.

  2. Select a pool.

  3. Go to the Settings tab.

  4. In the Desktop Resources section, configure the resource settings.

    See Section 8.6.1.1, “Available Desktop Resource Settings” for details of the available settings.

  5. Click Save.

CLI Steps

  1. Configure the Desktop Resource settings.

    See Section 8.6.1.1, “Available Desktop Resource Settings” for details of the available settings.

    # /opt/SUNWvda/sbin/vda pool-setprops \
    -p prop1=value1, prop2=value2 pool name
    

    In the following example, the CPU usage is set to 70% for the pool named MyPool.

    # /opt/SUNWvda/sbin/vda pool-setprops -p cpu-cap=70 MyPool
  2. Check the Desktop Resource settings.

    # /opt/SUNWvda/sbin/vda pool-getprops -p cpu-cap pool name
    CPU Execution Cap: 70
    

8.6.1.1. Available Desktop Resource Settings

The following table lists the Desktop Resource settings available to pools that use an Oracle VDI desktop provider. The settings apply to all desktops in the pool.

Setting

CLI Property

Description

Default

CPU Usage

cpu-cap

Controls how much CPU time a virtual CPU can use, expressed as a percentage.

A value of 50 means a single Virtual CPU can use up to 50% of a single host CPU.

100

Memory Sharing

memory-sharing

Controls the amount of memory shared between desktops, expressed as a percentage between 0 and 75.

For more information, see Section 5.1.1, “About the Oracle VDI Hypervisor”.

0

Memory Paging

memory-paging

Controls whether or not memory paging is used for similar running virtual machines.

For more information, see Section 5.1.1, “About the Oracle VDI Hypervisor”.

Disabled

Asynchronous Disk I/O

async-io

Enables or disables asynchronous disk I/O.

This feature is not supported by IDE controllers.

Enabled

Limited Data Rate

Enabled if Maximum Data Rate is set

Enable or disable the ability to limit bandwidth.

Disabled

Maximum Data Rate

bandwidth-ctl

Limit the maximum bandwidth used for asynchronous I/O, expressed as megabytes per second (MB/s).

The Limited Data Rate setting must be enabled

50

8.6.2. Optimizing Windows 7 Desktop Images

Block Alignment

The alignment of the blocks on the virtual disk can have a significant impact on the performance of the storage. See Section 8.4.3, “About Block Alignment” for details of how to correct the block alignment.

Cloning Preparation for Oracle VM VirtualBox and Microsoft Hyper-V

Oracle VDI Fast Preparation (FastPrep) and Windows System Preparation (Sysprep) enable cloning of Windows desktops by Oracle VDI. Oracle VDI FastPrep can be configured within a pool without any desktop preparation. Before enabling Windows System Preparation for a pool, the desktop must be prepared using the steps below.

  1. Disable the Windows Media Player Network Sharing Service.

    Due to a bug in Windows 7, the Windows Media Player Network Sharing Service causes the Windows Sysprep tool to hang. If you do not need this service enabled in your Windows 7 desktops and you intend to run System Preparation from Oracle VDI Manager, stop and disable it. If you prefer to leave this service enabled, run Sysprep manually from within the template before importing it.

  2. (Microsoft Hyper-V Only) Install the Oracle VDI Tools on the template.

    The System Preparation action in the Template tab will not work if you do not have the tools (vda-tools-x86.msifor 32-bit platforms or vda-tools-x64.msi for 64-bit platforms) installed on your template.

Appearance and Personalization

  1. Go to the Personalization menu.

    Right-click on the desktop and select Personalize.

    Or, select Start, Control Panel, Appearance and Personalization, then Personalization.

  2. Set a plain desktop background.

    1. Select Desktop Background from the Personalization menu.

    2. Select Solid Colors in the Picture Location menu.

  3. Configure the screen saver.

    If you want to use the Oracle VM VirtualBox Auto-Logon feature, disable the screen saver. Otherwise, set a blank screen saver with password protect on resume.

    1. Select Screen Saver from the Personalization menu.

    2. Either set the screen saver to [None] to disable it, or set the screen saver to Blank and select On resume, display logon screen.

  4. Disable Windows sounds.

    1. Select Sound from the Personalization menu.

    2. On the Sounds tab, select No Sounds under Sound Scheme.

  5. (VRDP Only) Change mouse pointers.

    1. Select Change mouse pointers from the left sidebar of the Personalization menu.

    2. In the Scheme menu, select Windows Black (system scheme).

  6. Save your settings as a Theme.

    1. Select Save theme from the Personalization menu.

    2. Choose a name for the theme.

  7. Go to the Display menu.

    Select Start, Control Panel, Appearance and Personalization, then Display.

  8. Ensure hardware acceleration is enabled.

    1. Select Change display settings in the left sidebar, then click Advanced Settings.

    2. Select the Troubleshoot tab, then Change settings, and ensure that the Hardware acceleration is set to Full.

System and Security

  1. Go to the System and Maintenance menu.

    Select Start, Control Panel, then System and Security.

  2. Optimize visual effects performance.

    1. Select System from the System and Security menu.

    2. Select Advanced system settings in the left sidebar. Then select Settings under the Performance heading on the Advanced tab.

    3. On the Visual Effects tab, choose Adjust for best performance.

      For a less drastic option, select Let Windows choose what's best for my computer.

  3. Install Windows updates.

    1. Select Windows Update from the System and Security menu.

    2. Select Check for updates, then Install updates.

  4. (VMware vCenter Only) Configure power management.

    1. Configure power management on the guest operating system.

      1. Select Power Options from the System and Security menu.

      2. Click Change when the computer sleeps in the left sidebar, and set the desired value.

    2. Configure power management in the Virtual Infrastructure Client.

      1. Open the Virtual Infrastructure Client.

      2. Right-click on the desired virtual machine and go to Edit Settings.

      3. Go to Options, then Power Management, and select Suspend the Virtual Machine.

  5. Run defragmentation and turn off scheduled defragmentation.

    1. Select Defragment your hard drive under the Administrative Tools heading, on the System and Security menu.

    2. If under Schedule you see Scheduled defragmentation is turned on, select Configure Schedule. Ensure the Run on a schedule box is not checked.

    3. Then choose a disk and select Defragment disk.

  6. Disable unwanted services.

    1. Select Administrative Tools from the System and Security menu.

    2. Select Services.

      At a minimum, disable the Windows Search and the SuperFetch Service.

    3. Right click on the service name and select Properties.

    4. Choose Disabled for the Startup type.

    5. Stop service by right clicking on it and selecting Stop.

  7. Disable scheduled virus scanners.

    1. Select Schedule tasks under the Administrative Tools heading, on the System and Security menu.

    2. In the left sidebar, open the Task Scheduler Library and navigate your virus scanner's folder.

    3. In the right sidebar, select Disable.

    4. Disable any other unwanted tasks.

Other Optimizations

  • Choose which programs start when Windows starts.

    1. Select Start, All Programs, Accessories, then Run.

    2. Type 'msconfig' and click OK.

    3. Select the Startup tab.

    4. Uncheck any programs that you do not want Windows to run at startup.

  • Reduce recycle bin drive space usage.

    1. By default, the Recycle Bin is located on the Desktop. Right-click on it, then select Properties.

    2. On the General tab, select Custom size, and enter the desired value.

  • Run Disk Cleanup.

    1. Select Start, then Computer.

    2. Right click on Local Disk (C\:) and select Properties.

    3. Click Disk Cleanup on the General tab.

8.6.3. Optimizing Windows Vista Desktop Images

Block Alignment

The alignment of the blocks on the virtual disk can have a significant impact on the performance of the storage. See Section 8.4.3, “About Block Alignment” for details of how to correct the block alignment.

Cloning Preparation for Oracle VM VirtualBox and Microsoft Hyper-V

Oracle VDI Fast Preparation (FastPrep) and Windows System Preparation (Sysprep) enable cloning of Windows desktops by Oracle VDI. Oracle VDI FastPrep can be configured within a pool without any desktop preparation.

Before enabling Windows System Preparation for a pool that uses Microsoft Hyper-V as the desktop provider, install the Oracle VDI Tools on the template. The System Preparation action in the Template tab will not work if you do not have the tools (vda-tools-x86.msifor 32-bit platforms or vda-tools-x64.msi for 64-bit platforms) installed in your template.

Appearance and Personalization

  1. Go to the Personalization menu.

    Right-click on the desktop and select Personalize.

    Or, select Start, Control Panel, Appearance and Personalization, then Personalization.

  2. Set a plain desktop background.

    1. Select Desktop Background from the Personalization menu.

    2. Select Solid Colors in the Picture Location menu.

  3. Configure the screen saver.

    If you want to use the Oracle VM VirtualBox Auto-Logon feature, disable the screen saver. Otherwise, set a blank screen saver with password protect on resume.

    1. Select Screen Saver from the Personalization menu.

    2. Either set the screen saver to [None] to disable it, or set the screen saver to Blank and select On resume, display logon screen.

  4. Disable Windows sounds.

    1. Select Sounds from the Personalization menu.

    2. On the Sounds tab, select No Sounds under Sound Scheme.

  5. (VRDP Only) Change mouse pointers.

    1. Select Mouse Pointers from the Personalization menu.

    2. In the Scheme menu, select Windows Black (system scheme).

  6. Save your settings as a Theme.

    1. Select Theme from the Personalization menu.

    2. On the Themes tab, under the Theme menu, Modified Theme should be highlighted because personalization settings have been changed. If it is not highlighted, it is possible your personalization changes were not saved.

    3. Select Save As, and choose a name for the theme.

  7. Ensure hardware acceleration is enabled.

    1. Select Display Settings from the Personalization menu.

    2. Click Advanced Settings and then Change settings on the Troubleshoot tab.

    3. Ensure that the Hardware acceleration is set to Full.

System and Maintenance

  1. Go to the System and Maintenance menu.

    Select Start, Control Panel, then System and Maintenance.

  2. Optimize visual effects performance.

    1. Select System from the System and Maintenance menu.

    2. Click Advanced system settings in the left sidebar. Then click the Settings button under Performance on the Advanced tab.

    3. On the Visual Effects tab, choose Adjust for best performance.

      For a less drastic option, select Let Windows choose what's best for my computer.

  3. (VMware vCenter Only) Configure power management.

    1. Configure power management on the guest operating system.

      1. Select Change when the computer sleeps under the Power Options heading, on the System and Maintenance menu.

      2. Click Change when the computer sleeps in the left sidebar, and set the desired value.

    2. Configure power management in the Virtual Infrastructure Client.

      1. Open the Virtual Infrastructure Client.

      2. Right-click on the desired virtual machine and go to Edit Settings.

      3. Go to Options, then Power Management, and select Suspend the Virtual Machine.

  4. Run defragmentation and turn off scheduled defragmentation.

    1. Select Defragment your hard drive under the Administrative Tools heading, on the System and Maintenance menu.

    2. Ensure the Run on a schedule box is not checked.

    3. Then select Defragment now.

  5. Disable unwanted services.

    1. Select Administrative Tools from the System and Maintenance menu.

    2. Select Services.

      At a minimum, disable the Indexing Service and the SuperFetch Service.

    3. Right click on the service name and select Properties.

    4. Choose Disabled for the Startup type.

    5. Stop service by right clicking on it and selecting Stop.

  6. Disable scheduled virus scanners.

    1. Select Schedule tasks under the Administrative Tools heading, on the System and Maintenance menu.

    2. In the left sidebar, open the Task Scheduler Library and navigate your virus scanner's folder.

    3. In the right sidebar, select Disable.

    4. Disable any other unwanted tasks.

Other Optimizations

  • Install Windows updates.

    1. Select Start, then Control Panel.

    2. Select Check for updates, then Install updates.

  • Choose which programs start when Windows starts.

    1. Select Start, All Programs, Accessories, then Run.

    2. Type 'msconfig' and click OK.

    3. Select the Startup tab.

    4. Uncheck any programs that you do not want Windows to run at startup.

  • Reduce recycle bin drive space usage.

    1. By default, the Recycle Bin is located on the Desktop. Right-click on it, then select Properties.

    2. On the General tab, select Custom size, and enter the desired value.

  • Run Disk Cleanup.

    1. Select Start, then Computer.

    2. Right click on Local Disk (C\:) and select Properties.

    3. Click Disk Cleanup on the General tab.

8.6.4. Optimizing Windows XP Desktop Images

Block Alignment

The alignment of the blocks on the virtual disk can have a significant impact on the performance of the storage. See Section 8.4.3, “About Block Alignment” for details of how to correct the block alignment.

Cloning Preparation for Oracle VM VirtualBox and Microsoft Hyper-V

Oracle VDI Fast Preparation (FastPrep) and Windows System Preparation (Sysprep) enable cloning of Windows desktops by Oracle VDI. Oracle VDI FastPrep can be configured within a pool without any desktop preparation. Before enabling Windows System Preparation for a pool, the desktop must be prepared using the steps below.

  1. (Microsoft Hyper-V Only) Install the Oracle VDI Tools on the template.

    The System Preparation action in the Template tab will not work if you do not have the tools (vda-tools-x86.msi for 32-bit platforms or vda-tools-x64.msi for 64-bit platforms) installed on your template.

  2. Install System Preparation.

    1. Log in to the template and download the appropriate Windows XP Deployment Tools for your version of Windows XP.

    2. Create a directory on the virtual machine named C:\Sysprep.

    3. Unpack the contents of the Windows XP Deployment Tools (deploy.cab) into the C:\Sysprep directory.

Appearance and Themes

  1. Go to the Display Properties menu.

    Right-click on the desktop and select Properties.

    Or, select Start, Control Panel, Appearance and Themes, then Change the computer's theme.

  2. Set a plain desktop background.

    1. Select the Display tab from the Display Properties menu.

    2. Under Background, select None.

    3. Select Apply.

  3. Configure the screen saver.

    If you want to use the Oracle VM VirtualBox Auto-Logon feature, disable the screen saver. Otherwise, set a blank screen saver with password protect on resume.

    1. Select Screen Saver from the Display Properties menu.

    2. Either set the screen saver to [None] to disable it, or set the screen saver to Blank and select On resume, display logon screen.

    3. Select Apply.

  4. Ensure hardware acceleration is enabled.

    1. Select the Settings tab from the Display Properties menu.

    2. Then select Advanced.

    3. On the Troubleshooting tab, ensure that the Hardware acceleration is set to Full.

    4. Select Apply.

  5. Save your settings as a Theme.

    1. Select Themes tab from the Display Properties menu.

    2. Under the Theme menu, Modified Theme should be highlighted because display properties have been changed. If it is not highlighted, it is possible your personalization changes were not saved.

    3. Select Save As, and choose a name for the theme.

Performance and Maintenance

  1. Go to the Performance and Maintenance menu.

    Select Start, Control Panel, then Performance and Maintenance.

  2. Optimize visual effects performance.

    1. Select Adjust visual effects from the Performance and Maintenance menu.

    2. On the Visual Effects tab, choose Adjust for best performance.

      For a less drastic option, select Let Windows choose what's best for my computer.

  3. (VMware vCenter Only) Configure power management.

    1. Configure power management on the guest operating system.

      1. Select Power Options from the Performance and Maintenance menu.

      2. Set the System standby time to the desired value.

    2. Configure power management in the Virtual Infrastructure Client.

      1. Open the Virtual Infrastructure Client.

      2. Right-click on the desired virtual machine and go to Edit Settings.

      3. Go to Options, then Power Management, and select Suspend the Virtual Machine.

  4. Disable scheduled virus scanners.

    1. Select Scheduled tasks from the Performance and Maintenance menu.

    2. Right-click the virus scanner, and select Properties.

    3. Uncheck the Enabled (scheduled task runs at specified time) box.

    4. Disable any other unwanted tasks.

  5. Disable unwanted services.

    1. Select Administrative Tools from the Performance and Maintenance menu.

    2. Select Services.

      At a minimum, disable the Indexing Service.

    3. Right click on the service name and select Properties.

    4. Choose Disabled for the Startup type.

    5. Stop service by right clicking on it and selecting Stop.

  6. Run defragmentation.

    1. Select Administrative Tools from the Performance and Maintenance menu.

    2. Select Computer Management, then Disk Defragmenter from the left sidebar.

    3. Select a disk, then Defragment.

Other Optimizations

  • Turn off automatic defragmentation.

    1. Select Start, then Run.

    2. Type 'regedit' and click OK.

    3. In the registry editor, go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg.

    4. Select BootOptimizeFunction.

    5. In the right side of the registry editor, check if Enable already exists. If it does not exist, create it.

      • Right click on the right side of the registry editor.

      • Select New, then String Value. Name it "Enable".

    6. Select Enable, and enter 'N' to turn off automatic disk defragmentation.

  • Choose which programs start when Windows starts.

    1. Select Start, the Run.

    2. Type 'msconfig' and click OK.

    3. Select the Startup tab.

    4. Uncheck any programs that you do not want Windows to run at startup.

  • Disable Windows sounds.

    1. Select Start, Control Panel, Sounds, Speech, and Audio Devices, then Change the sound scheme.

    2. On the Sounds tab, select No Sounds under Sound scheme.

    3. Select Apply.

  • (VRDP Only) Change mouse pointers.

    1. Select Start, Control Panel, Printers and Other Hardware, then Mouse.

    2. On the Pointers tab, select Windows Black (system scheme) in the Scheme menu.

    3. Select Apply.

  • Install Windows updates.

    1. Select Start, then All Programs.

    2. Select Windows Update.

  • Reduce recycle bin drive space usage.

    1. By default, the Recycle Bin is located on the Desktop. Right-click on it, then select Properties.

    2. On the Global tab, select Use one setting for all drives.

    3. Move the slider to the desired value.

  • Run Disk Cleanup.

    1. Go to Start, then My Computer.

    2. Right click on Local Disk (C\:) and select Properties.

    3. On the General tab, click Disk Cleanup.

8.6.5. Optimizing Desktop Images for Other Operating Systems

The following are some basic guidelines for optimizing desktop performance for other operating systems:

  • The alignment of the blocks on the virtual disk can have a significant impact on the performance of the storage. See Section 8.4.3, “About Block Alignment” for details of how to correct the block alignment.

  • Do not use desktop wallpaper.

  • Do not use scheduled virus scanners.

  • Do not use scheduled defragmentation.

  • (VRDP Only) Do not use a mouse pointer theme that uses alpha blending.