Virt-Manager, cannot create new VM

Is anyone able to tell me what the problem is?

Thanks!

Output from pop-up error window:

Unable to complete install: 'Unable to write to '/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dPopOS.scope/libvirt/vcpu0/cgroup.threads': Operation not supported'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install
installer.start_install(guest, meter=meter)
File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install
domain = self._create_guest(
File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest
domain = self.conn.createXML(initial_xml or final_xml, 0)
File "/usr/lib/python3.10/site-packages/libvirt.py", line 4442, in createXML
raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: Unable to write to '/sys/fs/cgroup/machine.slice/machine-qemu\x2d1\x2dPopOS.scope/libvirt/vcpu0/cgroup.threads': Operation not supported

Garuda-Inxi:

System:
Kernel: 6.0.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=b7d5ee58-12df-4846-a354-6092d38c2c6a rw [email protected]
quiet splash intel_iommu=on intel_iommu=igfx_off iommu=pt
intremap=no_x2apic_optout kvm.ignore_msrs=1 default_hugepagesz=2M
hugepagesz=2M hugepages=4096 transparent_hugepage=never
rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
Desktop: KDE Plasma v: 5.26.0 tk: Qt v: 5.15.6 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Micro-Star product: GE72VR 6RF v: REV:1.0
serial: Chassis: type: 10 serial:
Mobo: Micro-Star model: MS-179B v: REV:1.0 serial:
UEFI: American Megatrends v: E179BIMS.10E date: 01/16/2018
Battery:
ID-1: BAT1 charge: 41.0 Wh (90.1%) condition: 45.5/53.4 Wh (85.1%)
volts: 12.0 min: 10.9 model: MSI Corp. MS-179B type: Li-ion serial: N/A
status: not charging
CPU:
Info: model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S
gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
model-id: 0x5E (94) stepping: 3 microcode: 0xF0
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 3175 high: 3277 min/max: 800/3500 scaling:
driver: intel_pstate governor: performance cores: 1: 3260 2: 3153 3: 3277
4: 3175 5: 3163 6: 3137 7: 3113 8: 3126 bogomips: 41599
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
Type: retbleed mitigation: IBRS
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
PBRSB-eIBRS: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort mitigation: TSX disabled
Graphics:
Device-1: Intel HD Graphics 530 vendor: Micro-Star MSI driver: i915
v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports:
active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
chip-ID: 8086:191b class-ID: 0300
Device-2: NVIDIA GP106M [GeForce GTX 1060 Mobile] vendor: Micro-Star MSI
driver: nvidia v: 520.56.06 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-10) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1c20
class-ID: 0300
Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 1-11:6
chip-ID: 5986:0683 class-ID: 0e02 serial:
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
unloaded: nouveau alternate: fbdev,intel,nv,vesa dri: iris gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: LG Display 0x0469 built: 2014 res: 1920x1080
hz: 60 dpi: 128 gamma: 1.2 size: 382x215mm (15.04x8.46")
diag: 438mm (17.3") ratio: 16:9 modes: 1920x1080
OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 22.2.1
direct render: Yes
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
chip-ID: 8086:a170 class-ID: 0403
Device-2: NVIDIA GP106 High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1 chip-ID: 10de:10f1
class-ID: 0403
Sound API: ALSA v: k6.0.2-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.59 running: yes
Network:
Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:3165 class-ID: 0280
IF: wlp2s0 state: up mac:
Device-2: Qualcomm Atheros Killer E2400 Gigabit Ethernet
vendor: Micro-Star MSI driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 1969:e0a1 class-ID: 0200
IF: enp3s0 state: down mac:
IF-ID-1: virbr0 state: down mac:
Bluetooth:
Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
bus-ID: 1-10:5 chip-ID: 8087:0a2a class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address:
Drives:
Local Storage: total: 2.73 TiB used: 1.46 TiB (53.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT1000P5SSD8
size: 931.51 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: rev: P4CR324
temp: 59.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS721010A9E630
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
speed: 3.0 Gb/s type: HDD rpm: 7200 serial: rev: A3U0
scheme: MBR
ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST1000LM014-1EJ164
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
speed: 6.0 Gb/s type: HDD rpm: 5400 serial: rev: SM14
scheme: GPT
Partition:
ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 242.89 GiB
(26.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 608 KiB
(0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 242.89
GiB (26.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 242.89
GiB (26.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%) used: 242.89
GiB (26.1%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.5 GiB used: 982.5 MiB (6.2%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 51.0 C pch: 68.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 293 Uptime: 27m wakeups: 1 Memory: 15.5 GiB used: 12.84 GiB
(82.8%) Init: systemd v: 251 default: graphical tool: systemctl
Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 1998
libs: 563 tools: octopi,paru pm: flatpak pkgs: 0 Shell: fish v: 3.5.1
default: Bash v: 5.1.16 running-in: alacritty inxi: 3.3.22
Garuda (2.6.8-1):
System install date: 2022-08-24
Last full system update: 2022-10-18
Is partially upgraded: No
Relevant software: NetworkManager
Windows dual boot: No/Undetected
Snapshots: Snapper
Failed units:

Is the user in the libvirt group?

https://wiki.archlinux.org/title/Virt-Manager

2 Likes

I had a similar problem. Definitely make sure your user has been added to the libvirt group as @leonavis mentioned. Load up the Garuda Boot Options (either from your launcher or the garuda welcome screen). Once that loads, make sure the Enable cgroups v2 (systemd.unified_cgroup_hierarchy=1) is UNchecked:
image

Then, I had to manually add this to the end of the Kernel parameters field:

systemd.unified_cgroup_hierarchy=0 Like this:

For some reason, just having it unchecked wasn't enough, I had to manually specify 0 in the kernel parameters field. Then, save and make sure grub-update finished, then reboot your machine.

That solved my problem.

4 Likes

Yay! Thanks :slight_smile:

User was already in libvirt and kvm groups, and those options were already selected. But adding that part to the kernel parameters seems to have done the trick. Weird!

Thanks again!

1 Like

Thanks leonavis, but that was all ok.

Yeah, it is weird. Was breaking my head over it for days until I just tried adding the parameter with a zero. Not sure what function the checkmark does on the GUI tho....perhaps it just adds the parameter with a one or removed the whole parameter.... not sure....

I've no idea what it even means. I tried googling bits of it, but nada. Just glad someone else found a fix for it. I've never had a major issue with KVM/libvirt before! I owe you a coffee! :smiley:

I'm not sure myself. This was working fine for a while, and I don't use it very often so maybe I didn't notice when it stopped, although I suspect it might be related to the new kernel version (i'm using linux-zen 6.0.2). Regardless, a lot of trial and error led me to manually specifying it and it seemed to do the trick, so happy to help, and hopefully someone else will come across this solution. Cheers!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.