extra/qemu to 7.0.0-9

This commit is contained in:
Kevin Mihelich 2022-05-09 13:42:41 +00:00
parent 182fa0a0fc
commit dff79d99f0
8 changed files with 924 additions and 336 deletions

View file

@ -0,0 +1 @@
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", TAG+="systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service"

File diff suppressed because it is too large Load diff

1
extra/qemu/bridge.conf Normal file
View file

@ -0,0 +1 @@
allow virbr0

View file

@ -0,0 +1,14 @@
post_install() {
if [[ -d /run/udev ]]; then
local file files=(
/sys/devices/virtual/misc/vhost-net
)
# trigger change event when modules are already loaded
for file in "${files[@]}"; do
if [[ -d $file ]]; then
udevadm trigger --action=change "$file"
fi
done
fi
}

10
extra/qemu/qemu-ga.conf Normal file
View file

@ -0,0 +1,10 @@
[general]
daemonize = 0
fsfreeze-hook = /etc/qemu/fsfreeze-hook
method = virtio-serial
path = /dev/virtio-ports/org.qemu.guest_agent.0
pidfile = /run/qemu-ga.pid
statedir = /run
verbose = 0
# blacklist =
# logfile =

View file

@ -1,9 +0,0 @@
[Unit]
Description=QEMU Guest Agent
ConditionPathExists=/dev/virtio-ports/org.qemu.guest_agent.0
[Service]
ExecStart=/usr/bin/qemu-ga
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,2 @@
u qemu - "QEMU user" - -
m qemu kvm

View file

@ -1,8 +0,0 @@
# Arg 1: the new package version
post_install() {
# trigger events on modules files when already loaded
for _f in /sys/devices/virtual/misc/vhost-net; do
[[ -e "$_f" ]] && udevadm trigger "$_f"
done
:
}