From 5440c73f19ae9bfac70c79da83241c158ceb7d4a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 8 Nov 2024 15:58:13 +0100 Subject: ... --- accounts/gkleen@sif/libvirt/default.nix | 34 +++++++++++++++++++--- accounts/gkleen@sif/libvirt/pool-default.xml | 18 ------------ accounts/gkleen@sif/libvirt/vol-lmmirzm-vmrz01.xml | 17 ----------- 3 files changed, 30 insertions(+), 39 deletions(-) delete mode 100644 accounts/gkleen@sif/libvirt/pool-default.xml delete mode 100644 accounts/gkleen@sif/libvirt/vol-lmmirzm-vmrz01.xml (limited to 'accounts/gkleen@sif/libvirt') diff --git a/accounts/gkleen@sif/libvirt/default.nix b/accounts/gkleen@sif/libvirt/default.nix index 54d971c4..076a0d86 100644 --- a/accounts/gkleen@sif/libvirt/default.nix +++ b/accounts/gkleen@sif/libvirt/default.nix @@ -15,11 +15,13 @@ with flakeInputs.nixVirt.lib; memory = { count = 16; unit = "GiB"; }; storage_vol = "/home/gkleen/.local/share/libvirt/images/lmmirzm-vmrz01.qcow2"; nvram_path = "/home/gkleen/.local/share/libvirt/lmmirzm-vmrz01.nvram"; - virtio_net = true; virtio_drive = true; virtio_video = false; - install_virtio = true; + install_virtio = false; }) { + qemu-commandline.env = [ + { name = "SPICE_DEBUG_ALLOW_MC"; value = "1"; } + ]; vcpu.count = 4; os.bootmenu.enable = true; devices.graphics = { @@ -27,18 +29,42 @@ with flakeInputs.nixVirt.lib; # gl.enable = true; }; devices.interface = { + model.type = "virtio"; type = "bridge"; mac.address = "52:54:00:b9:f3:ed"; source.bridge = "gre-0971"; }; + devices.channel = [ + { + type = "unix"; + target = { type = "virtio"; name = "org.qemu.guest_agent.0"; }; + } + ]; + devices.tpm.model = "tpm-tis"; }); } ]; pools = [ - { definition = ./pool-default.xml; + { definition = pool.writeXML { + type = "dir"; + name = "default"; + uuid = "ad899c92-02e3-45f9-bf49-195467aba2e2"; + target = { + path = "/home/gkleen/.local/share/libvirt/images"; + }; + }; active = true; volumes = [ - { definition = ./vol-lmmirzm-vmrz01.xml; + { definition = volume.writeXML { + type = "file"; + name = "lmmirzm-vmrz01.qcow2"; + capacity = { count = 40; unit = "GB"; }; + target = { + path = "/home/gkleen/.local/share/libvirt/images/lmmirzm-vmrz01.qcow2"; + format.type = "qcow2"; + features.lazy_refcounts = {}; + }; + }; } ]; } diff --git a/accounts/gkleen@sif/libvirt/pool-default.xml b/accounts/gkleen@sif/libvirt/pool-default.xml deleted file mode 100644 index 7303830b..00000000 --- a/accounts/gkleen@sif/libvirt/pool-default.xml +++ /dev/null @@ -1,18 +0,0 @@ - - default - ad899c92-02e3-45f9-bf49-195467aba2e2 - 1492738072064 - 215387853312 - 1277350218752 - - - - /home/gkleen/.local/share/libvirt/images - - 0711 - 1000 - 100 - - - - diff --git a/accounts/gkleen@sif/libvirt/vol-lmmirzm-vmrz01.xml b/accounts/gkleen@sif/libvirt/vol-lmmirzm-vmrz01.xml deleted file mode 100644 index e160ae4d..00000000 --- a/accounts/gkleen@sif/libvirt/vol-lmmirzm-vmrz01.xml +++ /dev/null @@ -1,17 +0,0 @@ - - lmmirzm-vmrz01.qcow2 - 40 - - /home/gkleen/.local/share/libvirt/images/lmmirzm-vmrz01.qcow2 - - - 0600 - 1000 - 100 - - - - - - - -- cgit v1.2.3