Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-66768

virt-install --input default set incorrect bus on aarch64

    • virt-manager-5.0.0-1.el10
    • No
    • Low
    • rhel-sst-virt-arm
    • ssg_virtualization
    • 17
    • 3
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • aarch64
    • None

      Please provide the package NVR for which the bug is seen:

      virt-install-4.1.0-7.el10.noarch

      How reproducible is this bug?: 100%

      Steps to reproduce

      Run virt-install with --input default.
      # virt-install --osinfo detect=on --name vm1 --memory 3172 --disk /var/lib/libvirt/images/vm1.img,size=8 --mac 52:54:00:54:42:d3 -l http://download.eng.rdu.redhat.com/rhel-10/nightly/RHEL-10/latest-RHEL-10.0/compose/BaseOS/aarch64/os/ -x inst.ks=http://192.168.122.1:8180/ks.cfg --noreboot --input default  --debug
      
      

      Expected results

      virt-install should run successfully. The input dev's bus should be set correctly.

      Actual results

      [Sun, 10 Nov 2024 06:51:32 virt-install 602371] DEBUG (installer:615) Generated final_xml: 
      <domain type="kvm">
        <name>vm1</name>
        <uuid>833bf598-5d25-4d49-a60a-5bd263fe98d1</uuid>
        <metadata>
          <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
            <libosinfo:os id="http://redhat.com/rhel/10.0"/>
          </libosinfo:libosinfo>
        </metadata>
        <memory>3248128</memory>
        <currentMemory>3248128</currentMemory>
        <vcpu>2</vcpu>
        <os firmware="efi">
          <type arch="aarch64" machine="virt">hvm</type>
          <boot dev="hd"/>
        </os>
        <features>
          <acpi/>
        </features>
        <cpu mode="host-passthrough"/>
        <clock offset="utc"/>
        <devices>
          <emulator>/usr/libexec/qemu-kvm</emulator>
          <disk type="file" device="disk">
            <driver name="qemu" type="qcow2"/>
            <source file="/var/lib/libvirt/images/vm1.img"/>
            <target dev="vda" bus="virtio"/>
          </disk>
          <controller type="usb" model="qemu-xhci" ports="15"/>
          <controller type="pci" model="pcie-root"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <controller type="pci" model="pcie-root-port"/>
          <interface type="network">
            <source network="default"/>
            <mac address="52:54:00:54:42:d3"/>
            <model type="virtio"/>
          </interface>
          <console type="pty"/>
          <channel type="unix">
            <source mode="bind"/>
            <target type="virtio" name="org.qemu.guest_agent.0"/>
          </channel>
          <input type="mouse" bus="ps2"/>
          <tpm>
            <backend type="emulator"/>
          </tpm>
          <memballoon model="virtio"/>
          <rng model="virtio">
            <backend model="random">/dev/urandom</backend>
          </rng>
        </devices>
      </domain>
      
      [Sun, 10 Nov 2024 06:51:32 virt-install 602371] DEBUG (installertreemedia:285) Removing /var/lib/libvirt/boot/virtinst-zlla7v1l-vmlinuz
      [Sun, 10 Nov 2024 06:51:32 virt-install 602371] DEBUG (installertreemedia:285) Removing /var/lib/libvirt/boot/virtinst-7sce51bn-initrd.img
      [Sun, 10 Nov 2024 06:51:32 virt-install 602371] DEBUG (cli:256)   File "/usr/bin/virt-install", line 8, in <module>
          virtinstall.runcli()
        File "/usr/share/virt-manager/virtinst/virtinstall.py", line 1234, in runcli
          sys.exit(main())
        File "/usr/share/virt-manager/virtinst/virtinstall.py", line 1227, in main
          start_install(guest, installer, options)
        File "/usr/share/virt-manager/virtinst/virtinstall.py", line 975, in start_install
          fail(e, do_exit=False)
        File "/usr/share/virt-manager/virtinst/cli.py", line 256, in fail
          log.debug("".join(traceback.format_stack()))
      
      [Sun, 10 Nov 2024 06:51:32 virt-install 602371] ERROR (cli:257) unsupported configuration: ps2 is not supported by this QEMU binary
      [Sun, 10 Nov 2024 06:51:32 virt-install 602371] DEBUG (cli:259) 
      Traceback (most recent call last):
        File "/usr/share/virt-manager/virtinst/virtinstall.py", line 955, in start_install
          domain = installer.start_install(
                   ^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/share/virt-manager/virtinst/install/installer.py", line 722, in start_install
          domain = self._create_guest(
                   ^^^^^^^^^^^^^^^^^^^
        File "/usr/share/virt-manager/virtinst/install/installer.py", line 663, in _create_guest
          domain = self.conn.createXML(initial_xml or final_xml, 0)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib64/python3.12/site-packages/libvirt.py", line 4545, in createXML
          raise libvirtError('virDomainCreateXML() failed')
      libvirt.libvirtError: unsupported configuration: ps2 is not supported by this QEMU binary
      

              phrdina@redhat.com Pavel Hrdina
              xiaodwan@redhat.com Xiaodai Wang
              Pavel Hrdina Pavel Hrdina
              Hongzhou Liu Hongzhou Liu
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: