Citrix Provisioning Services (PVS) is a great way for running your virtual desktop infrastructure (VDI). In my recent blog here I showed you how to setup Citrix Provisioning Services 7.8.
Using Windows 2012 R2 as a VDI platform, you can easily give like 90% of your workers a full-functional desktop or Workspace. And because the concept is Server Based Computing (SBC or Shared Desktop), you can provision multiple full-functional desktops using just one Windows 2012 R2 server. Off course having just one Windows 2012 R2 Server is not ideal, but you get what I’m aiming at. In the end it is all about managing resources and being high-available.
In this blog I will show you how to create a Windows 2012 R2Ã‚Â target device running from Citrix Provisioning Services. I will then use this target device disk (vDisk) as a template (golden image) to create multiple target devices running from the same vDisk in another post using Citrix XenDesktop 7.8. For now letÃ¢â‚¬â„¢s focus on creating the Windows 2012 R2Ã‚Â Target Device vDisk.
In this post I will show you how to:
- Create a Windows 2012 R2Ã‚Â Target Device vDisk
- Configure aÃ‚Â Target Device to use said vDisk and boot from PVS
My lab setup:
- Windows 2012 R2 server withÃ‚Â Citrix Provisioning Services 7.8 installed (pvs01.vikash.nl)
- Local domain (vikash.nl)
- Domain controller (dc01.vikash.nl)
- Hypervisor Hyper-V 2012 R2
- Windows 2012 R2Ã‚Â ServerÃ‚Â with latest updates
- All servers and desktops are running as virtual machines
- DHCP running on my router
- Citrix Provisioning Services Boot Disk (blogÃ‚Â here)
Make sure that the virtual machine configured in Hyper-V for Windows 2012 R2Ã‚Â PVS target is setup asÃ‚Â Gen 1Ã‚Â (generation 1) virtual machine, and that the network card is aÃ‚Â Legacy network adapter. Otherwise the virtual machine will not be able to boot using PVS. Sources tell me that the next version of Citix Provisioning Services will be able to work withÃ‚Â Gen 2Ã‚Â (generation 2) virtual machines in Hyper-V.
Target Device Installation
So let’s start by installing the Citrix Provisioning Services components in my Windows 2012 R2 virtual machine. Mount the Citrix Provisioning Services ISO using Hyper-V management console.
Start theÃ‚Â autorun.
ChooseÃ‚Â Target Device Installation.
Click again onÃ‚Â Target Device Installation.
Click onÃ‚Â Install to install the required components.
Click onÃ‚Â Next to start the installation.
Accept the License Agreement and click onÃ‚Â Next.
Enter your customer information and click onÃ‚Â Next.
Select theÃ‚Â Destination FolderÃ‚Â for installation and click onÃ‚Â Next.
Click onÃ‚Â Install to complete the installation.
After the installation has completed, make sure to check theÃ‚Â Launch Imaging Wizard box (if it is not checked automatically). Click onÃ‚Â Finish.
You are now presented with a welcome window. Click onÃ‚Â Next.
Enter the name of the PVS server. Make sure you have the right port and use the correct credentials for the PVS server. This can be a domain admin account, provided that they have admin rights on the PVS server. Because I am on my homelab I used my Administrator account. In my case I am using the IP-adress from my PVS server. If you are using a hostname, make sure it always resolves to the PVS server.
SelectÃ‚Â Create a vDisk and click onÃ‚Â Next.
The Provisioning Services Imaging Wizard will create a new Target Device on the PVS server. Choose the correct Device Collection name. I my case I made a separate device collection for Windows 2012 R2 Target Devices. Click onÃ‚Â Next.
Specify the vDisk name and click onÃ‚Â Next.
Select the appropriate Windows Activation method for you. Click onÃ‚Â Next
Choose to image the entire boot disk, and click onÃ‚Â Next.
Select the option toÃ‚Â OptimizeÃ‚Â the hard diskÃ‚Â and then click onÃ‚Â Next. You can adjust the options according to your needs, I choose the defaults because I my experience that is fine.
You will be presented with a summary screen. Check that everything is entered correctly and then clickÃ‚Â Create.
The wizard will create the vDisk and the target device on the PVS server, after optimising the virtual machine. It needs to restart the virtual machine to start the imaging process. Click onÃ‚Â Continue.
Now you will be asked to reboot the device. If you chooseÃ‚Â YesÃ‚Â the Imaging Wizard will restart the virtual machine. At this point you have to make sure that the virtual machine will boot from network or theÃ‚Â PVS boot iso. If you chooseÃ‚Â NoÃ‚Â the virtual machine will be shut down. I chooseÃ‚Â No, so I could mount the PVS boot iso to the virtual machine. The Wizard will then shutdown the machine.
Click onÃ‚Â Yes to shutdown the virtual machine.
Change Boot Settings Target Machine
Go to theÃ‚Â Settings of the virtual machine. In my case that is the Hyper-V management console.
Make sure the virtual machineÃ‚Â boots from CD.
The make sure you mountÃ‚Â the PVS boot isoÃ‚Â to the virtual CD of the virtual machine. Click onÃ‚Â OK.
No start the virtual machine and logon to let the Imaging Wizard continue.
The Imaging Wizard will automatically continue.
Click onÃ‚Â Done when the Wizard finishes.
Now go to your PVS console, select the Target Device properties.
We can now boot the Target Device using our newly created vDisk. But before we do so we have to set it to boot from vDisk. Click then onÃ‚Â OK.
Restart the Windows 2012 R2 Target Device and you will see that it boots now using the PVS server and the vDisk.
Now let’s check the status of the vDisk after logging in.
We can see that we are now using the vDisk.
Note that the vDisk is inÃ‚Â Read/Write mode. This is because the Access Mode of theÃ‚Â vDisk is Private. This is default after creating a vDisk. Adjust this before starting to provisionÃ‚Â multiple target devices using the same vDisk.
This concludes this tutorial. Feel free to contact me of you have any questions or comments.
You can also follow me on twitter or add the rss feed from the blog and you will be notified when I add new posts.Creating a Windows 2012 R2 Target Device with Citrix Provisioning Services 7.8 Read More