guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libvirt with modified QEMU and OVMF


From: Lars Böckel
Subject: libvirt with modified QEMU and OVMF
Date: Sun, 2 Sep 2018 01:16:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

Hello Guix,

i wanted to recommend some changes to libvirt which would improve the usability of libvirt.

1) OVMF(UEFI) capability with QEMU. In NixOS you can achieve this with

  virtualisation.libvirtd.enable = true;
  virtualisation.libvirtd.qemuOvmf = true;
   virtualisation.libvirtd.qemuVerbatimConfig = ''
     nvram = [ "${pkgs.OVMF}/FV/OVMF.fd:${pkgs.OVMF}/FV/OVMF_VARS.fd" ]
     user = "1000"
   '';

the "user" part is not necessary but is required for system VMs in combination with qemu's pulseaudio driver. qemuVerbatimConfig is the config that is at /etc/libvirt/qemu.conf in traditional GNU/Linux distributions.

2) Using a modified QEMU with libvirt. A modified QEMU could help sometimes. A way to specify which QEMU package to use would be helpful to resolve issues with newer qemu versions or patches which are not upstream. While in NixOS you could add patches like this

    nixpkgs.config.packageOverrides = pkgs: rec {
    qemu = pkgs.qemu.overrideAttrs (attrs:{
      patches = (lib.filter (x: ! (lib.hasSuffix "fix-hda-recording.patch" (builtins.toString x)))  attrs.patches) ++ [ /path/to/qemu.patch    ];
       }
    );
  };

to the QEMU package, i don't think this is possible in GuixSD.

Thank you for your work. Please let me know what you think.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]