Answered by:
How to install Nano Server

Question
-
Hi,
To install a Nano Server, I have gone through following steps:
Download scripts; Convert-WindowsImage.ps1 from https://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f and New-NanoServerVHD.ps1 from https://gallery.technet.microsoft.com/scriptcenter/Create-a-New-Nano-Server-61f674f1.
Two folders created in drive C: nanoserver and Nano.
Open Notepad for creating a powershell script as following:
cd c:\nanoserver
.\New-NanoServerVHD.ps1"
-ServerISO “C:\nanoserver\WinSrvr2016.ISO”
-DestVHD “C:\Nano\Nano01.vhdx”
-VHDFormat VHDX
-ComputerName “NANO01”
-AdministratorPassword “Admin@123”
-Packages "Storage","OEM-Drivers","Guest"
-IPAddress "192.168.1.65",
-Verbose
Save as the notepad file with an extension .ps1, say, create.ps1
I put Convert-WindowsImage.ps1, NanoServerVHD.ps1, create.ps1 and WinSrvr2016.iso file in c:\nanoserver
Open nanoserver folder. Right-click create.ps1, edit.
PS C:\nanoserver> set-executionpolicy unrestricted
Click Yes
Click Run Script
Output is like
At E:\nanoserver\create.ps1:9 char:25
+ -IPAddress "192.168.1.65",
+ ~~
The string is missing the terminator: ".
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordExceptio
n
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
Please let me know,
How to fix it?
Is this script correct?
Regards
InTech
- Edited by GN.InTech Saturday, August 12, 2017 7:03 PM Appropriate name
Saturday, July 8, 2017 7:32 PM
Answers
-
Hi,
Can you check if you selected to boot from harddrive in VM settings? Can you check if you created vhd or vhdx? If it is vhd use Gen 1 VM.
The easiest way to create Nano server hard drive which you can attach to new VM is to copy/paste these commands and you will be ready to go in 5 min
Let's say that you have copied nano server folder to C:\
Set-ExecutionPolicy RemoteSigned Import-Module C:\NanoServer\NanoServerImageGenerator\NanoServerImageGenerator.psm1 New-NanoServerImage -Edition Datacenter -DeploymentType Guest -MediaPath C:\ -BasePath C:\<yourpath> -TargetPath C:\<target path\nanoservername.vhdx -ComputerName <nano servername>
------------------------------------------------------------------------------------------------------------
If you found this post helpful, please give it a "Helpful" vote.
Please remember to mark the replies as answers if they help.
- Edited by Nedim Mehic Thursday, July 13, 2017 1:21 PM
- Proposed as answer by Eve WangMicrosoft contingent staff Friday, August 11, 2017 4:35 AM
- Marked as answer by GN.InTech Saturday, August 12, 2017 7:04 PM
Thursday, July 13, 2017 1:19 PM -
Hi,
Full Windows Server 2016 Nano Server Step-by-Step in the following link
https://gallery.technet.microsoft.com/Deploy-Configure-and-bf0e8601
- Proposed as answer by Eve WangMicrosoft contingent staff Friday, August 11, 2017 4:35 AM
- Marked as answer by GN.InTech Saturday, August 12, 2017 7:04 PM
Saturday, July 22, 2017 8:17 PM
All replies
-
Hi,
You could use nano server image builder to install nano server or you could extract windows server 2016 iso and copy nano server folder and start from there. Check these links to see those 2 solutions
Nano server image builder -- you can create image for both physical and virtual
Manually
https://nedimmehic.org/2017/01/31/how-to-deploy-nano-server-as-a-virtual-machine/
------------------------------------------------------------------------------------------------------------
If you found this post helpful, please give it a "Helpful" vote.
Please remember to mark the replies as answers if they help.
- Edited by Nedim Mehic Saturday, July 8, 2017 7:38 PM
Saturday, July 8, 2017 7:37 PM -
This is the script I put together to create multiple Nano server images (copy the NanoServer folder to the root of C:\ and change the variables as needed):
#Define variables $NodesToCreate = 1 $MediaPath = "C:\" $HyperVPath = "C:\Hyper-V\" $PackageList = "Microsoft-NanoServer-DSC-Package","Microsoft-NanoServer-Defender-Package","Microsoft-NanoServer-Guest-Package" $ServerBaseName = "LAB-NANO-0" $AdministratorPassword = "P@ssword1!" | ConvertTo-SecureString -AsPlainText -Force #Import Nano Module Import-Module $MediaPath\NanoServer\NanoServerImageGenerator\NanoServerImageGenerator.psd1 #Create image For ($i=1; $i -le $NodesToCreate; $i++) { $ServerName = $ServerBaseName + $i $TargetPath = $HyperVPath + $ServerName + "\Virtual Hard Disks\Disk0.vhdx" $DomainBlobPath = $MediaPath + "\NanoServer\" + $ServerName + ".blob" New-NanoServerImage ` -DeploymentType Guest ` -MediaPath $MediaPath ` -TargetPath $TargetPath ` -MaxSize 10GB ` -Package $PackageList ` -Edition Standard ` -AdministratorPassword $AdministratorPassword ` -Compute -Clustering ` -DomainBlobPath $DomainBlobPath ` -Verbose }
Alternatively, here is a starting point to do it in one line:
1. Mount the Windows Server 2016 ISO image
2. Open an elevated PowerShell window
3. Import the NanoServerImageGenrator module from the NanoServerImageGenerator folder
4. Run New-NanoServerImage -MediaPath E:\ -TargetPath F:\Hyper-V\Nano1\Disk0.VHDX -MaxSize 10GB -DeploymentType Guest -Edition Standard -ComputerName LAB-NANO-O1
5. Enter a password for the Administrator account
- Edited by Dai Webb Sunday, July 9, 2017 8:50 AM
Sunday, July 9, 2017 8:47 AM -
Hi,
After successful creation of Nano server virtual machine image, a folder created that contains of text files
"bcdboot.exe-StandardError, bcdboot.exe-StandardOutput, Convert-WindowsImageTranscript,
DISM, DismLogs, NanoServerImageBuilder and NanoServerImageGenerator."
I added this virtual disk on Hyper-V. After turning on Nano Server Virtual Hard Disk, I see following error message.
"Boot failure. Reboot and Select proper Boot device or Insert Boot Media in selected Boot device."
Please let me know, how to fix it?
Regards
InTech
Wednesday, July 12, 2017 10:33 PM -
Hi,
Can you check if you selected to boot from harddrive in VM settings? Can you check if you created vhd or vhdx? If it is vhd use Gen 1 VM.
The easiest way to create Nano server hard drive which you can attach to new VM is to copy/paste these commands and you will be ready to go in 5 min
Let's say that you have copied nano server folder to C:\
Set-ExecutionPolicy RemoteSigned Import-Module C:\NanoServer\NanoServerImageGenerator\NanoServerImageGenerator.psm1 New-NanoServerImage -Edition Datacenter -DeploymentType Guest -MediaPath C:\ -BasePath C:\<yourpath> -TargetPath C:\<target path\nanoservername.vhdx -ComputerName <nano servername>
------------------------------------------------------------------------------------------------------------
If you found this post helpful, please give it a "Helpful" vote.
Please remember to mark the replies as answers if they help.
- Edited by Nedim Mehic Thursday, July 13, 2017 1:21 PM
- Proposed as answer by Eve WangMicrosoft contingent staff Friday, August 11, 2017 4:35 AM
- Marked as answer by GN.InTech Saturday, August 12, 2017 7:04 PM
Thursday, July 13, 2017 1:19 PM -
Hi,
Full Windows Server 2016 Nano Server Step-by-Step in the following link
https://gallery.technet.microsoft.com/Deploy-Configure-and-bf0e8601
- Proposed as answer by Eve WangMicrosoft contingent staff Friday, August 11, 2017 4:35 AM
- Marked as answer by GN.InTech Saturday, August 12, 2017 7:04 PM
Saturday, July 22, 2017 8:17 PM