tag:blogger.com,1999:blog-65833074319893429442024-02-07T18:39:47.942+08:00Open Source Journal by VibranzeThis blog will be contained the tips and tricks about Open Source in general, virtualization technology in specific such as XenServer, VMware, XenDesktop and PVS.Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-6583307431989342944.post-46697827143476023662013-10-08T17:39:00.001+08:002013-10-08T17:40:03.679+08:00Command Line VHD Merge<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Example:<br />
<br />
Server: PVS01<br />
<br />
Store Folder Name: D:\PVSStore<br />
<br />
Image File List:<br />
W7_Image_Clean_V2.5.vhd (Merged Base file)<br />
W7_Image_Clean_V2.6.avhd<br />
W7_Image_Clean_V2.7.avhd<br />
W7_Image_Clean_V2.8.avhd<br />
<br />
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:<br />
<br />
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<br />
<br />
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.</div>
Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-51382853714622404562013-10-08T15:02:00.002+08:002013-10-08T15:02:49.302+08:00VMware Workstation Services Manual Startup<div dir="ltr" style="text-align: left;" trbidi="on">
:: Start the necessary services<br />psservice start VMAuthdService<br />psservice start VMUSBArbService<br />psservice start VMnetDHCP<br />psservice start "VMware NAT Service"<br />psservice start VMwareHostd<br /> <br />:: Enable network VMWare network adapters<br />wmic path win32_networkadapter where index=12 call enable<br />wmic path win32_networkadapter where index=14 call enable<br /> <br />:: Start VMWare<br />start "" /wait "C:\Program Files (x86)\VMware\VMWare Workstation\vmware.exe"<br /> <br />:: Stop services<br />psservice stop VMnetDHCP<br />psservice stop "VMware NAT Service"<br />psservice stop VMwareHostd<br />psservice stop VMAuthdService<br />psservice stop VMUSBArbService<br /> <br />:: Disable our VMWare network adapters<br />wmic path win32_networkadapter where index=12 call disable<br />wmic path win32_networkadapter where index=14 call disable<br /><br />Run 'wmic nic get name, index' and change the value of 'index=' above accordingly.<br /><br />Save the file as vmware-run.bat or whatever name you prefer.<br /><br />Go to Windows' Services and set all the services that started with VMWARE* to manual.<br /><br />Grab the PSTools from http://technet.microsoft.com/en-us/sysinternals/bb897542 as this batch file required it.</div>
Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-51162638382162891712012-08-24T15:34:00.002+08:002012-08-24T15:34:41.977+08:00How To Restore DVD & Removable Drive<br />
Restore the DVD drive:<br />
<i># xe sr-create host-uuid=<uuid> content-type=iso name-label=”DVD drives” type=udev device-config:location=/dev/xapi/cd</uuid></i><br />
<br />
Restore removable storage:<br />
<i># xe sr-create host-uuid=<uuid> content-type=disk name-label=”Removable storage” type=udev device-config:location=/dev/xapi/block</uuid></i><br />
<div>
<br /></div>
<div>
<span style="font-size: x-small;">Source: <a href="http://support.citrix.com/article/CTX120962">http://support.citrix.com/article/CTX120962</a></span></div>
Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-22098008034783679832012-07-27T17:57:00.001+08:002012-08-24T15:35:56.415+08:00VDI-in-a-Box Default ICA File<div>
The default.ica file can be found under the following path:</div>
<div>
<i>/home/kvm/kvm/install/servlet_container/webapps/dt/WEB-INF/etc/proto.ica</i></div>
Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-17804975124852231602012-05-31T11:01:00.001+08:002012-08-24T15:37:19.809+08:00How-To Change Qlogic/Emulex HBA Connection Option in XenServerHow to set the connection option to Point-to-Point only?<br />
<div>
<br /></div>
<div>
For Qlogic HBA - <a href="http://support.citrix.com/article/CTX130465">http://support.citrix.com/article/CTX130465</a></div>
<div>
For Emulex HBA - Edit /etc/modprobe.d/emulex and add:</div>
<blockquote class="tr_bq">
options lpfc lpfc_topology=0x2</blockquote>
<div>
Complete guide to set the connection mode in Emulex HBA can be found at - <a href="http://support.citrix.com/article/CTX134088">http://support.citrix.com/article/CTX134088</a></div>
Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-70468770038447640672012-05-31T10:27:00.002+08:002012-05-31T10:31:07.162+08:00PVS - Unable to create machine on bulks on 100Issue: 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.
<br />
<br />
Environment:<br />
- Citrix PVS 5.6/5.6SP1/5.6SP2/5.6SP3<br />
- XenDesktop 5.5<br />
- Hyper-V with SCVMM 2008 R2 SP1<br />
<br />
Resolution:<br />
1. Follow CTX130000 - implemeting WinRM settings on SCVMM and PVS server.<br />
2. On SCVMM, change MaxMemoryPerShellMb to 512MB.<br />
<br />
Believe this to be a Microsoft bug with wsmprovhost.exe.<br />
<br />Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-55236942585550008772012-05-31T10:13:00.001+08:002012-08-24T15:37:55.736+08:00Likewise Troubleshooting<br />
Some likewise commands for troubleshooting.<br />
<br />
# /opt/likewise/bin/lw-set-log-level verbose<br />
# /opt/likewise/bin/domainjoin-cli query<br />
# /opt/likewise/bin/lw-find-user-by-name "name@domain.com"<br />
# /opt/likewise/bin/lw-get-current-domain<br />
# /opt/likewise/bin/lw-get-dc-name name.domain.com<br />
# /opt/likewise/bin/lw-get-dc-time name.domain.com<br />
# clock<br />
# /opt/likewise/bin/lw-get-metrics<br />
# /opt/likewise/bin/lw-get-status.<br />
# /opt/likewise/bin/lw-auth-user name@domain.com[ENTER]Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-83001936420359788472012-01-05T11:45:00.000+08:002012-01-05T11:45:21.948+08:00How to Identify if your iSCSI Storage Repository has Changed SCSI IDsUseful if you encounter an issue repairing an SR with error code SR_BACKEND_FAILURE_19 no such devices.<br />
<br />
http://support.citrix.com/article/CTX118641Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-40675860809735038932012-01-05T11:43:00.004+08:002012-08-24T15:39:12.149+08:00Some Useful iSCSI CommandsTo discover targets at a given IP address:<br />
<b><i>iscsiad<wbr></wbr>m -m discovery --type sendtarget<wbr></wbr>s --portal </i><san ip=""></san></b><br />
<br />
To login to the one of the targets found by the command above:<br />
<b><i>iscsiad<wbr></wbr>m --mode node --targetna<wbr></wbr>me <one above="" iqns="" of=""> --portal <san ip=""> --login</san></one></i></b><b></b><br />
<br />
To view all active sessions and connections:<br />
<b><i>iscsiad<wbr></wbr>m --mode session</i></b><b></b>Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-45438710897813148732012-01-05T11:38:00.000+08:002012-01-05T11:38:29.026+08:00XenServer - SR_BACKEND_FAILURE List of error codes and their description<span lang="en-us"><span style="font-family: Calibri;">A full list of all error codes and their description is available in the /opt/xensource/sm/XE_SR_ERRORCODES.xml file</span></span>Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com1tag:blogger.com,1999:blog-6583307431989342944.post-40769914547107999152011-12-11T13:28:00.003+08:002012-06-15T12:50:13.278+08:00Cross Resource Pool VM Copyxe host-call-plugin host-uuid=<uuid> plugin=copy fn=get_vm args:remote_vm_uuid=<uuid get="" of="" the="" to="" vm=""> args:local_sr_uuid=<uuid in="" of="" sr="" store="" the="" to="" vm=""> args:remote_host=<remote ip="" xs=""> args:remote_username=root args:remote_password=<pwd></pwd></remote></uuid></uuid></uuid><br />
<br />
parameters explained:<br />
<br />
xe host-call-plugin - is the xe command to execute plugins<br />
host-uuid=<uuid> - is the UUID of the XenServer you want to import the VM to (the host on which the plugin is executed)</uuid><br />
plugin=copy - is the /etc/xapi.d/plugins/<plugin> to use ... in this case: copy</plugin><br />
fn=get_vm - the function of the plugin to call (each plugin can serve multiple purposes - the copy plugin for example has about 5 or so different purposes) … in this case: get_vm<br />
args:remote_vm_uuid=<uuid> - the UUID of the VM to copy/import</uuid><br />
args:local_sr_uuid=<uuid> - UUID of the SR the VM should be imported to</uuid><br />
args:remote_host=<remote ip="" xs=""> - IP of the XenServer the VM is installed on</remote><br />
args:remote_username=root - you can figure that one out yourself ?<br />
args:remote_password=<pwd> - well, a password will be needed since the XenServer doesn’t know anything about the other resource pool</pwd><br />
<br />
e.g.<br />
<br />
XenServer-1 IP = 1.2.3.1<br />
XenServer-1 Username / Password = root / password<br />
XenServer-2 UUID = 8ad2e8cb-7447-463e-bf92-8301e0ba4562<br />
Debian VM @ XenServer-1 - UUID = 33f82e4f-cc26-f0b9-7943-5239945aef61<br />
Local SR @ XenServer-2 - UUID = 0d417f8a-c527-4b00-08ce-21a63a7238b6<br />
<br />
The following command was executed from XenServer-2:<br />
<i><span style="font-size: x-small;"><b>xe host-call-plugin host-uuid=8ad2e8cb-7447-463e-bf92-8301e0ba4562 plugin=copy fn=get_vm args:remote_vm_uuid=33f82e4f-cc26-f0b9-7943-5239945aef61 args:local_sr_uuid=0d417f8a-c527-4b00-08ce-21a63a7238b6 args:remote_host=1.2.3.1 args:remote_username=root args:remote_password=password</b></span></i><br />
<br />
Once it's completed, you will see a Debian VM appear on XenServer-2.<br />
<br />
<br />
The above should allow you to easily migrate/backup/copy VMs between completely separated resource pools (completely separated is not entirely true since both environments will obviously have to have network connectivity ?) without the need for manual export/import operations or complex LUN re-assignment steps.<br />
<br />
<b><i>Thanks to Stefan from Citrix for this nice tip :)</i></b>Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-4950798151146208472011-04-12T12:39:00.001+08:002011-04-12T12:40:45.735+08:00XD5 - Change the site to use Active Directory based registration1. Creation of a simple OU in the domain tree. It can be an empty OU container. This only need to be done one time.<br />
<br />
2. Run the following Powershell command (change accordingly to suit your AD's OU). This command also need to be done one time. <br />
<br />
<br />
<div class="MsoNormal" style="color: #3d85c6; font-family: "Trebuchet MS",sans-serif;"><b><span style="font-size: x-small;"><i>Set-ADControllerDiscovery –existingOuDN “ou=xd5, ou=windows 2008, dn=company,dn=com” –on</i></span></b></div><b style="color: #3d85c6;"><span style="font-size: x-small;"><i><span style="font-family: "Trebuchet MS",sans-serif;"> </span></i></span></b><br />
<div class="MsoNormal" style="color: #3d85c6; font-family: "Trebuchet MS",sans-serif;"><br />
</div><div class="MsoNormal" style="color: #3d85c6; font-family: "Trebuchet MS",sans-serif;"><b><span style="font-size: x-small;"><i>Set-ADControllerDiscovery -sync</i></span></b></div><br />
The OU DN is derived using MS standards for converting Canonical names shown in ADMMC console to Distinguished Names as required by the command.<br />
<br />
Subsequent DDC's added to the site will need to run the same command with the -sync options as shown in the second command.<br />
<br />
3. Delete the "ListOfDDCs" key and add the "FarmGUID" key of type "REG_SZ" to the following location on the VDA's registry.<br />
<br />
<b style="color: #3d85c6;"><i><span style="font-family: "Trebuchet MS",sans-serif; font-size: x-small;">HKLM\SOFTWARE\Citrix\Citrix Virtual Desktop Agent\</span></i></b><br />
<br />
As a value for the new FarmGUID key, use the Farm GUID shown in the Desktop Studio console (will appear after the Powershell command is run) and that should get the desktops registering.Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-36008141804345151552011-04-07T15:42:00.002+08:002011-04-07T15:46:27.067+08:00Infographic of Android Ecosystem<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCHKqXzh4M6nfXL5BWJMkeS1qoCVD_rlGJpI4euK7I6nHSxNbm6PGpJ9ql_EZ9nsO9XPklBcnYRDqKPJVpbiUJkqeD9cvZUybqANQXgOdqfogmla7BlSElW2_BqzjTmSmoUkDc04yj91A/s1600/android-infografia.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCHKqXzh4M6nfXL5BWJMkeS1qoCVD_rlGJpI4euK7I6nHSxNbm6PGpJ9ql_EZ9nsO9XPklBcnYRDqKPJVpbiUJkqeD9cvZUybqANQXgOdqfogmla7BlSElW2_BqzjTmSmoUkDc04yj91A/s1600/android-infografia.jpg" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2fF0doRyGf7p8WYfMJ6nTa7eBEby8Hyx7IjAOlwc5pBTN4Qyj9GVJHxz6QLQFHAGB6owMhZ5rUQf3L2ZhKiFnjBQRcaWscWqNyBRD4SN9XW1BohBtJdcgNgu4KRMOuX7hURNF6OuN1uA/s1600/android-infografia.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br />
</a></div><br />
Source: http://www.frandroid.com/66429/des-infographies-sur-le-fonctionnement-dandroid/Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-85552393911828921792011-03-17T16:53:00.001+08:002011-03-17T16:57:18.969+08:00XenServer 5.6 FP1 Realtek NIC IssueIf you are using Realtek NIC (RTL8111/8168B) and after upgraded from XS 5.6 to XS 5.6 FP1, you encountered the network is not working, try the following workaround.<br />
<br />
$ echo "options r8169 use_dac=1" >> /etc/modprobe.conf<br />
<br />
Restart and now the NIC should be functioning properly.<br />
<br />
Credits: http://blog.root1024.ch/virtualisierung/citrix-xenserver/nach-update-auf-xenserver-5-6-1-fp1-kein-netzwerk-mehr/Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-59236844027827865932011-03-15T16:58:00.002+08:002011-03-15T17:02:36.181+08:00Virtual Desktop Agent InstallationIf you are encountered the following error during the VDA installation,<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuxsgdKeZJW7YMxYKcj7d3a3QH8lOOgxSaxE_QeC2v67U2JC-fy_DZJakNbWCgs2wf4L3jrpshtOQ45T0PKrA55HE_slQT1Czr9jOUNoOz9O9uCQ5XIeTnbrhiIOD8LOCXNMMfRfYhr98/s1600/2011-03-15_165434.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="246" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuxsgdKeZJW7YMxYKcj7d3a3QH8lOOgxSaxE_QeC2v67U2JC-fy_DZJakNbWCgs2wf4L3jrpshtOQ45T0PKrA55HE_slQT1Czr9jOUNoOz9O9uCQ5XIeTnbrhiIOD8LOCXNMMfRfYhr98/s320/2011-03-15_165434.jpg" width="320" /></a></div><br />
kindly try to use msiexec with the following parameter.<br />
<br />
<b><span style="font-size: x-small;"><i>msiexec.exe /i XdsAgent_x86.msi INSTALLONWDDM=1 CONTROLLER_NAMES=DDC-HOST ENABLE_HDX_PORTS=1 </i></span></b><br />
<br />
And if you want to have a log, just add<br />
e.g. <b><span style="font-size: x-small;"><i>msiexec.exe /i XdsAgent_x86.msi INSTALLONWDDM=1 CONTROLLER_NAMES=DDC-HOST ENABLE_HDX_PORTS=1 /l*v C:\vda-install.log</i></span></b><br />
<br />
<span style="font-size: small;">This error normally happened if you have a Windows Display Driver Model (WDDM) installed on the VDA.</span>Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-4580871878851136432011-03-12T20:39:00.000+08:002011-03-12T20:39:17.564+08:00XenServer - How to go to Safe Mode- At the boot prompt, type <i><b>menu.c32</b></i><br />
- Choose safe from the TUI presented.<br />
<br />
That's all.Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-23321199345580195502011-01-25T17:31:00.000+08:002011-01-25T17:31:09.332+08:00Windows - Find a VSS Aware ApplicationsFind a VSS Aware Applications<br />
<br />
C:\vssadmin list writersVibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-55503136366528030932011-01-25T17:28:00.000+08:002011-01-25T17:28:45.881+08:00XenServer - Resize LUNs for XenServer SRsResize LUNs for XenServer SRs<br />
<br />
1. Extend the LUN from the SAN<br />
2. # xe sr-list name-label=<sr_name></sr_name><br />
Note down the UUID of the SR<br />
3. # pvscan | grep <uuid></uuid><br />
Note down the device name, e.g. /dev/sdx<br />
4. # echo 1 > /sys/block/device/device/rescan<br />
e.g. echo 1 > /sys/block/sdx/device/rescan<br />
5. # pvresize <device_name></device_name><br />
e.g. pvresize /dev/sdx<br />
6. # xe sr-scan <sr_uuid></sr_uuid><br />
7. Verify from XenCenter or using command line that the new size is displayed.<br />
e.g. pvscan | grep <sr_uuid><br />
</sr_uuid>Vibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-34598265158266863212011-01-25T17:21:00.003+08:002011-01-25T17:21:33.127+08:00XenServer - Initiate Kernel CrashInitiate Kernel Crash<br />
<br />
# echo c > /proc/sysrq-triggerVibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-35576300653459940452011-01-25T17:20:00.002+08:002011-01-25T17:20:27.692+08:00XenServer - Crash Guest VMCrash Guest VM<br />
<br />
# list_domain<br />
# /usr/lib/xen/bin/crash_guest domidVibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0tag:blogger.com,1999:blog-6583307431989342944.post-475840514333822002011-01-25T17:19:00.002+08:002011-01-25T17:19:49.811+08:00XenServer - Destroy Hung VMDestroy Hung VM<br />
<br />
# list_domain<br />
# /opt/xensource/debug/xenops destroy_domain -domidVibranze.Tehhttp://www.blogger.com/profile/05033716883256631810noreply@blogger.com0