Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ter apply fails with can't find storage pool 'default' #9

Open
zeratax opened this issue Mar 23, 2023 · 3 comments
Open

ter apply fails with can't find storage pool 'default' #9

zeratax opened this issue Mar 23, 2023 · 3 comments

Comments

@zeratax
Copy link

zeratax commented Mar 23, 2023

following the guide the setup always fails for me with ter apply

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

libvirt_volume.nixos_boot: Creating...

│ Error: can't find storage pool 'default'

│   with libvirt_volume.nixos_boot,
│   on main.tf line 50, in resource "libvirt_volume" "nixos_boot":
│   50: resource "libvirt_volume" "nixos_boot" {

I made sure that I am in the correct group:

$ groups
users wheel networkmanager libvirtd docker

and that libvirtd is running:

$ systemctl status libvirtd
● libvirtd.service - Virtualization daemon
     Loaded: loaded (/etc/systemd/system/libvirtd.service; enabled; preset: enabled)
    Drop-In: /nix/store/y07n6kr0sk83gqji3lqzykzsrk94f319-system-units/libvirtd.service.d
             └─overrides.conf
     Active: active (running) since Thu 2023-03-23 15:12:51 CET; 14s ago
TriggeredBy: ● libvirtd-ro.socket
             ● libvirtd.socket
             ● libvirtd-admin.socket
       Docs: man:libvirtd(8)
             https://libvirt.org
   Main PID: 5239 (.libvirtd-wrapp)
         IP: 0B in, 0B out
         IO: 0B read, 0B written
      Tasks: 19 (limit: 32768)
     Memory: 5.2M
        CPU: 150ms
     CGroup: /system.slice/libvirtd.service
             └─5239 /nix/store/ziiig351fxfw1rizgnfpbkllxx2xlzvk-libvirt-8.10.0/sbin/libvirtd --config /nix/store/rd9dai9irpxsz9bw98fz47m1wb9zl31g-libvirtd.conf --timeout 120

Mär 23 15:12:51 gestalt systemd[1]: Starting Virtualization daemon...
Mär 23 15:12:51 gestalt systemd[1]: Started Virtualization daemon.
@zeratax
Copy link
Author

zeratax commented Mar 23, 2023

okay i needed to run virt-manager for some reason, and follow the resolve step described here: https://nixos.wiki/wiki/Virt-manager

is this an upstream issue?

@justinas
Copy link
Owner

It might be that no storage pools exist by default, until virt-manager creates one. Will have to look into it.

@zeratax
Copy link
Author

zeratax commented Mar 23, 2023

also used it to start the k8s network

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants