From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Lars_B=c3=b6ckel?= Subject: libvirt with modified QEMU and OVMF Date: Sun, 2 Sep 2018 01:16:39 +0200 Message-ID: <129c5140-eb4c-27df-fe43-6f7cbd423edd@larf.space> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwF8K-0006tp-0p for guix-devel@gnu.org; Sat, 01 Sep 2018 19:16:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwF8F-00056r-3e for guix-devel@gnu.org; Sat, 01 Sep 2018 19:16:47 -0400 Received: from ms-10.1blu.de ([178.254.4.101]:40982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwF8E-00055c-Sr for guix-devel@gnu.org; Sat, 01 Sep 2018 19:16:43 -0400 Received: from [188.136.12.94] (helo=[192.168.0.7]) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1fwF8C-0005mF-7o for guix-devel@gnu.org; Sun, 02 Sep 2018 01:16:40 +0200 Content-Language: en-US-large List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org 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.