Thenewtonlab

One cloud consultants building journey

Thenewtonlab

One cloud consultants building journey

The Newton Lab – How it’s built

I’ve used my lab for years.  Many have heard me say how this lab has saved me so much time over the years…it’s paid for itself several times 🙂

Often times I need to test a migration or other configuration for a client (or just test some new software).  This lab is made up of a single server (desktop case) here’s the basic specs (it’s all on the cheap):

thenewtonlab-blog

After many rebuilds over the years between running full installs of Windows 2012 and Windows Hyper-V Server , I’ve finally settled on installing all host OSs to boot from VHD.  This makes sure the drive letters stay consistent across the OSs (I previously would dual boot between Windows Server 2012 direct on the boot disk and a boot from VHD Windows Hyper-V Server).

With the host done I built a VM to run as a Remote Desktop Gateway.  I use the “Quick Session Collection”.  To gain access remotely I use a free (yes free) cert from StartSSL.com.  All you need is a registered domain and you can get a free cert (you need to validate that you own the domain via confirmation email).  So let’s say you own newton.com (I wish I did Apple…’cause you’re not using it right now).  You can then request a server cert for remote.newton.com and install that on your internal RD Gateway.  Then you’ll need to add a host name in the newton.com zone that points to the public IP of your home router…and you should be good to go.  Many ISPs today will not keep your IP the same overtime and so you’ll need to update the A record you created.  For that I use a free service from DNSExit.  Just transfer your DNS  zone and you can use client software that will monitor the external IP and update it as needed.

A couple of other notes….  I now only publish the “Server Manager” app and then launch Hyper-V Manger from there (it’s good to keep things simple)…in previous builds I would publish all the management tools separately.

Windows Server 2016 has changed things up for Hyper-V – one of which is the configuration files.  I was running the Tech Preview 5 for quite awhile and then earlier this week decided to move to the RTM build and plan to use a script my good friend @foxdeploy wrote that would simply export the XML files for each VM.  I then would take those files to import back to Hyper-V (the VHDs are not changing location)…but this didn’t work with Windows Server 2016 which now uses VMCX files. So I decided to create my own script to export the VM configs to a file and then re-import.

[code language=”powershell”]
function Export-VMs {
[CmdletBinding()]
param(
[Parameter(Position=0)][string]$VMHost,
[Parameter()][string]$Output = "vm-export-cfg.csv")

$vms = get-vm -ComputerName $VMHost
foreach($vm in $vms){

$properties =[ordered] @{‘VMName’=$vm.name;
‘VMDisk1’= Get-VMHardDiskDrive -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty path -first 1;
‘VMDisk2’= Get-VMHardDiskDrive -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty path -last 1;
‘VMSwitch1’=Get-VMNetworkAdapter -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty Switchname -first 1;
‘VMSwitch2’=Get-VMNetworkAdapter -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty Switchname -last 1;
‘VMDynRAM’ = Get-VMMemory -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty DynamicMemoryEnabled;
‘VMRAMMin’ = Get-VMMemory -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty Minimum;
‘VMRAMStartup’ = Get-VMMemory -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty Startup;
‘VMRAMMax’ = Get-VMMemory -ComputerName $VMHost -VMName $vm.name|select -ExpandProperty Maximum;
‘VMGen’ = $vm.Generation}
$object = New-Object –TypeName PSObject –Prop $properties
Write-Output $object|export-csv $output -NoTypeInformation -Append
}#end foreach $vm
}#end function

function Import-VMs {
[CmdletBinding()]
param(
[Parameter(Position=0)][string]$VMHost,
[Parameter()][string]$input = "vm-export-cfg.csv")

$vmconfigs = import-csv $input
foreach($vm in $vmconfigs){
#create VM
new-vm -ComputerName $VMHost -Name $vm.VMname -MemoryStartupBytes $vm.VMRAMStartup -VHDPath $vm.VMDisk1 -Generation $vm.VMGen -SwitchName $VM.VMSwitch1
#Enable Dynamic Memory
if($vm.VMDynRAM -eq $true){
Get-VM -Computername $VMHost -Name $vm.VMName|Set-VMMemory -DynamicMemoryEnabled $True
}

#add second disk if needed
if($vm.VMDisk1 -ne $vm.VMDisk2){ #need to add second disk
Get-VM -ComputerName $VMHost -Name $vm.VMName|Add-VMHardDiskDrive -Path $vm.VMDisk2
}
#add second Nic if needed
if($vm.VMSwitch1 -ne $vm.VMSwitch2){
Get-VM -ComputerName $VMHost -Name $vm.VMName|Add-VMNetworkAdapter -SwitchName $vm.VMSwitch2
}
}#end foreach $vm
}#end function
[/code]
I take the export file and save it off the host server and then rebuild the server as a new Hyper-V host and then run the import and boom all the VMs are there (man i love PowerShell).

 

