Bug 1216304 - cockpit virtual machines starts failed because ::1 address in template cannot be determined if ipv6 disabled
Summary: cockpit virtual machines starts failed because ::1 address in template cannot...
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Cockpit (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Alice Brooks
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-17 07:29 UTC by Zaoliang Luo
Modified: 2024-06-13 14:12 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zaoliang Luo 2023-10-17 07:29:07 UTC
Install Tumbleweed and I disabled ipV6
Access to cockpit webUI and create a vm.

For trying to start VM I got following issue:

--

[2:35 PM] ERROR internal error: process exited while connecting to monitor: 2023-10-12T12:35:21.926563Z qemu-system-x86_64: warning: Spice: reds.cpp:2551:reds_init_socket: getaddrinfo(::1,5901): Address family for hostname not supported 2023-10-12T12:35:21.926616Z qemu-system-x86_64: warning: Spice: reds.cpp:3441:do_spice_init: Failed to open SPICE sockets 2023-10-12T12:35:21.926637Z 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 small-server-tw otherwise, please restart your installation. Command '['virt-install', '--connect', 'qemu:///system', '--quiet', '--os-variant', 'opensusetumbleweed', '--reinstall', 'small-server-tw', '--wait', '-1', '--noautoconsole', '--cdrom', '/var/lib/libvirt/images/openSUSE-Tumbleweed-NET-x86_64-Current.iso']' returned non-zero exit status
any idea about this error?
warning: Spice: reds.cpp:3441:do_spice_init: Failed to open SPICE

--

found out there is a problem with address '::1' in template.
change it so, and VM can start without issue.

--
 <graphics type='spice' autoport='yes' listen='127.0.0.1'>
   <listen type='address' address='127.0.0.1'/>
--
Comment 1 Zaoliang Luo 2023-10-17 07:30:50 UTC
change owner as Adam (amajer@suse.com) wished, thanks!
Comment 2 Robert Simai 2024-06-03 15:53:16 UTC
Can confirm, this happens with current TW (only) when ipv6 is disabled.
Comment 3 Alice Brooks 2024-06-13 14:12:40 UTC
I've picked this one up and have got a PR submitted upstream: https://github.com/cockpit-project/cockpit-machines/pull/1677

Should have this resolved soon