Creating a Windows 2012 R2 Target Device with Citrix Provisioning Services 7.8
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