Anyway I hope someone finds this helpful in their lab building.  In a future post I’ll cover how a setup my multi-boot configuration and built the fresh new Nano server.

Happy building.

68 thoughts on “The Newton Lab – How it’s built

  1. Reliable speed and a solid reputation speak volumes in this industry. I have been playing for months and the experience stays consistently top notch. The promo calendar is packed and the team truly cares about player satisfaction. Enjoy the ride. f79bet

  2. I switched over a few days ago and the game selection is exactly what I was looking for. Roulette and blackjack run perfectly here with live dealers that are actually friendly. Payouts hit my wallet within hours and I have not faced a single issue. Really glad I took the jump. cobwinlogin

  3. As someone who loves trying new strategies, I appreciate how straightforward the odds are displayed here. No confusing rules or hidden terms just a clean space to enjoy the thrill of the game. I keep coming back for the simple yet reliable experience. 360apuestas

  4. I have been playing here for a few months now and the experience keeps getting better every week. The promotions are completely fair and I actually feel like I have a solid shot at landing some big wins. The community here is welcoming and support treats you like family. clpglucky88

  5. This has become my go to place whenever I want to unwind after a long day. The live dealer tables feel incredibly realistic and the chat feature makes it so easy to connect with the crew. vnpg66

  6. Logging in daily has become such a pleasant routine with this platform. The game library is packed with all my favorites and the community features make it feel like a real club. Customer service is always polite and resolves any issues within minutes. Truly a top tier gaming destination. bharatclublogin

  7. As a player from Ecuador looking for safe online gaming, I finally found a place that gets it. The navigation is intuitive and I feel secure with their licensing setup. Every session feels fair and the bonuses actually match what they promise. Highly recommend giving it a try. sponbetecuador

  8. Jili games are always a hit and this platform hosts them flawlessly. I love how easy it is to switch between categories without any lag or pop ups blocking my view. Support tickets get answered within minutes which is rare these days. Swing by ph2jili and grab a free spin while the bonuses last.

  9. I have been playing here for a few months now and the speed of my withdrawals is seriously impressive. The mobile app runs so smoothly even on older phones and the support team actually picks up. If you are looking for a spot that pays out without the usual drama I highly recommend giving it a try. 90phuttvxyz

  10. I have been playing here for a few months now and the mobile experience is truly smooth. The login process is quick and I never run into bugs during my sessions. Definitely my go to spot for casual rounds after work. Keep up the great work with the updates. z666betapp

  11. I used to juggle between three different apps just to keep my account updated but this one handles everything perfectly. The dashboard stays responsive even during peak hours and the bonus terms are actually transparent. Give kk444login a try next time you want a fresh take on mobile betting. kk444login

  12. I switched over from another platform and the difference is night and day. Everything from the game library to the payment processing feels incredibly well organized. I especially appreciate how quickly they handle cash out requests on weekdays. It is refreshing to play somewhere that puts reliability above flashy ads. ecparleycenter

  13. I have been hunting for a spot that balances luck and skill and this one hits the mark every session. The interface is clean the payments are smooth and I always get that little rush when I log in. It is like the site genuinely wants me to keep coming back for more. mmk888login

  14. The atmosphere here feels so vibrant and the game selection keeps getting better every quarter. I love how easy it is to track my spending and set limits because it helps me play responsibly while still having a blast. Support agents are knowledgeable and always ready to guide newcomers through the platform. Come experience the joy yourself at mxmundijuegos

  15. The mobile experience here is really smooth and I can play without any annoying lag. Great promotions too and the rules are clearly explained for everyone. Happy to have found a reliable spot for my downtime unibetapp

  16. Finally found a place that doesn’t lag during peak hours. Had a great run yesterday and the support team was super helpful. Give xbajee5 a try, you won’t regret it.

  17. Downloaded the app and it runs perfectly on my Android device. No lag during live games and the push notifications for tournaments are super handy. I love how they keep the community engaged with daily drops and leaderboard rewards. A solid pick for mobile gamers phspinapkph

  18. This place keeps my weekends packed with exciting spins and smooth navigation. The bonus drops feel generous and I never worry about hidden tricks on the back end. My go to destination whenever I want to unwind after work.

  19. Really impressed with the payout speed. I had some doubts at first, but everything was processed quickly. Highly recommend vn88vie for anyone looking for reliability.

  20. I’ve been trying a few platforms lately and this one really stands out for its speed. Everything is smooth and easy to navigate. Definitely worth checking out ug234

  21. Best experience I have had in a while. The payouts are fair and the customer support is actually helpful. Highly recommended for anyone in PH looking for a reliable site. Visit 85phcom

  22. I have been playing online for years and this platform finally checks all the boxes for me. The game providers are top notch and I never experience any lag during live sessions. Customer care went above and beyond when I had a small question about my account. phwinjili

Leave a Reply

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

Scroll to top