I've finally discovered how to install qemu-agent on windows server core. Please see the method below:
Sourced from here: https://gist.github.com/goffinet/36e6581670cde2d016f620f6f490d281
Powershell in or to windows server core:
# display available drives
Get-PSDrive
# create local driver directory
mkdir c:\drivers
# copy drivers from media to local directory (change D:\ to your virtio-iso location)
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
# 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
msiexec /i qemu-ga-x86_64.msi (this is my modification on the article, as running the msi per the article gave me an error)
Copy-Item C:\drivers\Balloon\2k19\amd64 -Destination 'C:\Program Files\Balloon' -Recurse
Set-Location 'C:\Program Files\Balloon'
./blnsvr.exe -i
At the last step PVE will recognise the qemu agent running without a reboot, but I rebooted anyway.
Sourced from here: https://gist.github.com/goffinet/36e6581670cde2d016f620f6f490d281
Powershell in or to windows server core:
# display available drives
Get-PSDrive
# create local driver directory
mkdir c:\drivers
# copy drivers from media to local directory (change D:\ to your virtio-iso location)
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
# 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
msiexec /i qemu-ga-x86_64.msi (this is my modification on the article, as running the msi per the article gave me an error)
Copy-Item C:\drivers\Balloon\2k19\amd64 -Destination 'C:\Program Files\Balloon' -Recurse
Set-Location 'C:\Program Files\Balloon'
./blnsvr.exe -i
At the last step PVE will recognise the qemu agent running without a reboot, but I rebooted anyway.
Last edited: