cockpit-machines
cockpit-machines copied to clipboard
Vm creation fails with: failed to initialize spice server (Ubuntu 22.04)
Explain what happens
ERROR internal error: process exited while connecting to monitor: 2023-09-13T07:02:14.596717Z qemu-system-x86_64: warning: Spice: ../server/reds.cpp:2512:reds_init_socket: getaddrinfo(::1,5913): Address family for hostname not supported 2023-09-13T07:02:14.596749Z qemu-system-x86_64: warning: Spice: ../server/reds.cpp:3387:do_spice_init: Failed to open SPICE sockets 2023-09-13T07:02:14.596760Z qemu-system-x86_64: failed to initialize spice server Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start ubuntu-desktop otherwise, please restart your installation.
Version of Cockpit
cockpit-machines 298-1~bpo22.04.1 -- every thing else 300.1-1~bpo22.04.1
Where is the problem in Cockpit?
Services
Server operating system
Ubuntu
Server operating system version
22.04
What browsers are you using?
Firefox
System log
I used this same .iso a month or so ago and the vm created fine.
Tried a few more isos and got the same error.
Tried rebooting and still no good.
I am completely unable to create any new vm.
Any ideas here? I mean this pretty much breaks the fundamental purpose of cockpit.
@skobyda Any idea about that spice error? That sounds like a missing package perhaps, or some customization to enable/disable spice?
We run tests on Ubuntu 22.04, it does work in general. @tgwaste as a first step, please give us the output of
dpkg -l '*qemu*' '*libvirt'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-======================================-============-======================================================================
ii ipxe-qemu 1.21.1+git-20220113.fbbdc3926-0ubuntu1 all PXE boot firmware - ROM images for qemu
ii ipxe-qemu-256k-compat-efi-roms 1.0.0+git-20150424.a25a16d-0ubuntu4 all PXE boot firmware - Compat EFI ROM images for qemu
ii libvirt-daemon-driver-qemu 8.0.0-1ubuntu7.6 amd64 Virtualization daemon QEMU connection driver
ii python3-libvirt 8.0.0-1build1 amd64 libvirt Python 3 bindings
ii qemu-block-extra 1:6.2+dfsg-2ubuntu6.13 amd64 extra block backend modules for qemu-system and qemu-utils
un qemu-keymaps <none> <none> (no description available)
un qemu-kvm <none> <none> (no description available)
un qemu-skiboot <none> <none> (no description available)
un qemu-slof <none> <none> (no description available)
un qemu-system <none> <none> (no description available)
un qemu-system-arm <none> <none> (no description available)
ii qemu-system-common 1:6.2+dfsg-2ubuntu6.13 amd64 QEMU full system emulation binaries (common files)
ii qemu-system-data 1:6.2+dfsg-2ubuntu6.13 all QEMU full system emulation (data files)
ii qemu-system-gui 1:6.2+dfsg-2ubuntu6.13 amd64 QEMU full system emulation binaries (user interface and audio support)
un qemu-system-i386 <none> <none> (no description available)
un qemu-system-mips <none> <none> (no description available)
un qemu-system-misc <none> <none> (no description available)
un qemu-system-ppc <none> <none> (no description available)
un qemu-system-s390x <none> <none> (no description available)
un qemu-system-sparc <none> <none> (no description available)
ii qemu-system-x86 1:6.2+dfsg-2ubuntu6.13 amd64 QEMU full system emulation binaries (x86)
un qemu-system-x86-64 <none> <none> (no description available)
un qemu-system-x86-microvm <none> <none> (no description available)
un qemu-system-x86-xen <none> <none> (no description available)
ii qemu-utils 1:6.2+dfsg-2ubuntu6.13 amd64 QEMU utilities
I botched the command, I meant dpkg -l '*qemu*' '*libvirt*'
, but it's fine -- I don't see any extra related spice packages in our test VMs.
It's worth a try to install virt-viewer
and virtinst
and check if that makes a difference?
these are already installed actually :(
virt-viewer is already the newest version (7.0-2build2).
virtinst is already the newest version (1:4.0.0-1).
Looks like https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1492621