top of page

Run a Virtual Desktop streamed with PVS on Citrix Hypervisor nested in VMware ESXi.

  • Foto van schrijver: Edwin de Bruin
    Edwin de Bruin
  • 29 jul 2022
  • 6 minuten om te lezen

Bijgewerkt op: 10 jan

Let’s play around with the Citrix Hypervisor and Citrix Provisioning Services.


It’s been a while since I used Citrix Hypervisor in a production or even in my lab environment so let’s see if we can still run this nested on a VMware ESXi 7 host and stream a virtual desktop on it😊

ree

I tried log all my steps and create screenshots.. Remark that I all ready had a running Citrix environment in place (Delivery Controller, License server, Provisioning Server(s), Storefront, ADC etc.)


At this moment the latest version is Citrix Hypervisor 8.2 LTSR Premium Edition with Cumulative Update 1 - Citrix and this is the LTSR edition this is the latest version.. I suspect Citrix is not putting much development effort in this… but looking at the support date this hypervisor maybe still a valid option to use as a hypervisor for XenDesktop or XenApp workloads. (especially with the PVS accelerator). Remember this hypervisor is included within your Citrix licensing.

ree

And despite some comments I hear now and then... its not dead yet, don't know for how long but..still support!

ree

Keep in mind tough that currently there is no vTPM support. Citrix commented they are developing this.. but hmm. Could be tricky when planning to move to Windows 11. Not a problem in this case just sticking with Windows 10 for now.


Anyway let the play commence:


First create a DNS (and PTR) record for your new host:

ree

Now let’s switch to VMware and create a new VM


I did not create screenshots of these steps but if this step is already a problem please stop anyway 😉


The first interesting choice is the Guest OS.


The dom0 is based on CentOS 7.5 with some modifications but the Kernel is based on Linux 4.x so I decided to go with this one.

ree
ree

My Virtual Hardware settings:

ree

Notes here:


CPU: Enable the Hardware Virtualization and the Performance Counters

Harddisk: 46 GB minimum 70 GB recommended so let’s go with that (might be tight!)

SCSI controller: VMware Paravirtual is supported OOB! (at first is used the LSI Logic SAS but hey this is even better I guess)

NIC: VMXNET3 same as SCSI controller… works OOB !(so I switched to this instead of the E1000 I initially used). I created a trunk Distributed Port Group in vSphere for my nested VSAN lab so decided use this one and tag the VLANs in the hypervisor itself.


When done.. start the VM attach the Citrix Hypervisor ISO and lets start installing!

ree
ree
ree
ree
ree

I enable “thin provisioning”.. its only Writecache and one VM to build the PVS Image

ree
ree

Yeah… no…… skip the verification this is only a lab..

ree
ree

I used a trunk port so I need to tag the VLAN

ree
ree
ree
ree
ree
ree
ree

Let’s install the PVS Accelerator supplemental pack right away when this supplemental packs question comes along: (you can do this later from the console if you wish to but in these notes I do it right here)

ree

Mount the ISO to the VM:

ree
ree

I still believe! Skip verification!

ree
ree
ree
ree
ree

Server will reboot now

Just wait a couple of sec

ree

Yeah it runs!

ree

Install XenCenter on your management server or local workstation and start it up:

ree

Because it’s just my lab I choose not to require a master password

ree

Disable the show this dialog…(once again only lab)

ree

Hm, Alert showing: Citrix HyperVisor 8.2 CU1 has reached End of Life for Express Customers...

ree

This alert is interesting… this is the latest version but reached EOL? O wait for the express customers.. I still got the feeling Citrix is dying this off… So you need to be licensed. Ok! I do have a valid Citrix License server with some demo premium licenses so let’s configure that.

ree
ree
ree

Now let’s configure the networking, not going to stream PVS targets over my management network…

ree

Choose External Network

ree

Enter a name you believe in:

ree

Enter the correct VLAN ID

ree

And there it is:

ree

Enable the PVS-Accelerator:

ree
ree

I just want the power of memory! O wait "Not enough Control domain memory" .. hm. Hit Cancel:

ree

Switch to the Memory tab. Ah yeah its only 1,8 GB in size… click on the Control Domain memory:

ree

To adjust the host needs to be in maintenance mode. Click on “Enter maintenance mode”

ree

Now adjust the memory

ree

I’m changing to 12GB

ree
ree

When done rebooting, exit the maintenance mode and repeat the PVS Accelerator configuration.

ree

