Thenewtonlab

One cloud consultants building journey

Thenewtonlab

One cloud consultants building journey

Nano – drivers and drive setup

@Foxdeploy and I were chatting about my Nano/Lab setup and he asked me if I had any driver issues with my setup and Nano. The short answer is no…not with this build. But earlier builds (TP1 I think) I did have issues. Here’s how I dealt with that:

I dual boot (as stated in my previous post) to a FULL version of Windows Server 2016 – I consider that my “get out of jail” card just in case things don’t go as planned (as they sometimes do). With a full OS installed I can then use the Device Manager to clearly see what driver is not working properly. With my first build of Nano in the lab I had a NIC driver (ugh). In the early builds of Nano you had to use full OS and Device Manager to get the driver’s inf and other data to import the driver via dism:

dism\dism /Add-Driver /image:.\mountdir /driver: C:\Windows\System32\DriverStore\FileRepository\nic.inf_amd64_23224432324

Luckily that is not needed any longer 🙂 . To add “custom drivers” to a Nano build simply add the option “DriversPath” to the New-NanoServerImage command and point the option to the appropriate folder for the driver(s) you needed add.

As for setting up a dual boot – here’s the method I used:

I booted my system with Windows install media and at the “Windows Setup” screen press Shift+F10

Type diskpart and use the commands listed below
List disk ….and verify which disk you intend to install the OS onto (usually “0”…in the example below I only have a single disk)

  • Select disk 0


  • clean

  • create partition primary
  • format quick fs=ntfs label=boot
  • create vdisk file=c:\Win2016.vhd maximum=50000 type=expandable
  • attach vdisk
  • exit (to exit diskpart) then exit (to exit command prompt)
  • Now continue with Windows Setup and when prompted select “Custom: Install Windows only (advanced)”
  • The drive (vdisk) previously created is displayed – Click Next to install
  • Complete the install as normal

Now that the GUI OS is installed, the Nano VHDX can be added to the boot configuration:

  • Mount the Windows Server 2016 ISO and note the drive letter (in my case it was F:)

  • From an elevated PowerShell console run the following commands

[code language=”powershell”]
Import-Module f:\NanoServer\NanoServerImageGenerator -Verbose

New-NanoServerImage -Edition Standard -DeploymentType Host -MediaPath f:\ -BasePath D:\temp -TargetPath D:\Temp\Nano.vhd -ComputerName Nano -OEMDrivers -Compute
#Create an djoin file:
djoin.exe /provision /domain thenewtonlab.com /machine "Nano" /savefile c:\temp\objBlob
[/code]

The above command will prompt for an administrator password to assign to the new VHDx image

  • Copy the VHDX over to the server and place on the “Boot” partition created earlier

  • From an elevated command prompt create a new boot entry via BCDEDIT (the last command set the new entry as the default boot entry):

Bcdedit /copy {current}

Copy the GUID that is returned

bcdedit /set {GUID} device vhd=[c:]\NanoServer.vhd

bcdedit /set {GUID} osdevice vhd=[c:]\NanoServer.vhd

bcdedit /set {GUID} path \windows\system32\boot\winload.exe

bcdedit /default {GUID}

Next step in the process is to finalize the Nano configuration:

Logon as Administrator with the password assigned during the New-NanoServerImage command.

Configure the IP and firewall:

Enter administrator for user and the appropriate password:

Press Select Networking and press Enter

Press Enter to configure the NIC

Select F11 and then F4 to toggle DHCP off and then enter a static IP

Press Enter to save the configuration and then ESC back to the main menu

Next the server needs to added to the domain – within PowerShell run the following:

[code language=”powershell”]
$ip = "192.168.1.200"
Set-Item WSMan:\localhost\Client\TrustedHosts $ip
$user = “thenewtonlab\dan”
Enter-PSSession -ComputerName $ip -Credential $user
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=yes
$ifa = Get-NetAdapter -Name Ethernet
netsh interface ipv4 add dnsserver "Ethernet" address=192.168.1.20 index=1
[/code]

Copy the djoin blob file:

[code language=”powershell”]
#map drive
net use z: \\192.168.1.200\c$
copy c:\temp\objBlob z:\temp\objBlob
#reboot the server
shutdown /r /t 5
[/code]

We now have a dual boot system that is ready to host Hyper-v guests.  While the overall process might seem tedious, it is a process the is done very seldom (gratefully). I hope you find this information helpful.  Do you have a test lab?  How do you like to setup your lab?  I’d love to hear how others are working these issues out.

Regards and happy labbing,

D

52 thoughts on “Nano – drivers and drive setup

  1. Finding a gaming platform that quietly pays out without hidden conditions was such a relief. I joined last month and already received my first bonus payment directly to my wallet. Take a look at uu66gamer if you want a hassle free experience

  2. I have been following this platform for a while and it keeps getting better with every update. The odds are consistently updated and I never run into server issues during live matches. Withdrawal requests are processed quickly and I always receive the exact amount I requested without hidden deductions. A trustworthy option for regular punters who want steady results. idnetralbet

  3. Just discovered this gem and I am hooked right away. The customer support actually responds super fast and the slots have great vibes. Will be coming back for sure. mybull99

  4. I simply love the variety of slot games available on this website. Every time I spin the reels I feel like I might hit a big bonus round. The graphics are stunning and the sound effects make the whole experience so immersive. Start playing now garuda55slot

  5. I have been searching for a reliable betting platform for quite some time and finally found my go to spot. The interface is super smooth and the payouts are always on point. Highly recommend giving it a try if you want a stress free gaming experience. bd88fp

  6. I have been playing here for a few months and the consistency is really impressive. Mobile optimization is top notch and I can jump into tournaments anytime without any glitches. Payment methods work perfectly with local banks and the team responds to tickets within minutes. A trustworthy partner for daily entertainment. vnsm88

  7. Players from Latin America really appreciate how smooth the registration process is here. I grabbed the welcome bonus right away and it actually matched my first deposit perfectly. The customer service team replies in English and they are so patient with new users. ecuabetregistrobono

  8. Honestly I was skeptical at first but this platform really knows how to treat its members right. The VIP perks stack up quickly and every little reward feels genuine. Customer care responded within minutes when I asked about the bonus terms. A refreshing choice for anyone who wants a premium feel without the hassle. Visit me at vipwin7771

  9. I like how they keep things simple and straight to the point. No confusing menus or fake pop ups that waste my time. The game selection keeps growing and the staff always answers my questions politely. Give it a spin at 1179kingco

  10. Finally a local betting site that gets the job done right. The sports menu covers everything I follow and the cash out feature is a lifesaver when games get tense. Deposits with our local banks work straight away. I will definitely keep returning to mybet9jalogin for all my weekly action.

  11. Really solid platform for anyone who enjoys live casino action. The stream quality is crisp and the table limits are comfortable for both casual and high roller vibes. I also love that they send useful tips before big tournaments. Hop on at bdjeetbuzz66

  12. I appreciate how smooth the betting flow is on both mobile and desktop. Placing wagers on live matches feels seamless and the odds are always competitive. A dependable option for daily gaming. pechaskibet

  13. Finding a trustworthy casino that understands what we need is always a challenge but this one stands out for its quality. The live streams are crystal clear and the support team speaks our language with genuine care. I finally feel safe placing my bets here. Play at arlivecasino

  14. Finally found a platform that doesn’t lag during peak hours. The game variety here is top notch and I really enjoy the bonus offers. Check out ph6899jili if you want a great experience.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top