{"id":162,"date":"2015-12-04T15:07:06","date_gmt":"2015-12-04T15:07:06","guid":{"rendered":"http:\/\/michaelstoica.com\/?p=162"},"modified":"2015-12-04T15:07:06","modified_gmt":"2015-12-04T15:07:06","slug":"how-to-create-a-windows-server-2016-nano-server-image","status":"publish","type":"post","link":"https:\/\/michaelstoica.com\/site\/how-to-create-a-windows-server-2016-nano-server-image\/","title":{"rendered":"How to create a Windows Server 2016 Nano Server image"},"content":{"rendered":"<p>Microsoft released two weeks ago Windows Server Technical Preview 4 which includes some new features. If you download the ISO with Windows Server 2016 and mount it you will see inside it a folder called Nano Server. Here you&#8217;ll find the NanoServer.wim file, Powershell Scripts and a folder called Packages where you can find the features, roles and drivers available\u00a0for Nano Server. All these will be used for creating a Nano Server image.<\/p>\n<p>I&#8217;ve created a folder called NanoServer where I&#8217;ve copied \u00a0everything that was inside the NanoServer folder from the\u00a0Windows Server 2016 TPV4 ISO. In my NanoServer \u00a0folder I&#8217;ve created a Base folder, since after the first image is created, this folder will be populated with files from Windows Server 2016\u00a0ISO NanoServer folder.<\/p>\n<p>In order to create the Nano Server VHD file, you have to go to the location where the scripts are and also import the the Powershell module before running the New-NanoServerImage command:<\/p>\n<p><i>Import-Module .\\NanoServerImageGenerator.psm1<\/i><\/p>\n<p><em>New-NanoServerImage -MediaPath D:\\ -BasePath &#8216;C:\\NanoServer\\Base&#8217; -TargetPath &#8216;C:\\NanoServer\\Nano01.vhdx&#8217; -GuestDrivers -ComputerName &#8216;Nano01&#8217; -DomainName &#8216;test.ro&#8217; -EnableRemoteManagementPort<\/em><\/p>\n<p><em><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-164\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano1.png\" alt=\"nano1\" width=\"869\" height=\"639\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano1.png 869w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano1-300x221.png 300w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/a><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-165\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano4.png\" alt=\"nano4\" width=\"869\" height=\"638\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano4.png 869w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano4-300x220.png 300w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/p>\n<p>After the image is VHD is created you can create a VM from Hyper-V and open\u00a0the console or you can use Powershell Remoting or Powershell Direct, if you are using Windows Server 2016. Remember that for Nano server there is no Remote Desktop option, the screen looks quite similar with ESXi console, for those familiar with VMware.<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-168\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano2.png\" alt=\"nano2\" width=\"1032\" height=\"844\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano2.png 1032w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano2-300x245.png 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano2-1024x837.png 1024w\" sizes=\"auto, (max-width: 1032px) 100vw, 1032px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-169\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano3.png\" alt=\"nano3\" width=\"1033\" height=\"851\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano3.png 1033w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano3-300x247.png 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano3-1024x844.png 1024w\" sizes=\"auto, (max-width: 1033px) 100vw, 1033px\" \/><\/a><\/p>\n<p>If you have network access to the vm you can use Powershell Remoting:<\/p>\n<p><em>Enter-Pssesion -ComputerName Nano1 -Credential test\\administrator<\/em><\/p>\n<p>If you want the\u00a0\u00a0VHD \u00a0that you create can be customized by adding other roles\/features such as\u00a0Hyper-V, Failover Cluster, Container Host etc (check the list from Packages).<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-171\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano5.png\" alt=\"nano5\" width=\"841\" height=\"402\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano5.png 841w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano5-300x143.png 300w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-173\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano6.png\" alt=\"nano6\" width=\"863\" height=\"848\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano6.png 863w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/12\/nano6-300x295.png 300w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/a><\/p>\n<p>If you want you can also try Nano Server in Microsoft Azure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft released two weeks ago Windows Server Technical Preview 4 which includes some new features. If you download the ISO with Windows Server 2016 and&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/michaelstoica.com\/site\/how-to-create-a-windows-server-2016-nano-server-image\/\">Continue reading<span class=\"screen-reader-text\">How to create a Windows Server 2016 Nano Server image<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-general","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p63Lge-2C","_links":{"self":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":7,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/162\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}