logo
Published on

libvirtd fails with invalid argument: Failed to parse group kvm

Authors
  • avatar
    Name
    Mae
    Twitter

QEMU and its extension KVM require a tiny bit of configuration and VM configuration is made easier through libvirtd which acts as an API. Since I couldn’t find assistance when searching for the particular stack of errors I got when running systemctl enable libvirtd on my new box I’ll go ahead and post it here.

Dec 05 01:26:55 VMHOST libvirtd[507]: driver in virRegisterStorageDriver must not be NULL
Dec 05 01:26:55 VMHOST libvirtd[507]: Failed module registration vboxStorageRegister
Dec 05 01:26:55 VMHOST libvirtd[507]: internal error: Failed to find path for dmidecode binary
Dec 05 01:26:55 VMHOST libvirtd[507]: invalid argument: Failed to parse group 'kvm'
Dec 05 01:26:55 VMHOST libvirtd[507]: Initialization of QEMU state driver failed: invalid argument: Fail...'kvm'
Dec 05 01:26:55 VMHOST libvirtd[507]: Driver state initialization failed

The solution is to create the group kvm. groupadd kvm worked for me. Add the users later.

Cannot check dnsmasq binary /sbin/dnsmasq: No such file or directory also came up during my setup. So I installed dnsmasq from the repos.