From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libvirt with modified QEMU and OVMF Date: Sat, 08 Sep 2018 23:05:13 +0200 Message-ID: <87in3fem46.fsf@gnu.org> References: <129c5140-eb4c-27df-fe43-6f7cbd423edd@larf.space> <87efe4grnm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fykPs-0006ma-Eg for guix-devel@gnu.org; Sat, 08 Sep 2018 17:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fykPr-0006Cg-39 for guix-devel@gnu.org; Sat, 08 Sep 2018 17:05:16 -0400 In-Reply-To: ("Lars \=\?utf-8\?Q\?B\=C3\=B6ckel\=22's\?\= message of "Sat, 8 Sep 2018 20:01:07 +0200") 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: Lars =?utf-8?Q?B=C3=B6ckel?= Cc: guix-devel Hello, (+Cc: guix-devel.) Lars B=C3=B6ckel skribis: > thanks for the suggestion. I had success with a snipplet similiar to > yours. So i would call that issue "fixed" even though its not pretty. Cool. > i would like to push the issue with OVMF in libvirt again: > > I would like to have OVMF(UEFI) capability with QEMU. In NixOS you can > achieve this with > > =C2=A0 virtualisation.libvirtd.enable =3D true; > =C2=A0 virtualisation.libvirtd.qemuOvmf =3D true; > =C2=A0=C2=A0 virtualisation.libvirtd.qemuVerbatimConfig =3D '' > =C2=A0=C2=A0=C2=A0=C2=A0 nvram =3D [ "${pkgs.OVMF}/FV/OVMF.fd:${pkgs.OVMF= }/FV/OVMF_VARS.fd" ] > =C2=A0=C2=A0=C2=A0 =C2=A0user =3D "1000" > =C2=A0=C2=A0 ''; > > 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. I don=E2=80=99t know about OVMF but IIUC, what you need here is to create /etc/libvirt/qemu.conf. To do that, you can something along these lines: (simple-service 'qemu-conf etc-service-type `(("libvirt/qemu.conf" ,(mixed-text-file "qemu.conf" "nvarm =3D " ovmf "/FV/OVMF.fd:=E2=80=A6')))) Would that work? (Actually the =E2=80=9Clibvirt/=E2=80=9D bit is only possible since commit 5dec93bb8ba89605bce2f9a5ee9c4dbadeee3b58, a few minutes ago=E2=80=A6) We could provide a proper abstraction on top of that if needed, but I=E2=80= =99m not familiar with libvirt. If you have ideas on how to improve this, that=E2=80=99d be great! Thanks, Ludo=E2=80=99.