When done and you switch to the Object view in XenCenter and open the Virtual Disks there is the PVS Cache disk (who will live only in memory because of the choice of “only memory”

ree

Create the Hypervisor connection in PVS:


Right click on Hosts and click “add host”

ree
ree
ree
ree
ree
ree

Click verify to .. well.. verify the connection

ree
ree

Build PVS Image:


Create a new VM to start the building of a new PVS image:

ree
ree
ree

Install Media: Choose the installation media.. multiple ways here.. I attached a litetouch.iso to the VM in VSphere so can install Windows 10 from MDT. Of course alternatively you can also attach an OS ISO…

BIOS: I had to go with BIOS. Whatever I tried I couldn’t get UEFI to work.. when booting it just get stuck in TianoCore Splash.. maybe I will figure this one out later..

ree
ree
ree
ree
ree

Delete all networks except the VDI network..

ree
ree

Start the VM:


ree

Now Install windows 10

Important: Install the Windows OS with a different system name than the name its getting in PVS later on!


Taking forever

· Took a a walk with the dog in a forest nearby..

· Picked up my daughter at the local theatre..

· Cleaned up the pool and checked the PH and chlorine..

· Empty the dishwasher..

ree

Well, eventually it gets done!

Login when ready!


First install management tools (XenTools or Citrix VM Tools.. all the same) I downloaded this to a temp shared folder.

ree
ree
ree
ree

Disallow automatic management agent updates:

ree
ree
ree
ree

Reboot and reconnect again, ah the tools are working it will prompt for RDP connection now:

ree

Next step is to install PVS Device Target software:

ree
ree
ree
ree
ree
ree
ree
ree
ree

Reboot the VM

Install the Citrix VDA now:

ree
ree
ree
ree
ree
ree

Enter your Citrix Delivery Controller

ree

Click Test Connection to verify connection and click ADD:

ree
ree
ree
ree
ree
ree
ree
ree
ree

Reboot, login again


I will do a quick image optimization with the Citrix Optimizer.. Enough for now but in my experience this is not enough for production environments!

ree
ree
ree
ree

Always defragment the drive:

ree

Shutdown the VM.

Double Check the boot order of the VM, Hard disk needs to be first in this step:

ree

In my LAB I don’t use PXE boot or BDM for PVS but the ISO way:

You can’t upload the ISO to a datastore as I’m used to in vSphere. You need to add an ISO Storage Repository. Multiple options but I choose the Windows File Sharing way:

ree
ree
ree
ree

Attach a PVSboot ISO to the BUILD VM

ree

Startup the build VM, login and start the “Imaging Wizard”

ree
ree
ree
ree

Now I will enter the name system name it will get in PVS:

ree
ree
ree
ree

Disable the Recovery partition

ree

I’d like some more free space so I edit the partition size

ree
ree
ree
ree
ree

When the VM is shutdown, edit the boot order again:

ree

Start the VM again, it will now boot from the PVS boot ISO:

ree
ree

Login to OS so the capture can begin:

ree

And the capture is done! Shutdown the VM

ree

Now we need a template to create the PVS target. Ill show you one way to do this.. maybe a litte dirty way…but I need a template with a formatted Writecache disk (not using BISF here..)


ree
ree
ree

It will create the template VM now. When done we need to add a writecache disk now. click the VM and go to the Storage tab and click "add"

ree
ree
ree
ree

Start and login to the template VM

ree
ree

Initialize and format the disk

ree
ree
ree
ree
ree
ree
ree

When done shut down the VM..

Edit the template and detach the CTXHVBUILD disk

ree

Edit the boot order once again so the DVD-Drive is first again

ree

Now convert to Template

ree

Switch back to PVS:


Right click the Vdisk you created earlier and change the Access mode to Standard Image and the WriteCache to RAM with overflow to disk

ree
ree
ree
ree

Let’s create the Device collection now and following I will use the streamed VM setup wizard. Of course you can choose the Citrix Virtual Desktop Setup Wizard to also create the necessary Machine Catalog and Delivery Group from one wizard… I'm doing it the classic way... creating a two step rocket.

ree
ree
ree
ree
ree
ree
ree
ree

Of course enable the PVS Accelerator

ree
ree
ree
ree
ree

Hm.. getting "An unexpected MAPI error occurred" and in the details " The address specified is already in use by an existing PVS_server object ) when creating the PVS targets..

ree

To fix this, remove the current Network interface from the template and re add one.

ree
ree
ree

Restart the Streamed VM setup wizard again, now it is successfully!

ree

Yes, here they are in XenCenter and the PVS Accelerator is enabled.


ree

Now let’s start these bad boys so they can boot in the background!


Meanwhile go to Citrix Studio

Add Hosting so the Delivery Controller can talk to the Citrix Hypervisor:

ree
ree
ree
ree
ree
ree
ree
ree

Create the Machine Catalog:

ree
ree
ree
ree
ree
ree
ree

Lets check if the machines did register themselves:

ree

Looking good 😊

ree

Create Delivery Group so we can actually login to these desktops:

ree
ree
ree

Cause this is my LAB I let any authenticated user see the desktop..

ree
ree
ree
ree
ree

The final step… lets login!


Login to StoreFront, there is the desktop.


ree

And we have a session!

ree

Performance is quite all right for a Streamed desktop on a nested Citrix Hypervisor within VMware ESXi 7 host!.. (won't recommend it for production tough)

ree

Well quite a long one (mainly to all the screenshots)


Conclusion so far: This works quite allright, Citrix Hypervisor still great to use for your desktop workloads.. and once again its included in your Citrix license.


Hope you think this was fun! (at least I did!)


Question or remarks? please let me know!
















































 
 
 

Opmerkingen


Post: Blog2_Post
bottom of page