Tuesday, October 8, 2013

Command Line VHD Merge


Example:

Server: PVS01

Store Folder Name: D:\PVSStore

Image File List:
W7_Image_Clean_V2.5.vhd (Merged Base file)
W7_Image_Clean_V2.6.avhd
W7_Image_Clean_V2.7.avhd
W7_Image_Clean_V2.8.avhd

To create a new merge based including W7_Image_Clean_V2.5.vhd (Merged Base file), W7_Image_Clean_V2.6.avhd, W7_Image_Clean_V2.7.avhd and W7_Image_Clean_V2.8.avhd, issue the following command:

rundll32 VhdUtil.dll,VhdMerge  D:\PVSStore\W7_Image_Clean_V2.8.avhd W7_Image_Clean_V2.5.vhd  D:\PVSStore\W7_Image_Clean_V2_New.vhd > D:\PVSStore\merge_log.txt

The benefit of using command line to do the merging is it can give you a debug log that will be useful for troubleshooting purposes, but please remember that it won't update the DiskVersion entry in the database.

VMware Workstation Services Manual Startup

:: Start the necessary services
psservice start VMAuthdService
psservice start VMUSBArbService
psservice start VMnetDHCP
psservice start "VMware NAT Service"
psservice start VMwareHostd
   
:: Enable network VMWare network adapters
wmic path win32_networkadapter where index=12 call enable
wmic path win32_networkadapter where index=14 call enable
   
:: Start VMWare
start "" /wait "C:\Program Files (x86)\VMware\VMWare Workstation\vmware.exe"
   
:: Stop services
psservice stop VMnetDHCP
psservice stop "VMware NAT Service"
psservice stop VMwareHostd
psservice stop VMAuthdService
psservice stop VMUSBArbService
   
:: Disable our VMWare network adapters
wmic path win32_networkadapter where index=12 call disable
wmic path win32_networkadapter where index=14 call disable

Run 'wmic nic get name, index' and change the value of 'index=' above accordingly.

Save the file as vmware-run.bat or whatever name you prefer.

Go to Windows' Services and set all the services that started with VMWARE* to manual.

Grab the PSTools from http://technet.microsoft.com/en-us/sysinternals/bb897542 as this batch file required it.

Friday, August 24, 2012

How To Restore DVD & Removable Drive


Restore the DVD drive:
# xe sr-create host-uuid= content-type=iso name-label=”DVD drives” type=udev device-config:location=/dev/xapi/cd

Restore removable storage:
# xe sr-create host-uuid= content-type=disk name-label=”Removable storage” type=udev device-config:location=/dev/xapi/block

Friday, July 27, 2012

VDI-in-a-Box Default ICA File

The default.ica file can be found under the following path:
/home/kvm/kvm/install/servlet_container/webapps/dt/WEB-INF/etc/proto.ica

Thursday, May 31, 2012

How-To Change Qlogic/Emulex HBA Connection Option in XenServer

How to set the connection option to Point-to-Point only?

For Emulex HBA - Edit /etc/modprobe.d/emulex and add:
options lpfc lpfc_topology=0x2
Complete guide to set the connection mode in Emulex HBA can be found at - http://support.citrix.com/article/CTX134088

PVS - Unable to create machine on bulks on 100

Issue: Problem to create Virtual Desktops with XenDesktop Wizard (from PVS 5.6 SP1), unable to create machines on bulks of 100 or more, after 10- 15 Virtual Desktops the process failed.

Environment:
- Citrix PVS 5.6/5.6SP1/5.6SP2/5.6SP3
- XenDesktop 5.5
- Hyper-V with SCVMM 2008 R2 SP1

Resolution:
1. Follow CTX130000 - implemeting WinRM settings on SCVMM and PVS server.
2. On SCVMM, change MaxMemoryPerShellMb to 512MB.

Believe this to be a Microsoft bug with wsmprovhost.exe.

Likewise Troubleshooting


Some likewise commands for troubleshooting.

# /opt/likewise/bin/lw-set-log-level verbose
# /opt/likewise/bin/domainjoin-cli query
# /opt/likewise/bin/lw-find-user-by-name "name@domain.com"
# /opt/likewise/bin/lw-get-current-domain
# /opt/likewise/bin/lw-get-dc-name name.domain.com
# /opt/likewise/bin/lw-get-dc-time name.domain.com
# clock
# /opt/likewise/bin/lw-get-metrics
# /opt/likewise/bin/lw-get-status.
# /opt/likewise/bin/lw-auth-user name@domain.com[ENTER]