-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemu: Split qemu-guest-agent into separate package
Also adds service files & preset to run guest agent Tested in my SerpentVM, guest agent details show up on my Proxmox host.
- Loading branch information
Showing
6 changed files
with
98 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", \ | ||
TAG+="systemd", ENV{SYSTEMD_WANTS}="qemu-guest-agent.service" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enable qemu-guest-agent.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=QEMU Guest Agent | ||
BindsTo=dev-virtio\x2dports-org.qemu.guest_agent.0.device | ||
After=dev-virtio\x2dports-org.qemu.guest_agent.0.device | ||
IgnoreOnIsolate=True | ||
|
||
[Service] | ||
UMask=0077 | ||
ExecStart=/usr/bin/qemu-ga \ | ||
--method=virtio-serial \ | ||
--path=/dev/virtio-ports/org.qemu.guest_agent.0 | ||
Restart=always | ||
RestartSec=0 | ||
|
||
[Install] | ||
WantedBy=dev-virtio\x2dports-org.qemu.guest_agent.0.device |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters