Qemu-Guest-Agent Windows 100.0.0

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

View File

@ -1,21 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>qemu-guest-agent</id>
<version>7.4.5</version>
<title>QEMU guest agent</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://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kvm.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>It is a daemon program running inside the domain which is supposed to help management applications with executing functions which need assistance of the guest OS. For example, freezing and thawing filesystems, entering suspend. However, guest agent (GA) is not bullet proof, and hostile guest OS can send spurious replies.</description>
<summary>QEMU Guest Agent</summary>
<releaseNotes>initial package</releaseNotes>
<tags>virtualisation kvm qemu guest-agent</tags>
<dependencies>
<dependency id="kvm-virtio-drivers" version="0.1.126" />
</dependencies>
</metadata>
<metadata>
<id>qemu-guest-agent</id>
<version>100.0.0.0</version>
<title>QEMU guest agent</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://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kvm.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>It is a daemon program running inside the domain which is supposed to help management applications with executing functions which need assistance of the guest OS. For example, freezing and thawing filesystems, entering suspend. However, guest agent (GA) is not bullet proof, and hostile guest OS can send spurious replies.</description>
<summary>QEMU Guest Agent</summary>
<releaseNotes>package upgrade to 10.0.0</releaseNotes>
<tags>virtualisation kvm qemu guest-agent</tags>
<dependencies>
<dependency id="kvm-virtio-drivers" version="0.1.171" />
</dependencies>
</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,23 +1,23 @@
# QEMU Guest Agent
# 2016-2017 foo.li systeme + software
# 2016-2020 foo.li systeme + software
$packageName = 'qemu-guest-agent'
$version = '7.4.5'
$version = '100.0.0.0'
$installerType = 'msi'
$url = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-qemu-ga/qemu-ga-win-' + $version + '-1/qemu-ga-x86.msi'
$url64 = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-qemu-ga/qemu-ga-win-' + $version + '-1/qemu-ga-x64.msi'
$url = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-qemu-ga/qemu-ga-win-' + $version + '-3.el7ev/qemu-ga-x86.msi'
$url64 = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-qemu-ga/qemu-ga-win-' + $version + '-3.el7ev/qemu-ga-x64.msi'
$silentArgs = '/qb'
$packageSearch = 'QEMU guest agent*'
$checksum = 'A5BDE210C45BC81600ABAE438D31B6BB6DF93F3C'
$checksum = '7f298036d0445dc32601e8416bc59e623639d282'
$checksumType = 'sha1'
$checksum64 = '09D19C994EFA3FA41C4FE8EF249226CEB7EA0BAE'
$checksum64 = '50cb4a3840665d4ffdff1c0d27a14074165fc501'
$checksumType64 = $checksumType
$validExitCodes = @(0,3010)
$compmanu = Get-WmiObject Win32_ComputerSystem | select manufacturer
if ($compmanu.manufacturer -like '*Bochs*') { Write-Host 'QEMU/KVM detected' }
elseif ($compmanu.manufacturer -like '*QEMU*'){ Write-Host 'QEMU/KVM detected' }
else {
elseif ($compmanu.manufacturer -like '*QEMU*'){ Write-Host 'QEMU/KVM detected' }
else {
Write-Host 'could not detect QEMU/KVM virtual machine. Stopping deployment'
throw 'no KVM/QEMU VM detected'
}
@ -28,7 +28,7 @@ try {
-ErrorAction:SilentlyContinue | Where-Object { $_.DisplayName -like $packageSearch }
if ($app -and ([version]$app.DisplayVersion -ge [version]$version)) {
Write-Host 'QEMU Guest Agent' $version 'or higher is already installed. Doing nothing.'
Write-Host 'QEMU Guest Agent' $version 'or higher is already installed. Doing nothing.'
} else {
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
-checksum $checksum -checksumType $checksumType `