-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install qemu-guest-agent in the bundle
It will be used to sync the time of the guest on macOS when the system gets out of sleep. A selinux policy change is needed to be allowed to use it over virtio-vsock. To apply it ( https://relativkreativ.at/articles/how-to-compile-a-selinux-policy-package ) checkmodule -M -m -o qemuga-vsock.mod qemuga-vsock.te semodule_package -o qemuga-vsock.pp -m qemuga-vsock.mod semodule -i qemuga-vsock.pp RHCOS already have qemu-guest-agent installed so we don't need to install it.
- Loading branch information
1 parent
60357cf
commit f09a29f
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
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,17 @@ | ||
[Unit] | ||
Description=QEMU Guest Agent | ||
IgnoreOnIsolate=True | ||
|
||
[Service] | ||
UMask=0077 | ||
EnvironmentFile=/etc/sysconfig/qemu-ga | ||
ExecStart=/usr/bin/qemu-ga \ | ||
--method=vsock-listen \ | ||
--path=3:1234 \ | ||
--blacklist=${BLACKLIST_RPC} \ | ||
-F${FSFREEZE_HOOK_PATHNAME} | ||
Restart=always | ||
RestartSec=0 | ||
|
||
[Install] | ||
WantedBy=default.target |
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,9 @@ | ||
module qemuga-vsock 1.0; | ||
|
||
require { | ||
type virt_qemu_ga_t; | ||
class vsock_socket { bind create getattr listen accept read write }; | ||
} | ||
|
||
#============= virt_qemu_ga_t ============== | ||
allow virt_qemu_ga_t self:vsock_socket { bind create getattr listen accept read write }; |