Qemu-Guest-Agent Windows 100.0.0
This commit is contained in:
parent
3df4853123
commit
fd9deebcf5
@ -1,21 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>qemu-guest-agent</id>
|
<id>qemu-guest-agent</id>
|
||||||
<version>7.4.5</version>
|
<version>100.0.0.0</version>
|
||||||
<title>QEMU guest agent</title>
|
<title>QEMU guest agent</title>
|
||||||
<authors>Red Hat</authors>
|
<authors>Red Hat</authors>
|
||||||
<owners>foo.li systeme + software</owners>
|
<owners>foo.li systeme + software</owners>
|
||||||
<licenseUrl>https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html</licenseUrl>
|
<licenseUrl>https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html</licenseUrl>
|
||||||
<projectUrl>https://fedoraproject.org/wiki/Windows_Virtio_Drivers</projectUrl>
|
<projectUrl>https://fedoraproject.org/wiki/Windows_Virtio_Drivers</projectUrl>
|
||||||
<iconUrl>https://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kvm.png</iconUrl>
|
<iconUrl>https://raw.githubusercontent.com/peterbeck/chocolatey/master/icons/kvm.png</iconUrl>
|
||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
<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>
|
<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>
|
<summary>QEMU Guest Agent</summary>
|
||||||
<releaseNotes>initial package</releaseNotes>
|
<releaseNotes>package upgrade to 10.0.0</releaseNotes>
|
||||||
<tags>virtualisation kvm qemu guest-agent</tags>
|
<tags>virtualisation kvm qemu guest-agent</tags>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="kvm-virtio-drivers" version="0.1.126" />
|
<dependency id="kvm-virtio-drivers" version="0.1.171" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</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>
|
</package>
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
# QEMU Guest Agent
|
# QEMU Guest Agent
|
||||||
# 2016-2017 foo.li systeme + software
|
# 2016-2020 foo.li systeme + software
|
||||||
|
|
||||||
$packageName = 'qemu-guest-agent'
|
$packageName = 'qemu-guest-agent'
|
||||||
$version = '7.4.5'
|
$version = '100.0.0.0'
|
||||||
$installerType = 'msi'
|
$installerType = 'msi'
|
||||||
$url = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-qemu-ga/qemu-ga-win-' + $version + '-1/qemu-ga-x86.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 + '-1/qemu-ga-x64.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'
|
$silentArgs = '/qb'
|
||||||
$packageSearch = 'QEMU guest agent*'
|
$packageSearch = 'QEMU guest agent*'
|
||||||
$checksum = 'A5BDE210C45BC81600ABAE438D31B6BB6DF93F3C'
|
$checksum = '7f298036d0445dc32601e8416bc59e623639d282'
|
||||||
$checksumType = 'sha1'
|
$checksumType = 'sha1'
|
||||||
$checksum64 = '09D19C994EFA3FA41C4FE8EF249226CEB7EA0BAE'
|
$checksum64 = '50cb4a3840665d4ffdff1c0d27a14074165fc501'
|
||||||
$checksumType64 = $checksumType
|
$checksumType64 = $checksumType
|
||||||
$validExitCodes = @(0,3010)
|
$validExitCodes = @(0,3010)
|
||||||
|
|
||||||
$compmanu = Get-WmiObject Win32_ComputerSystem | select manufacturer
|
$compmanu = Get-WmiObject Win32_ComputerSystem | select manufacturer
|
||||||
if ($compmanu.manufacturer -like '*Bochs*') { Write-Host 'QEMU/KVM detected' }
|
if ($compmanu.manufacturer -like '*Bochs*') { Write-Host 'QEMU/KVM detected' }
|
||||||
elseif ($compmanu.manufacturer -like '*QEMU*'){ Write-Host 'QEMU/KVM detected' }
|
elseif ($compmanu.manufacturer -like '*QEMU*'){ Write-Host 'QEMU/KVM detected' }
|
||||||
else {
|
else {
|
||||||
Write-Host 'could not detect QEMU/KVM virtual machine. Stopping deployment'
|
Write-Host 'could not detect QEMU/KVM virtual machine. Stopping deployment'
|
||||||
throw 'no KVM/QEMU VM detected'
|
throw 'no KVM/QEMU VM detected'
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@ try {
|
|||||||
-ErrorAction:SilentlyContinue | Where-Object { $_.DisplayName -like $packageSearch }
|
-ErrorAction:SilentlyContinue | Where-Object { $_.DisplayName -like $packageSearch }
|
||||||
|
|
||||||
if ($app -and ([version]$app.DisplayVersion -ge [version]$version)) {
|
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 {
|
} else {
|
||||||
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
|
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
|
||||||
-checksum $checksum -checksumType $checksumType `
|
-checksum $checksum -checksumType $checksumType `
|
||||||
|
Loading…
Reference in New Issue
Block a user