{"id":2968,"date":"2018-09-02T19:14:13","date_gmt":"2018-09-02T17:14:13","guid":{"rendered":"https:\/\/www.mariotti.de\/?p=2968"},"modified":"2018-09-02T19:14:13","modified_gmt":"2018-09-02T17:14:13","slug":"citrix-provisioning-services-zielsysteme-in-hyper-v-vms-ohne-scvmm","status":"publish","type":"post","link":"https:\/\/dev.mariotti.de\/?p=2968","title":{"rendered":"Citrix Provisioning Services Zielsysteme in Hyper-V VMs ohne SCVMM"},"content":{"rendered":"<p>Die Verwendung vom Microsoft Hyper-V VMs f\u00fcr die Citrix Provisioning Services Zielsysteme gestaltet sich etwas schwierig, da es unter Hyper-V die Problematik der sogenannten Syntetic Netzwerkkarte gibt die eine GUID \u00a0hat die an jeder Hyper-V VM anders ist, f\u00fcr die Citrix Provisioning Services aber an allen Systemen gleich sein muss.<\/p>\n<p>Innerhalb der Citrix Provisioning Service Dokumentation findet man deshalb den Hinweis, dass Hyper-V nur unterst\u00fctzt wird, wenn die VMs mittels des XenDesktop Setup Wizard\u00a0innerhalb der Provisiong Services Konsole erstellt werden, denn dann sorgt dieser Wizard f\u00fcr eine einheitliche GUID. Original Zitat: \u201eXenDesktop Setup Wizard\u00a0is the only Citrix supported method of creating Hyper-V Gen2 VMs\u201d. Der Provisioning Services XenDesktop Setup Wizard\u00a0setzt jedoch voraus, dass man System Center Virtual Machine Manager (<span style=\"display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: Georgia,'Times New Roman','Bitstream Charter',Times,serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;\">SCVMM<\/span>) zum Verwalten von Hyper-V verwendet. Hat mein kein SCVMM f\u00fcr sein Hyper-V sondern m\u00f6chte ein einzelnes Hyper-V System verwenden (z.B. f\u00fcr eine Demo oder Testumgebung), dann gibt es anderweitige M\u00f6glichkeiten dies zu bewerkstelligen, wenn auch nicht offiziell von Citrix supported.<\/p>\n<p>Von Citrix gibt es diesbez\u00fcglich den KB Artikel <a href=\"https:\/\/support.citrix.com\/article\/CTX216823\">https:\/\/support.citrix.com\/article\/CTX216823<\/a> der das Vorgehen meiner Meinung nach nur sehr d\u00fcrftig erkl\u00e4rt, ich habe einige Anl\u00e4ufe ben\u00f6tigt bis es funktioniert hat, aus diesem Grund m\u00f6chte ich nun mit diese Schritt f\u00fcr Schritt Anleitung aufzeigen, wie es genau geht.<\/p>\n<p>Als erstes starten wir mit der\u00a0Erstellung einer Hyper-V VM vom Type \u201eGeneration 2\u201c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2970\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step1.jpg\" alt=\"\" width=\"1408\" height=\"1076\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step1.jpg 1408w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step1-300x229.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step1-1024x783.jpg 1024w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<p>Speicher und Festplatte w\u00e4hlt man nach Belieben, das Netzwerk konfiguriert man vorerst nicht, und bzgl. Betriebssystem w\u00e4hlt man \u201eBetriebssysteminstallation zu einem sp\u00e4teren Zeitpunkt\u201c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2971\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step2.jpg\" alt=\"\" width=\"1408\" height=\"1076\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step2.jpg 1408w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step2-300x229.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step2-1024x783.jpg 1024w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/p>\n<p>Nachdem man die VM erstellt hat muss man nun f\u00fcr die einheitliche GUID der Netzwerkkarte der VM sorgen, hierzu findet man auf dem Provisioning Services Server das PowerShell Skript &#8222;C:\\ProgramData\\Citrix\\Provisioning Services\\PvsGen2.cr\\pvsgen2.ps1&#8220;<br \/>\nDieses Script muss man auf das Hyper-V System kopieren, in Zeile 2 muss man den Namen seiner VM eintragen, und danach f\u00fchrt man das Skript aus. Das Skript f\u00fcgt der VM nun eine Netzwerkkarte hinzu mit der GUID {c40165e3-3bce-43f6-81ec-8733731ddcba}.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2972\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step3.jpg\" alt=\"\" width=\"2248\" height=\"1842\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step3.jpg 2248w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step3-300x246.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step3-1024x839.jpg 1024w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step3-2000x1639.jpg 2000w\" sizes=\"auto, (max-width: 2248px) 100vw, 2248px\" \/><\/p>\n<p>Nun wechselt man in die Hyper-V Verwaltungskonsole und die Einstellungen der VM zu bearbeiten. Die erste Netzwerkkarte mit dem Namen \u201eNetzwerkkarte\u201c wird gel\u00f6scht, da nur die neue durch das Skript angelegte Netzwerkkarte mit dem Namen \u201ePVS Streaming Adapter\u201c ben\u00f6tigt wird.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2973\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step4.jpg\" alt=\"\" width=\"1444\" height=\"1374\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step4.jpg 1444w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step4-300x285.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step4-1024x974.jpg 1024w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/p>\n<p>Nun konfiguriert man die \u201ePVS Streaming Adapter\u201c Netzwerkkarte, man f\u00fcgt ihr das ge\u00fcnschte Netzwerk mittels Virtuellen Switch hinzu, und optional empfehle ich auch die Vergabe einer statischen MAC Adresse statt der automatisch generierten.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2974\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step5.jpg\" alt=\"\" width=\"1444\" height=\"1374\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step5.jpg 1444w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step5-300x285.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step5-1024x974.jpg 1024w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2975\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step6.jpg\" alt=\"\" width=\"1444\" height=\"1374\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step6.jpg 1444w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step6-300x285.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step6-1024x974.jpg 1024w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/p>\n<p>Da Hyper-V Gen 2 VMs per Default Secure Boot aktiv haben, dies von den Provisioning Services aber nicht unterst\u00fctzt wird, ist dies zu deaktivieren.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2976\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step7.jpg\" alt=\"\" width=\"1444\" height=\"1374\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step7.jpg 1444w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step7-300x285.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step7-1024x974.jpg 1024w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/p>\n<p>In den Firmware Einstellungen der VM sorgen wir f\u00fcr den PXE Boot noch daf\u00fcr, dass in der Startreihenfolge die Netzwerkkarte vor der Festplatte ist.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2977\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step8.jpg\" alt=\"\" width=\"1444\" height=\"1374\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step8.jpg 1444w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step8-300x285.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step8-1024x974.jpg 1024w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/p>\n<p>Nun ist die VM H\u00fclle fertig konfiguriert. Wenn es sich um die erste VM handelt die als Golden Master System verwendet werden soll, kann nun mit der Installation des Betriebssystems begonnen werden. Handelt es sich um VM 2-n die als Zielsystem dient, sind keine weiteren Schritte an der VM n\u00f6tig.<\/p>\n<p>Wichtig: Bitte darauf achten, dass sowohl die VM f\u00fcr das Goldem Master System, als auch VM 2-n f\u00fcr die weiteren Zielsystem so wie hier beschrieben erstellt wird, alle brauchen die gleiche GUID. Ohne identische GUID wird es beim Booten mittels PVS zu einem Bluescreen kommen.<\/p>\n<p>Da Hyper-V bei VMs vom Typ &#8222;Generation 2&#8220; kein BIOS sondern UEFI verwenden sind am Provisioning Server daf\u00fcr einige zus\u00e4tzliche Konfigurationsschritte n\u00f6tig. Es muss daf\u00fcr gesorgt werden, dass in den DHCP Optionen zus\u00e4tzlich die DHCP Option 11 RLP Server oder DHCP Option 17 Root Path gesetzt wird. Au\u00dferdem muss noch daf\u00fcr gesorgt werden, dass als Bootfile nicht mehr ardbp32.bin sondern pvsnbpx32.efi\u00a0 bzw. pvsnbpx64.efi verwendet wird. Dies kann man entweder direkt \u00fcber die DHCP Option 67 Bootfile Name machen, oder \u00fcber das BOOTPTAB Hilfsprogramm auf dem Provisioning Server. Weiterf\u00fchrende Informationen hierzu findet man unter <a href=\"https:\/\/docs.citrix.com\/en-us\/provisioning\/current-release\/configure\/configure-uefi\">https:\/\/docs.citrix.com\/en-us\/provisioning\/current-release\/configure\/configure-uefi<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2978\" src=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step9.jpg\" alt=\"\" width=\"1576\" height=\"350\" srcset=\"https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step9.jpg 1576w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step9-300x67.jpg 300w, https:\/\/dev.mariotti.de\/wp-content\/uploads\/2018\/09\/Citrix-PVS-HyperV-VMs-ohne-SCVMM-Step9-1024x227.jpg 1024w\" sizes=\"auto, (max-width: 1576px) 100vw, 1576px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Zum Abschluss noch ein Hinweis zur Version, dieser Artikel entstand auf Basis Citrix Provisioing Services 7.15 LTSR CU2 und Hyper-V auf Windows 10 1803.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Die Verwendung vom Hyper-V VMs als Zielsysteme f\u00fcr die Citrix Provisioning Services gestaltet sich etwas schwierig, da es die Problematik der sogenannten Syntetic Netzwerkkarte gibt die eine GUID  hat die an jeder Hyper-V VM anders ist, f\u00fcr die Citrix Provisioning Services aber an allen Systemen gleich sein muss. Die offizielle L\u00f6sung diese Problematik geht \u00fcber SCVMM, steht dieser jedoch nicht zur Verf\u00fcgung gibt es eine Notl\u00f6sung auf die ich in diesem Artikel n\u00e4her eingehe.<\/p>\n","protected":false},"author":2,"featured_media":2347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-2968","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-citrix"],"_links":{"self":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/2968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2968"}],"version-history":[{"count":0,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/posts\/2968\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=\/wp\/v2\/media\/2347"}],"wp:attachment":[{"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.mariotti.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}