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

Add support for winutils.iso added when virt-install

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • 1
    • rhel-virt-networking-core
    • ssg_virtualization
    • VIRT-NET-CY25-Nov-26-Sprint 7
    • 3
    • False
    • Hide

      None

      Show
      None
    • None

      Case: https://github.com/avocado-framework/avocado-vt/pull/4256/files  

      VT_TYPE=libvirt python3 /home/kar/ConfigTest.py --testcase=virtual_network.qemu_test.boot_with_multiqueue --guestname=Win2025 --machines=q35 --nicmodel=virtio_net --platform=x86_64 --customsparams='netdst=switch' --clone=no

      Log

       

      [stdlog] 2025-12-11 08:42:19,941 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: wmic logicaldisk where (VolumeName='WIN_UTILS') get DeviceID
      [stdlog] 2025-12-11 08:42:20,127 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: echo %errorlevel%
      [stdlog] 2025-12-11 08:42:21,230 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: wmic logicaldisk where (VolumeName='WIN_UTILS') get DeviceID
      [stdlog] 2025-12-11 08:42:21,441 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: echo %errorlevel%
      [stdlog] 2025-12-11 08:42:22,544 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: wmic logicaldisk where (VolumeName='WIN_UTILS') get DeviceID
      [stdlog] 2025-12-11 08:42:22,730 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: echo %errorlevel%
      [stdlog] 2025-12-11 08:42:23,834 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: wmic logicaldisk where (VolumeName='WIN_UTILS') get DeviceID
      [stdlog] 2025-12-11 08:42:24,019 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: echo %errorlevel%
      [stdlog] 2025-12-11 08:42:25,122 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: wmic logicaldisk where (VolumeName='WIN_UTILS') get DeviceID
      [stdlog] 2025-12-11 08:42:25,306 aexpect.client client           L1365 DEBUG| [10.37.158.22] Sending command: echo %errorlevel%
      [stderr] Traceback (most recent call last):
      [stderr]   File "/root/.local/lib/python3.12/site-packages/avocado_vt/plugins/vt_runner.py", line 74, in runTest
      [stderr]     raise self.__status  # pylint: disable-msg=E0702
      [stderr]     ^^^^^^^^^^^^^^^^^^^
      [stderr]   File "/root/.local/lib/python3.12/site-packages/avocado_vt/test.py", line 146, in setUp
      [stderr]     self._runTest()
      [stderr]   File "/root/.local/lib/python3.12/site-packages/avocado_vt/test.py", line 294, in _runTest
      [stderr]     run_func(self, params, env)
      [stderr]   File "/root/avocado/data/avocado-vt/virttest/test-providers.d/downloads/io-github-autotest-libvirt/libvirt/tests/src/virtual_network/qemu/boot_with_multiqueue.py", line 70, in run
      [stderr]     msis, cur_queues = utils_net.get_msis_and_queues_windows(params, vm)
      [stderr]                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [stderr]   File "/root/.local/lib/python3.12/site-packages/virttest/utils_net.py", line 4540, in get_msis_and_queues_windows
      [stderr]     output = dump_traceview_log_windows(params, vm, timeout)
      [stderr]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [stderr]   File "/root/.local/lib/python3.12/site-packages/virttest/utils_net.py", line 4480, in dump_traceview_log_windows
      [stderr]     pdb_local_path, traceview_local_path = _prepare_traceview_windows(
      [stderr]                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [stderr]   File "/root/.local/lib/python3.12/site-packages/virttest/utils_net.py", line 4388, in _prepare_traceview_windows
      [stderr]     traceview_path = _get_traceview_path(session, params)
      [stderr]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [stderr]   File "/root/.local/lib/python3.12/site-packages/virttest/utils_net.py", line 4341, in _get_traceview_path
      [stderr]     return utils_misc.set_winutils_letter(session, traceview_path_template)
      [stderr]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [stderr]   File "/root/.local/lib/python3.12/site-packages/virttest/utils_misc.py", line 2513, in set_winutils_letter
      [stderr]     raise ValueError("Failed to set winutils letter due to missing volume ID.")
      [stderr] ValueError: Failed to set winutils letter due to missing volume ID.
      

      Fix method

      We need to add winutils.iso for virt-install cmd:

       

      /usr/bin/virt-install --connect=qemu:///system --hvm --accelerate --name 'avocado-vt-vm1' --machine q35 --memory=62464 --vcpu=12 --import --vnc --os-variant rhel-unknown --serial pty --memballoon model=virtio --controller type=scsi,model=virtio-scsi --disk path=/home/kvm_autotest_root/images/win2025-64-virtio-scsi-ovmf.qcow2,bus=scsi,size=64,format=qcow2,cache=none --network=bridge=switch,model=virtio,mac=52:54:00:7e:d4:97,driver_queues=256 --boot loader=/usr/share/OVMF/OVMF_CODE.secboot.fd,loader.readonly=yes,loader.type=pflash,loader.secure=no,nvram.template=/usr/share/OVMF/OVMF_VARS.fd --noautoconsole

              rhn-support-leiyang Lei Yang
              nanli@redhat.com Nannan Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: