Error creating Virtual machines on ROME (libvirt, virt-manager)

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:
ROME (iso 4172) with full updates

Desktop environment (KDE, LXQT…):
KDE

I was trying to help someone create a vm with virt-manager. We kept getting errors that stopped the vm creation.

Impossibile completare l'installazione: 'internal error: QEMU unexpectedly closed the monitor (vm='freebsd14.0'): 2026-01-02T18:03:05.176421Z qemu-system-x86_64: -chardev spicevmc,id=charchannel0,name=vdagent: 'spicevmc' is not a valid char driver name'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 71, 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 726, in start_install
    domain = self._create_guest(
             ^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/libvirt.py", line 4545, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: QEMU unexpectedly closed the monitor (vm='freebsd14.0'): 2026-01-02T18:03:05.176421Z qemu-system-x86_64: -chardev spicevmc,id=charchannel0,name=vdagent: 'spicevmc' is not a valid char driver name

Everything I could find was that they were permission based. But we couldn’t get around them.

Finally I decided to try in the ROCK install on my testbench. Went back to the clean install and system updates.

Did the full monty kvm/qemu/libvirt install:

dnf --refresh install --assumeyes qemu qemu-system-x86 qemu-img qemu-kvm ovmf virt-manager libvirt-utils lib64virt-devel qemu-device-usb qemu-user-binfmt iproute2 iproute2-doc iproute2-tc spice-protocol virtiofsd

I already had firewalld installed (yes, you need a firewall installed or else libvirt won’t work).

Is that overkill? Yes. But it has worked everytime on every distro (adjusting for package names) I’ve used.

Set the groups up; changed libvirtd.conf . . .and on ROCK it was FLAWLESS. Textbook example of creating a (freedos in this case) vm using virt-manager.

But not on Rome.

What am I forgetting?

To format your output so it’s in English. :wink:

LC_ALL=C <command> <options> then post output.

Unless somewhere in Unix/Linux they changed that…

:face_with_bags_under_eyes:

So rather than deleting the first 3 words… I just attempted again on my Rome testbench, copied the error to a thumb drive so I could get it to my main desktop, and…

Unable to complete install: 'internal error: process exited while connecting to monitor: 2026-01-04T18:25:43.965597Z qemu-system-x86_64: -chardev spicevmc,id=charchannel0,name=vdagent: 'spicevmc' is not a valid char driver name'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 71, 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 726, in start_install
    domain = self._create_guest(
             ^^^^^^^^^^^^^^^^^^^
  File "/usr/share/virt-manager/virtinst/install/installer.py", line 667, in _create_guest
    domain = self.conn.createXML(initial_xml or final_xml, 0)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/site-packages/libvirt.py", line 4545, in createXML
    raise libvirtError('virDomainCreateXML() failed')
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2026-01-04T18:25:43.965597Z qemu-system-x86_64: -chardev spicevmc,id=charchannel0,name=vdagent: 'spicevmc' is not a valid char driver name

It’s got to be some dumb permission error somewhere

PS: Thanks @ben79 . I forgot about that command
Oh and @zeroability : pfffft :blueberries: :squinting_face_with_tongue:

1 Like

Make sure the spice driver is installed.

1 Like

Son-of-a… :face_with_symbols_on_mouth:

That was it

banging-head-against-keyboard

My patented full monty qemu install was missing:

qemu-char-spice
qemu-ui-spice-app

Both of which are on the ROCK installs

Thanks @zeroability

If the issues is about installing or using virt-manager would there perhaps be a missing dependency or two for that?

There might be. I’m going to be doing additional testing this afternoon on it. I’ll be going through both rock and rome on my bench (I saved partition images before I installed anything) to see what’s up

So I’ll report back here later today

@ben79

OK, so I did an “install” and here are the results.

On Rock those 2 spice packages are installed with qemu-kvm and qemu-system-x86

On Rome, those packages are not installed at all.

So if we just change the dependencies we should be good.