Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goffinet/36e6581670cde2d016f620f6f490d281 to your computer and use it in GitHub Desktop.
Save goffinet/36e6581670cde2d016f620f6f490d281 to your computer and use it in GitHub Desktop.
Install and Configure - Windows Server 2019 no GUI on ProxMox VM

Install and Configure - Windows Server 2016 Core on ProxMox VM

stage drivers locally

# display available drives
Get-PSDrive

# create local driver directory
mkdir c:\drivers

# copy drivers from media to local directory
Copy-Item D:\vioscsi\2k19\ -Destination C:\drivers\vioscsi\2k19 -Recurse
Copy-Item D:\NetKVM\2k19\ -Destination C:\drivers\NetKVM\2k19 -Recurse
Copy-Item D:\Balloon\2k19\ -Destination C:\drivers\Balloon\2k19 -Recurse
Copy-Item D:\vioserial\2k19\ -Destination C:\drivers\vioserial\2k19 -Recurse
Copy-Item D:\guest-agent\ -Destination C:\drivers\guest-agent -Recurse

implement drivers

# go to local directory with drivers
Set-Location C:\drivers

# install drivers
pnputil -i -a C:\Drivers\NetKVM\2k19\amd64\*.inf
pnputil -i -a C:\Drivers\Balloon\2k19\amd64\*.inf
pnputil -i -a C:\Drivers\vioserial\2k19\amd64\*.inf

# set up guest agent
Set-Location C:\drivers\guest-agent
.\qemu-ga-x86_64.msi

Copy-Item C:\drivers\Balloon\2k19\amd64 -Destination 'C:\Program Files\Balloon' -Recurse

Set-Location 'C:\Program Files\Balloon'
./blnsvr.exe -i

Enable remote powershell sessions

on the win2k16 core server

# view current list of trusted hosts
Get-Item wsman:\localhost\client\trustedhosts

# add remote computer that will be connecting to core server
Set-Item wsman:\localhost\client\trustedhosts -Value <hostname or ip>

on the computer wanting to connect to the win2k16 core server

# enable psremoting if not in a domain
Enable-PSRemoting

# view current list of trusted hosts
Get-Item wsman:\localhost\client\trustedhosts

# add remote core server that you want to connect to
Set-Item wsman:\localhost\client\trustedhosts -Value <hostname or ip>

launch pssession from computer to server core

Enter-PSSession -ComputerName <server core ip or hostname> -Credential <server core username>

Citations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment