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

libvirt cannot create interface with <backend type="passt"/> as non-root [rhel-10.0]

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0
    • libvirt / Networking
    • None
    • Yes
    • Important
    • rhel-sst-virt-tools
    • ssg_virtualization
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      Description of problem:
      v2v conversion failed with non-root user

      Version-Release number of selected component (if applicable):
      virt-v2v-2.7.1-1.el10.x86_64
      libvirt-libs-10.9.0-1.el10.x86_64
      libnbd-1.20.3-2.el10.x86_64
      nbdkit-1.40.4-2.el10.x86_64
      libvirt-10.9.0-1.el10.x86_64
      guestfs-tools-1.52.2-2.el10.x86_64
      virtio-win-1.9.44-0.el10.noarch
      libguestfs-1.54.0-5.el10.x86_64
      qemu-kvm-9.1.0-6.el10.x86_64

      How reproducible:
      100%

      Steps:
      1. Create non-root user;
      2. convert VM via virt-v2v with non-root user.

      # id -a vwu
      uid=1000(vwu) gid=1000(vwu) groups=1000(vwu),10(wheel)
      [vwu@RHEL10-test ~]$ virt-v2v -ic vpx://root@10.73.212.129/data/10.73.212.36/?no_verify=1 -o libvirt -of raw --mac 00:50:56:af:ca:12:network:v2v_net_0 esx8.0-rhel9.6-x86_64 -on avocado-vt-vm1  -it vddk -io vddk-libdir=/home/v2v-tools/vddk8.0.0 -io vddk-thumbprint=CB:9F:B1:9D:33:49:6C:60:AD:3C:A5:16:77:91:5F:CD:1B:24:B1:43 -ip /v2v-ops/esxpw
      [   0.0] Setting up the source: -i libvirt -ic vpx://root@10.73.212.129/data/10.73.212.36/?no_verify=1 -it vddk esx8.0-rhel9.6-x86_64
      [   1.9] Opening the source
      virt-v2v: error: libguestfs error: could not create appliance through 
      libvirt. Original error from libvirt: internal error: Child process (passt 
      --one-off --socket 
      /home/vwu/.cache/libvirt/qemu/run/passt/1-guestfs-qz6jmu5xw7dz-net0.socket 
      --pid 
      /home/vwu/.cache/libvirt/qemu/run/passt/1-guestfs-qz6jmu5xw7dz-net0-passt.pid 
      --address 169.254.2.15 --netmask 16) unexpected exit status 1: Failed to 
      bind UNIX domain socket: Permission denied
       [code=1 int1=-1]
      
      If reporting bugs, run virt-v2v with debugging enabled and include the 
      complete output:
      
        virt-v2v -v -x [...]
      
      

      Actual Result:
      As above description

      Excepted Result:
      v2v can convert guest successfully with non-root user.

              lstump@redhat.com Laine Stump
              vwu@redhat.com vera wu
              Laine Stump Laine Stump
              Yalan Zhang Yalan Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated: