From 5896dd943dfa4dea0db8a5c48d065400a24b5a95 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 18 Nov 2022 00:29:36 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to apt run --- .etckeeper | 3 + ...bvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c | 11 + ...7676f318-2b9a-4d6f-9762-bbae648d6b8c.files | 12 ++ hosts | 5 +- libvirt/qemu/rocky9.xml | 188 ++++++++++++++++++ 5 files changed, 217 insertions(+), 2 deletions(-) create mode 100644 apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c create mode 100644 apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c.files create mode 100644 libvirt/qemu/rocky9.xml diff --git a/.etckeeper b/.etckeeper index b7ccf74..454e653 100755 --- a/.etckeeper +++ b/.etckeeper @@ -415,6 +415,8 @@ maybe chmod 0644 'apparmor.d/libvirt/TEMPLATE.lxc' maybe chmod 0644 'apparmor.d/libvirt/TEMPLATE.qemu' maybe chmod 0644 'apparmor.d/libvirt/libvirt-11907b27-d003-4cf9-aac0-27f3ff9a219a' maybe chmod 0644 'apparmor.d/libvirt/libvirt-11907b27-d003-4cf9-aac0-27f3ff9a219a.files' +maybe chmod 0644 'apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c' +maybe chmod 0644 'apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c.files' maybe chmod 0644 'apparmor.d/lightdm-guest-session' maybe chmod 0755 'apparmor.d/local' maybe chmod 0644 'apparmor.d/local/README' @@ -2458,6 +2460,7 @@ maybe chmod 0600 'libvirt/qemu/centos-stream9.xml' maybe chmod 0755 'libvirt/qemu/networks' maybe chmod 0755 'libvirt/qemu/networks/autostart' maybe chmod 0600 'libvirt/qemu/networks/default.xml' +maybe chmod 0600 'libvirt/qemu/rocky9.xml' maybe chmod 0700 'libvirt/secrets' maybe chmod 0755 'libvirt/storage' maybe chmod 0755 'libvirt/storage/autostart' diff --git a/apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c b/apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c new file mode 100644 index 0000000..764e9e2 --- /dev/null +++ b/apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c @@ -0,0 +1,11 @@ +# +# This profile is for the domain whose UUID matches this file. +# + +#include + +profile libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c flags=(attach_disconnected) { + #include + #include + +} diff --git a/apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c.files b/apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c.files new file mode 100644 index 0000000..8b9c4e7 --- /dev/null +++ b/apparmor.d/libvirt/libvirt-7676f318-2b9a-4d6f-9762-bbae648d6b8c.files @@ -0,0 +1,12 @@ +# DO NOT EDIT THIS FILE DIRECTLY. IT IS MANAGED BY LIBVIRT. + "/var/log/libvirt/**/rocky9.log" w, + "/var/lib/libvirt/qemu/domain-rocky9/monitor.sock" rw, + "/var/lib/libvirt/qemu/domain-3-rocky9/*" rw, + "/run/libvirt/**/rocky9.pid" rwk, + "/run/libvirt/**/*.tunnelmigrate.dest.rocky9" rw, + "/var/lib/images/rocky9.qcow2" rwk, + "/dev/vhost-net" rw, + "/var/lib/libvirt/qemu/domain-3-rocky9/{,**}" rwk, + "/var/lib/libvirt/qemu/channel/target/domain-3-rocky9/{,**}" rwk, + "/var/lib/libvirt/qemu/domain-3-rocky9/master-key.aes" rwk, + "/dev/net/tun" rwk, diff --git a/hosts b/hosts index 4ea6674..63da44c 100644 --- a/hosts +++ b/hosts @@ -12,7 +12,8 @@ ff02::2 ip6-allrouters # 10.12.11.2 bruni 10.12.11.63 nadja -10.12.11.65 hp-color-laserjet.brehm-online.com hp-color-laserjet +10.12.11.65 hp-color-laserjet.brehm-online.com hp-color-laserjet 186.2.163.124 bs.to -10.12.11.109 centos9 +10.12.11.109 centos9.brehm-online.com centos9 +10.12.11.117 rocky9.brehm-online.com rocky9 diff --git a/libvirt/qemu/rocky9.xml b/libvirt/qemu/rocky9.xml new file mode 100644 index 0000000..650eeae --- /dev/null +++ b/libvirt/qemu/rocky9.xml @@ -0,0 +1,188 @@ + + + + rocky9 + 7676f318-2b9a-4d6f-9762-bbae648d6b8c + + + + + + 2097152 + 2097152 + 2 + + hvm + + + + + + + + + + + + + + destroy + restart + destroy + + + + + + /usr/bin/qemu-system-x86_64 + + + + +
+ + + + + +
+ + +
+ + + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + +
+ + +
+ + + + + +
+ + + + + + + + + + + +
+ + + +
+ + +
+ + + + + + + + +
+ +