Virt-manager: Difference between revisions

Phobos (talk | contribs)
m Added a note for fixing firewall issues
DHCP (talk | contribs)
m Wayland: fix style
 
(One intermediate revision by one other user not shown)
Line 60: Line 60:


=== Wayland ===
=== Wayland ===
In order to run on Wayland, virt-manager must be ran under XWayland with `$ GDK_BACKEND=x11 virt-manager` or a gdk cursor must be set. An example of setting a gdk cursor with home-manager is as follows:
In order to run on Wayland, virt-manager must be ran under XWayland with <code>$ GDK_BACKEND=x11 virt-manager</code> or a gdk cursor must be set. An example of setting a gdk cursor with home-manager is as follows:
  home.pointerCursor = {
<syntaxhighlight lang="nix">
    gtk.enable = true;
home.pointerCursor = {
    package = pkgs.vanilla-dmz;
  gtk.enable = true;
    name = "Vanilla-DMZ";
  package = pkgs.vanilla-dmz;
  };
  name = "Vanilla-DMZ";
};
</syntaxhighlight>
 
== Troubleshooting ==
=== Unable to find 'efi' firmware ===
 
The following guide is to fix the following error which will occur when starting a virtual machine after NixOS upgrade:
<code>Error:  Error starting domain: operation failed: Unable to find 'efi' firmware that is compatible with the current configuration</code>
 
Solution:
 
# Delete old generations:  <code>nix-collect-garbage -d</code>
# Find where the EFI boot loaded file is located:  <code>find /nix/store/ -maxdepth 1 -type d -name "*qemu*"  |  xargs -I {} find "{}" -type f -name "edk2-x86_64-secure-code.fd"</code>  Find the dir holding the latest qemu.  The directory should be something like: <code>xbfjilai721rzd9rf9dhhpv03xza4xp4-qemu-9.1.3</code>.  Take a note of this directory name.
# Open VM in virt-manager, go to XML and within the <code><os ...></code> tag:
## Edit <code><loader ...></code> with the above directory name
## Edit <code><nvram ...></code> with the above directory name.
 
[[Category:Virtualization]]
[[Category:Virtualization]]