https://bugzilla.suse.com/show_bug.cgi?id=1209596 Bug ID: 1209596 Summary: virt-install does no support virtualization type 'kvm' Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Virtualization:Tools Assignee: virt-bugs@suse.de Reporter: jcao@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- ## Summary virt-install with "--virt-type kvm" option failed and report "Host does not support domain type kvm for virtualization type 'hvm' with architecture 'x86_64'" ## Reproduce steps 1. install Tumbleweed snapshot 20230319 2. zypper in -t pattern kvm_server kvm_tools 3. enable virtqemud.service, virtstoraged.service 4. run virt-install to install a tW guest and fail. virt-install --name opensuse-tumbleweed-64-fv-kvm -v --location http://download.opensuse.org/tumbleweed/repo/oss --disk path=/var/lib/libvirt/images/opensuse-tumbleweed-64-fv-kvm.qcow2,size=16,format=qcow2 --vcpus 1 --memory 4096 --extra-args "console=ttyS0,115200n8" --network=bridge=br0,model=virtio --vnc --extra-args "textmode=1" --autoconsole text --debug --virt-type kvm [Wed, 22 Mar 2023 00:57:43 virt-install 1639] DEBUG (cli:256) File "/usr/bin/virt-install", line 8, in <module> virtinstall.runcli() File "/usr/share/virt-manager/virtinst/virtinstall.py", line 1244, in runcli fail(main_e) File "/usr/share/virt-manager/virtinst/cli.py", line 256, in fail log.debug("".join(traceback.format_stack())) [Wed, 22 Mar 2023 00:57:43 virt-install 1639] ERROR (cli:257) Host does not support domain type kvm for virtualization type 'hvm' with architecture 'x86_64' [Wed, 22 Mar 2023 00:57:43 virt-install 1639] DEBUG (cli:259) Traceback (most recent call last): File "/usr/share/virt-manager/virtinst/virtinstall.py", line 1237, in runcli sys.exit(main()) File "/usr/share/virt-manager/virtinst/virtinstall.py", line 1224, in main guest, installer = build_guest_instance(conn, options) File "/usr/share/virt-manager/virtinst/virtinstall.py", line 652, in build_guest_instance guest = _build_options_guest(conn, options) File "/usr/share/virt-manager/virtinst/virtinstall.py", line 639, in _build_options_guest guest.set_capabilities_defaults() File "/usr/share/virt-manager/virtinst/guest.py", line 688, in set_capabilities_defaults capsinfo = self.lookup_capsinfo() File "/usr/share/virt-manager/virtinst/guest.py", line 677, in lookup_capsinfo self._capsinfo = self.conn.caps.guest_lookup( File "/usr/share/virt-manager/virtinst/capabilities.py", line 319, in guest_lookup raise ValueError(msg) The entire output is attached. 5. if "--virt-type kvm" is removed from the command above, guest will begin to be created without this error. 6. man virt-install --virt-type The hypervisor to install on. Example choices are kvm, qemu, or xen. Available options are listed via 'virsh capabilities' in the <domain> tags. This deprecates the --accelerate option, which is now the default behavior. To install a plain QEMU guest, use '--virt-type qemu' ## Reproducibility 100% ## Last good build We had a green test on snapshot 20230307. ## Environment(optional) kernel-default-6.2.6-1.2.x86_64 libvirt-libs-9.1.0-2.2.x86_64 qemu-7.1.0-14.1.x86_64 virt-install-4.1.0-6.1.noarch ## Logs(suppportconfig should be private) the debug output and supportconfig files are attached. ## Workaround yes, remove "--virt-type kvm" option from virt-install. -- You are receiving this mail because: You are on the CC list for the bug.