Error message: Failed to enable unit: Unit file libvirtd.service does not exist

Hey guys

I’m new to OpenSuse Tembleweed.
I just installed virt-manager and the following error message appeared when trying to enable libvirtd: ( Failed to enable unit: Unit file libvirtd.service does not exist. )

Can you help me on this issue?

sudo zypper in -t pattern kvm_server kvm_tools
[sudo] senha para root:
Carregando dados do repositório…
Lendo os pacotes instalados…
Resolvendo dependências de pacote…

Os seguintes 3 pacotes NOVOS serão instalados:
patterns-server-kvm_server patterns-server-kvm_tools virt-manager

Os seguintes 2 padrões NOVOS serão instalados:
kvm_server kvm_tools

3 novos pacotes a serem instalados.
Tamanho total do download: 335,6 KiB. Já em cache: 0 B. Após a operação, 2,1 MiB
adicionais serão utilizados.
Continuar? [s/n/v/…? exibe todas as opções] (s): s
Baixando: patterns-server-kvm_server-20210330-4.1.x86_64 (Repositório principal
(OSS))
(1/3), 9,7 KiB
Baixando: patterns-server-kvm_server-20210330-4.1.x86_64.[concluído (2,4 KiB/s)]
Baixando: virt-manager-4.1.0-6.1.noarch (Repositório principal (OSS))
(2/3), 316,1 KiB
Baixando: virt-manager-4.1.0-6.1.noarch.rpm …[concluído]
Baixando: patterns-server-kvm_tools-20210330-4.1.x86_64 (Repositório principal
(OSS))
(3/3), 9,8 KiB
Baixando: patterns-server-kvm_tools-20210330-4.1.x86_64.r[concluído (2,4 KiB/s)]

Verificando por conflito de arquivos: …[concluído]
(1/3) Instalando: patterns-server-kvm_server-20210330-4.1.x86_64 …[concluído]
(2/3) Instalando: virt-manager-4.1.0-6.1.noarch …[concluído]
(3/3) Instalando: patterns-server-kvm_tools-20210330-4.1.x86_64 …[concluído]
Executando scripts %posttrans …[concluído]
edson@localhost:~> sudo systemctl enable libvirtd
Failed to enable unit: Unit file libvirtd.service does not exist.
edson@localhost:~> sudo systemctl start libvirtd
Failed to start libvirtd.service: Unit libvirtd.service not found.

@Serial.com Hi and welcome to the Forum :smile:
Not sure about patterns for kvm, I normally install qemu and libvirt direct with zypper, I suspect a bug in those patterns.

Thank you very much for the welcome

I had installed OpenSuse tembleweed in a virtual machine on fedora and tested several applications. There it was working normally.

I decided to install OpenSuse Tembleweed on one of the HDs I have on my machine and when I was performing the post installation, I decided to install virt-manager and that’s when this error message appeared, where after some research I could not solve this problem.

Virtualization is enabled in the Bios.

So, install libvirtd-daemon. Why are you surprised that unit does not exist if you did not install package providing this unit?

P.S. this is English speaking forum. Please, either post command output in English or post in the subforum for your language.

Sorted out:

I just don’t understand why the three packages ( libvirt libvirt-daemon libvirt-daemon-config-nwfilter ) didn’t install together. Only qemu had been installed.

sudo zypper in qemu && sudo zypper in libvirt
[sudo] senha para root:
Carregando dados do repositório…
Lendo os pacotes instalados…
‘qemu’ já está instalado.
Nenhum candidato a atualização para ‘qemu-7.1.0-13.1.x86_64’. A maior versão disponível já está instalada.
Resolvendo dependências de pacote…
Nada a fazer.
Carregando dados do repositório…
Lendo os pacotes instalados…
Resolvendo dependências de pacote…

Os seguintes 3 pacotes NOVOS serão instalados:
libvirt libvirt-daemon libvirt-daemon-config-nwfilter

3 novos pacotes a serem instalados.
Tamanho total do download: 289,8 KiB. Já em cache: 0 B. Após a operação, 579,7
KiB adicionais serão utilizados.
Continuar? [s/n/v/…? exibe todas as opções] (s): s
Baixando: libvirt-daemon-9.1.0-1.1.x86_64 (Repositório principal (OSS))
(1/3), 190,1 KiB
Baixando: libvirt-daemon-9.1.0-1.1.x86_64.rpm …[concluído (2,0 KiB/s)]
Baixando: libvirt-daemon-config-nwfilter-9.1.0-1.1.x86_64 (Repositório principal
(OSS))
(2/3), 52,4 KiB
Baixando: libvirt-daemon-config-nwfilter-9.1.0-1.1.x86_64[concluído (2,1 KiB/s)]
Baixando: libvirt-9.1.0-1.1.x86_64 (Repositório principal (OSS))
(3/3), 47,3 KiB
Baixando: libvirt-9.1.0-1.1.x86_64.rpm …[concluído (1,9 KiB/s)]

Verificando por conflito de arquivos: …[concluído]
(1/3) Instalando: libvirt-daemon-9.1.0-1.1.x86_64 …[concluído]
(2/3) Instalando: libvirt-daemon-config-nwfilter-9.1.0-1.1.x86_64 …[concluído]
(3/3) Instalando: libvirt-9.1.0-1.1.x86_64 …[concluído]
Executando scripts %posttrans …[concluído]
edson@localhost:~> sudo systemctl enable libvirtd
Created symlink /etc/systemd/system/multi-user.target.wants/libvirtd.service → /usr/lib/systemd/system/libvirtd.service.
Created symlink /etc/systemd/system/sockets.target.wants/virtlockd.socket → /usr/lib/systemd/system/virtlockd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/libvirtd.socket → /usr/lib/systemd/system/libvirtd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/libvirtd-ro.socket → /usr/lib/systemd/system/libvirtd-ro.socket.
edson@localhost:~> sudo systemctl start libvirtd

Thanks! Sorted out

I’ll pay attention to the language

Sorry? The computer output you pasted shows exactly the opposite:

Maybe people did not explain to you how to let programs making output in English. When you put LANG=C before a command the output will be in English.

LANG=C zypper in qemu  ........

Hello

Thank you very much for the explanation

Just one more doubt

Are there any other repositories I need to enable?

sudo LANG=C zypper ref && sudo LANG=C zypper dup
Repository ‘Brave Browser’ is up to date.
Repository ‘Repositório principal (Non-OSS)’ is up to date.
Repository ‘Repositório principal (OSS)’ is up to date.
Repository ‘Repositório principal de atualização’ is up to date.
Repository ‘packman’ is up to date.
Repository ‘Open H.264 Codec (openSUSE Tumbleweed)’ is up to date.
All repositories have been refreshed.
Loading repository data…
Reading installed packages…
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See ‘man zypper’ for more information about this command.
Computing distribution upgrade…
Nothing to do.

@Serial.com Looks good, ignore that warning (it’s benign), just make sure you use zypper dup I prefer to add verbosity to get more information via zypper -vvv dup.

2 Likes

@malcolmlewis - Thanks for the suggestion, very good indeed.

sorry I see your post after I posted this hopefully this solve the issue Yast to install KVM Hypervisor libvirt-daemon not installed from GUI or pattern kvm_server kvm_tools

1 Like