From: "Gábor Boskovits" <boskovits@gmail.com>
To: "Lars Böckel" <listdump@larf.space>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: libvirt with modified QEMU and OVMF
Date: Sun, 2 Sep 2018 07:18:01 +0200 [thread overview]
Message-ID: <CAE4v=phe-kgSyfKJ5nZJZ8kLX6fQ=D0_yzYhu_h3iQ85kBY7Mg@mail.gmail.com> (raw)
In-Reply-To: <129c5140-eb4c-27df-fe43-6f7cbd423edd@larf.space>
[-- Attachment #1: Type: text/plain, Size: 2040 bytes --]
P
Lars Böckel <listdump@larf.space> ezt írta (időpont: 2018. szept. 2., V
3:47):
> 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"
> '';
>
I was thinking about getting this done for a while. It would be very
useful. Actually there should be a private writable copy of the ovmf
variable area for each vm, and a shared read only for the rest of ovmf.
>
> 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 ];
> }
> );
> };
> j
> 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.
>
The libvirt service accepts a libvirt configuration, where you can specify
the libvirt package in use. I guess it would be easy to provide a similar
mechanism to give the qemu package. If qemu is an input of libvirt then
providing a custom libvirt having the custom qemu would be good enough. I'm
on mobile now, so I can't check.
[-- Attachment #2: Type: text/html, Size: 2652 bytes --]
next prev parent reply other threads:[~2018-09-02 5:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-01 23:16 libvirt with modified QEMU and OVMF Lars Böckel
2018-09-02 5:18 ` Gábor Boskovits [this message]
2018-09-02 8:16 ` Ricardo Wurmus
2018-09-08 11:22 ` Ludovic Courtès
[not found] ` <b86074ab-f530-670a-550b-0b0b21b5cbe2@larf.space>
2018-09-08 21:05 ` Ludovic Courtès
2018-09-08 21:56 ` Lars Böckel
2018-09-13 21:03 ` Ricardo Wurmus
2018-11-17 22:34 ` Lars Böckel
-- strict thread matches above, loose matches on Subject: below --
2018-11-17 22:48 Lars Böckel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAE4v=phe-kgSyfKJ5nZJZ8kLX6fQ=D0_yzYhu_h3iQ85kBY7Mg@mail.gmail.com' \
--to=boskovits@gmail.com \
--cc=guix-devel@gnu.org \
--cc=listdump@larf.space \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.