KVM Virtio Drivers 0.1.171

This commit is contained in:
Peter V. Beck 2020-05-10 15:53:10 +02:00
parent ed8301b088
commit 3df4853123
3 changed files with 32 additions and 26 deletions

View File

@ -1,20 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>kvm-virtio-drivers</id>
<version>0.1.141</version>
<title>KVM Virtio Drivers for Windows</title>
<authors>Red Hat</authors>
<owners>foo.li systeme + software</owners>
<licenseUrl>https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html</licenseUrl>
<projectUrl>https://fedoraproject.org/wiki/Windows_Virtio_Drivers</projectUrl>
<iconUrl>https://git.foo.li/peter/chocolatey/raw/branch/master/icons/kvm.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>virtio drivers for Windows virtual machines running on KVM, and additional software agents for Windows VMs.
This package will download the latest stable drivers, unzip them and tries automatically to update/install needed drivers.
Note: for the QEMU guest agent there is a separate package available (which already uses this package as dependency).</description>
<summary>KVM Virtio Drivers</summary>
<releaseNotes>upgrade to 0.1.141</releaseNotes>
<tags>virtualisation kvm virtio guest-agents drivers</tags>
</metadata>
<metadata>
<id>kvm-virtio-drivers</id>
<version>0.1.171</version>
<title>KVM Virtio Drivers for Windows</title>
<authors>Red Hat</authors>
<owners>foo.li systeme + software</owners>
<licenseUrl>https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html</licenseUrl>
<projectUrl>https://fedoraproject.org/wiki/Windows_Virtio_Drivers</projectUrl>
<iconUrl>https://git.foo.li/peter/chocolatey/raw/branch/master/icons/kvm.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>virtio drivers for Windows virtual machines running on KVM, and additional software agents for Windows VMs.
This package will download the latest stable drivers, unzip them and tries automatically to update/install needed drivers.
Note: for the QEMU guest agent there is a separate package available (which already uses this package as dependency).</description>
<summary>KVM Virtio Drivers</summary>
<releaseNotes>upgrade to 0.1.171</releaseNotes>
<tags>virtualisation kvm virtio guest-agents drivers</tags>
</metadata>
<!-- building package on gnu/linux with nuget (https://packages.debian.org/stretch/nuget)
requires adding the tools path -->
<files>
<file src="tools/*" target="tools"/>
</files>
</package>

View File

@ -1,13 +1,13 @@
# Virtio Drivers for Windows VMs running on KVM
# 2011-2017 foo.li systeme + software
# 2011-2020 foo.li systeme + software
# export installed redhat certificate to a file with win7
# $CertToExport = dir cert:\LocalMachine -Recurse | where {$_.ThumbPrint -eq "66ED6843B0F6DC9B636C6814E53A26983EF32B4E"}
# $CertToExportInBytesForCERFile = $CertToExport.export("Cert")
# [system.IO.file]::WriteAllBytes("C:\Temp\RedHat.cer", $CertToExportInBytesForCERFile)
$packageName = 'kvm-virtio-drivers'
$version = '0.1.141'
$version = '0.1.171'
$url = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso'
$url64 = $url
$virtioPath = "$env:SystemDrive" + "\Virtio_" + $version
@ -16,7 +16,7 @@ $dpinst = Join-Path $scriptPath 'dpinstX86.exe'
$dpinst64 = Join-Path $scriptPath 'dpinstX64.exe'
$dpinstxml = Join-Path $scriptPath 'dpinst.xml'
$cleanupdrv = Join-Path $scriptPath 'cleanfolder.ps1'
$checksum = '43AEFA812C37342CFEFC48EC0DD7F1E56A930FCD'
$checksum = '4f37af23d97855caf37c534854bf008bbe2e8b74'
$checksumType = 'sha1'
$checksum64 = $checksum
$checksumType64 = $checksumType
@ -100,9 +100,10 @@ try {
Write-Host 'the driver wizard will still run for quiet some time.'
#Start-ChocolateyProcessAsAdmin -Statements "/q /se /sw /sa /path $virtioPath" -ExeToRun $dpinstaller
& $dpinstaller /S /SA /SE /SW /PATH $virtioPath
Write-Host '[INFO]: The Logfile for the driver installations is %windir%\DPINST.LOG'
Write-Host '[INFO]: The Logfile for the driver installations is %windir%\DPINST.LOG'
Write-Host '[INFO]: removing previous virtio-driver versions'
Remove-Item "${env:SystemDrive}\Virtio_0.1.126" -Force -Recurse -ErrorAction SilentlyContinue
Remove-Item "${env:SystemDrive}\Virtio_0.1.141" -Force -Recurse -ErrorAction SilentlyContinue
} catch {
throw $_.Exception
}

View File

@ -1,14 +1,14 @@
# Spice Guest Tools Removal
# 2017 foo.li systeme + software
# virtio windows drivers Removal
# 2017-2020 foo.li systeme + software
$packageName = 'kvm-virito-drivers'
$version = '0.1.126'
$version = '0.1.171'
$virtioPath = "$env:SystemDrive" + "\Virtio_" + $version
try {
if (Test-Path $virtioPath) {
Write-Host 'removing directory ' $virtioPath
Remove-Item $virtioPath -Recurse -Force
Remove-Item $virtioPath -Recurse -Force
} else {
Write-Host 'could not detect ' $virtioPath ' files.'
}