AshleyYakeley / NixVirt

LibVirt domain management for Nix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qemu-bridge-helper is no suitable-bridge helper

Svenum opened this issue · comments

My Config:

# Enable virtualisation                                                                                                                                                                                                                                                                                                                            
  virtualisation.libvirt.swtpm.enable = true;                                                                                                                                                                                                                                                                                                        
  virtualisation.libvirt.enable = true;                                                                                                                                                                                                                                                                                                              
  virtualisation.libvirt.connections."qemu:///session" = {                                                                                                                                                                                                                                                                                           
    # Add pools                                                                                                                                                                                                                                                                                                                                      
    pools = [                                                                                                                                                                                                                                                                                                                                        
      {                                                                                                                                                                                                                                                                                                                                              
        definition = nixvirt.lib.pool.writeXML {                                                                                                                                                                                                                                                                                                     
          name = "default";                                                                                                                                                                                                                                                                                                                          
          uuid = "a72e2000-ab5e-4c2d-a571-daf611fc77a4";                                                                                                                                                                                                                                                                                             
          type = "dir";                                                                                                                                                                                                                                                                                                                              
          target = {                                                                                                                                                                                                                                                                                                                                 
            path = "/home/sven/.local/share/libvirt/images";                                                                                                                                                                                                                                                                                         
          };                                                                                                                                                                                                                                                                                                                                         
        };
        # Workaround untils https://github.com/AshleyYakeley/NixVirt/issues/16 is fixed                                                                                                                                                                                                                                                                                                                                           
        volumes = [                                                                                                                                                                                                                                                                                                                                  
          {                                                                                                                                                                                                                                                                                                                                          
            definition = nixvirt.lib.volume.writeXML {                                                                                                                                                                                                                                                                                               
              name = "win10.qcow2";                                                                                                                                                                                                                                                                                                                  
              capacity = { count = 250; unit = "GiB"; };                                                                                                                                                                                                                                                                                             
              target = {                                                                                                                                                                                                                                                                                                                             
                format = { type = "qcow2"; };                                                                                                                                                                                                                                                                                                        
              };                                                                                                                                                                                                                                                                                                                                     
            };                                                                                                                                                                                                                                                                                                                                       
          }                                                                                                                                                                                                                                                                                                                                          
        ];                                                                                                                                                                                                                                                                                                                                           
        active = true;
      }
      {
        definition = nixvirt.lib.pool.writeXML {
          name = "isos";
          uuid = "5217ddb8-29c2-4a4d-b976-73b9dde59e43";
          type = "dir";
          target = {
            path = "/home/sven/.local/share/libvirt/isos";
          };
        };
        active = true;
      }
      {
        definition = nixvirt.lib.pool.writeXML {
          name = "qemu";
          type = "dir";
          uuid = "be62978e-1d96-466f-bfaf-acc01c9fae76";
          target = {
            path = "/home/sven/.local/share/libvirt/qemu";
          };
        };
        active = true;
      }
    ];

    # Add windows Domain
    domains = lib.mkIf (systemConfig.networking.hostName == "Shi") [
      {
        definition = nixvirt.lib.domain.writeXML (nixvirt.lib.domain.templates.windows
          {
            name = "win10";
            uuid = "a9329510-9185-4849-a4ed-0b52aa2f4d47";
            memory = { count = 24; unit = "GiB"; };
            storage_vol = /home/sven/.local/share/libvirt/images/win10.qcow2;
            nvram_path = /home/sven/.local/share/libvirt/qemu/win10.nvram;
          }
        );
      }
    ];
  };
}

My issue:
Libvirt gives the following error if I try to start my VM:

Error starting domain: 'qemu-bridge-helper' is not a suitable bridge helper: No such file or directory

Traceback (most recent call last):
  File "/nix/store/y8jzspc7yx8rasxihxs0r6b127vqg48a-virt-manager-4.1.0/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/nix/store/y8jzspc7yx8rasxihxs0r6b127vqg48a-virt-manager-4.1.0/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
    callback(*args, **kwargs)
  File "/nix/store/y8jzspc7yx8rasxihxs0r6b127vqg48a-virt-manager-4.1.0/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/y8jzspc7yx8rasxihxs0r6b127vqg48a-virt-manager-4.1.0/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
    self._backend.create()
  File "/nix/store/8bxq9gk9mpsl62my6nd141cjnn9p08qq-python3.11-libvirt-10.0.0/lib/python3.11/site-packages/libvirt.py", line 1379, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: 'qemu-bridge-helper' is not a suitable bridge helper: No such file or directory

Is this NixOS config or Home Manager?

Home-manager inside of nixos

Seem that this has fixed it self. :)