{"id":64,"date":"2020-04-28T23:24:52","date_gmt":"2020-04-28T21:24:52","guid":{"rendered":"http:\/\/my-virt.alfadir.net\/?p=64"},"modified":"2021-01-22T00:55:34","modified_gmt":"2021-01-21T22:55:34","slug":"running-vmware-unified-access-gateway-on-hyper-v","status":"publish","type":"post","link":"https:\/\/my-virt.alfadir.net\/index.php\/2020\/04\/28\/running-vmware-unified-access-gateway-on-hyper-v\/","title":{"rendered":"Running VMware Unified Access Gateway on Hyper-V"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>Ok okkkkkk, I know that could be weird at first sight but I had a request from a customer to assist in the deployment of UAG 3.9 on Hyper-V in a &#8220;Dual DMZ&#8221; configuration.<\/p>\n\n\n\n<p>The Back End  UAG is deployed on vSphere but the the front-end should run on the DMZ hypervisors who are&#8230;. Windows 2019 Core \/ Hyper-V<\/p>\n\n\n\n<p>So when we look at the files required to perform this installation we need to download 2 files :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Unifed Access Gateway (UAG) 3.9 PowerShell scripts to get all scripts to deploy the appliance<\/li><li>Unifed Access Gateway (UAG) 3.9 for Microsoft Azure to have .vhd file so Hyper-V disk format file. <\/li><\/ul>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1399\" height=\"294\" src=\"http:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2020\/04\/image-20.png\" alt=\"\" class=\"wp-image-65\"\/><\/figure>\n\n\n\n<!--nextpage-->\n\n\n\n<p>Trying to deploy the .vhd with the script will failed,so the first thing to do is to convert the the .vhd to .vhdx using PowerShell :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"840\" height=\"292\" src=\"http:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2020\/04\/image-21.png\" alt=\"\" class=\"wp-image-66\"\/><\/figure>\n\n\n\n<p>And now we can edit the .ini file to deploy the Appliance as a Reverse Proxy for Horizon :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;General]\n#\n# UAG virtual appliance unique name (between 1 and 32 characters).\n# If name is not specified, the script will prompt for it.\n#\nname=MyUAG\n#\n# Full path filename of the UAG Hyper-V .vhdx virtual machine image\n# The file can be obtained from VMware\n#\nsource=C:\\UAGs\\euc-unified-access-gateway-3.9.0.0-15751318_OVF10.vhdx\n#\n# Hyper-V datastore folder\n#\nds=E:\\Hyper-V\\Virtual Hard Disks\n#\n# Hyper-V Network names.\n#\nnetInternet=DMZ\nnetManagementNetwork=Internal\nnetBackendNetwork=Internal\n\ndns=172.34.56.10\ndefaultGateway=172.34.56.254\ndeploymentOption=twonic\n\nip0=172.34.56.78\nnetmask0=255.255.255.0\n\nip1=192.168.56.78\nnetmask1=255.255.255.0\n#\n# vSphere Network names. For pre 3.3 UAG versions, a vSphere Network Protocol Profile (NPP) must be associated with every referenced network name. This specifies\n# network settings such as IPv4 subnet mask, gateway etc. UAG 3.3 and newer no longer uses NPPs and so for static IPv4 addresses a netmask0, netmask1 and netmask2\n# value must be specified for each NIC. Normally a defaultGateway setting is also required.\n#\n\nhonorCipherOrder=true\n\n&#91;WebReverseProxy1]\ninstanceId=Horizon-WRP\nproxyDestinationUrl=https:\/\/&lt;IP or FQDN of Back End UAG\/LTM&gt;\nproxyDestinationUrlThumbprints=sha1=4dcbd70edd4be8e4g1ac4b60b3c790603c8881c8\nproxyPattern=(\/broker\/xml(.*)|\/xmlapi(.*)|\/ice\/(.*)|\/r\/(.*)|\/portal(.*)|\/)<\/code><\/pre>\n\n\n\n<p>Once edited for our environment we can launch the deployment :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"823\" height=\"589\" src=\"http:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2020\/04\/image-22.png\" alt=\"\" class=\"wp-image-67\"\/><\/figure>\n\n\n\n<p>And check at the end that everything&#8217;s ok :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"729\" height=\"188\" src=\"http:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2020\/04\/image-23.png\" alt=\"\" class=\"wp-image-68\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok okkkkkk, I know that could be weird at first sight but I had a request from a customer to assist in the deployment of UAG&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-unified-access-gateway"],"_links":{"self":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":3,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}