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

[virtio-blk] [virtio-scsi] The format can not complete successfully when 'Perform a quick format' uncheck with win11(22h2)

    • b238
    • Major
    • sst_virtualization_windows
    • 17
    • 19
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • No
    • If docs needed, set a value

      Description of problem:

      The format can not complete successfully when 'Perform a quick format' is uncheck with win11(22h2)

      Version-Release number of selected component (if applicable):

      kernel-5.14.0-167.el9.x86_64
      qemu-kvm-7.1.0-1.el9.x86_64
      edk2-ovmf-20220526git16779ede2d36-4.el9.noarch
      seabios-bin-1.16.0-4.el9.noarch
      virtio-win-prewhql-227.iso

      How reproducible:
      100%

      Steps to Reproduce:
      1. Boot a win11(22H2) guest with a data disk (stg1.qcow2).

      /usr/libexec/qemu-kvm \
      -name 'avocado-vt-vm3' \
      -machine q35 \
      -nodefaults \
      -vga std \
      -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x3 \
      -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x3.0x1 \
      -device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x3.0x2 \
      -device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x3.0x3 \
      -device pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x3.0x4 \
      -device pcie-root-port,port=0x15,chassis=6,id=pci.6,bus=pcie.0,addr=0x3.0x5 \
      -device pcie-root-port,port=0x16,chassis=7,id=pci.7,bus=pcie.0,addr=0x3.0x6 \
      -device pcie-root-port,port=0x17,chassis=8,id=pci.8,bus=pcie.0,addr=0x3.0x7 \
      -device virtio-net-pci,mac=9a:36:83:b6:3d:05,id=idJVpmsF,netdev=id23ZUK6,bus=pci.3 \
      -netdev tap,id=id23ZUK6,vhost=on \
      -m 14336 \
      -smp 2,maxcpus=4 \
      -cpu 'Skylake-Server',hv_stimer,hv_synic,hv_vpindex,hv_reset,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv-tlbflush,+kvm_pv_unhalt \
      -drive id=drive_cd1,if=none,snapshot=off,aio=threads,cache=none,media=cdrom,file=/home/kvm_autotest_root/iso/windows/virtio-win-prewhql-0.1-224.iso\
      -device ide-cd,id=cd2,drive=drive_cd1,bus=ide.0,unit=0 \
      -device piix3-usb-uhci,id=usb -device usb-tablet,id=input0 \
      -vnc :10 \
      -rtc base=localtime,clock=host,driftfix=slew \
      -boot order=cdn,once=c,menu=off,strict=off \
      -enable-kvm \
      -qmp tcp:0:1231,server,nowait \
      -monitor stdio \
      -device pvpanic,id=pvpanic0,ioport=0x0505 \
      -device virtio-serial-pci,id=virtio-serial1,max_ports=31,bus=pci.5 \
      -chardev socket,id=channel2,path=/tmp/helloworld2,server=on,wait=off -device virtserialport,bus=virtio-serial1.0,chardev=channel2,name=org.qemu.guest_agent.0 \
      -drive file=/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd,if=pflash,format=raw,unit=0,readonly=on \
      -drive file=/home/OVMF_VARS.fd,if=pflash,format=raw,unit=1 \
      -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \
      -chardev socket,id=chrtpm,path=/tmp/guest-swtpm.sock \
      -device tpm-crb,tpmdev=tpm-tpm0,id=tpm0 \
      -blockdev node-name=file_stg2,driver=file,cache.direct=on,cache.no-flush=off,filename=/home/win11-64-virtio.qcow2,aio=threads \
      -blockdev node-name=drive_stg2,driver=qcow2,cache.direct=on,cache.no-flush=off,file=file_stg2 \
      -device virtio-blk-pci,id=stg2,drive=drive_stg2 \
      -blockdev node-name=file_stg3,driver=file,cache.direct=on,cache.no-flush=off,auto-read-only=on,discard=unmap,aio=threads,filename=/home/kvm_autotest_root/images/stg1.qcow2,aio=threads \
      -blockdev node-name=drive_stg3,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_stg3,discard=unmap \
      -device virtio-blk-pci,id=st32,drive=drive_stg3 \

      2. Try to format data disk stg1.qcow2 via disk manager(uncheck 'Perform a quick format' )

      Actual results:
      After step2, The format did not complete successfully.

      Expected results:
      The format can complete successfully.

      Additional info:
      1. not reproduce this issue with win11(21H2).

            rhn-support-vrozenfe Vadim Rozenfeld
            rhn-support-menli Menghuan Li
            virt-maint virt-maint
            Menghuan Li Menghuan Li
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: