FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2017
    Location
    toronto
    Posts
    31

    Qemu: no net when running with intel-iommu

    When I try to add 'q35' in qemu to get support for iommu, the net in the virtual environment fails. I would like it activated as my tests show it is around 30% faster and much more consistent in performance.

    Here's my script:
    Code:
    #!/bin/sh
    
    qemu-system-x86_64 -enable-kvm -cpu host \
    -drive format=raw,file=/home/user/Downloads/os.img,if=virtio,aio=native,cache.direct=on \
    -m 2G -smp 8,sockets=1,cores=4,threads=2 \
    -mem-path /dev/hugepages \
    -machine type=q35,accel=kvm,kernel-irqchip=split \
    -device intel-iommu,intremap=on,caching-mode=on

    Checking if iommu support is active:
    Code:
    [user@localhost Downloads]$ sudo virt-host-validate
      QEMU: Checking for hardware virtualization                                 : PASS
      QEMU: Checking if device /dev/kvm exists                                   : PASS
      QEMU: Checking if device /dev/kvm is accessible                            : PASS
      QEMU: Checking if device /dev/vhost-net exists                             : PASS
      QEMU: Checking if device /dev/net/tun exists                               : PASS
      QEMU: Checking for cgroup 'memory' controller support                      : PASS
      QEMU: Checking for cgroup 'memory' controller mount-point                  : PASS
      QEMU: Checking for cgroup 'cpu' controller support                         : PASS
      QEMU: Checking for cgroup 'cpu' controller mount-point                     : PASS
      QEMU: Checking for cgroup 'cpuacct' controller support                     : PASS
      QEMU: Checking for cgroup 'cpuacct' controller mount-point                 : PASS
      QEMU: Checking for cgroup 'cpuset' controller support                      : PASS
      QEMU: Checking for cgroup 'cpuset' controller mount-point                  : PASS
      QEMU: Checking for cgroup 'devices' controller support                     : PASS
      QEMU: Checking for cgroup 'devices' controller mount-point                 : PASS
      QEMU: Checking for cgroup 'blkio' controller support                       : PASS
      QEMU: Checking for cgroup 'blkio' controller mount-point                   : PASS
      QEMU: Checking for device assignment IOMMU support                         : PASS
      QEMU: Checking if IOMMU is enabled by kernel                               : PASS
       LXC: Checking for Linux >= 2.6.26                                         : PASS
       LXC: Checking for namespace ipc                                           : PASS
       LXC: Checking for namespace mnt                                           : PASS
       LXC: Checking for namespace pid                                           : PASS
       LXC: Checking for namespace uts                                           : PASS
       LXC: Checking for namespace net                                           : PASS
       LXC: Checking for namespace user                                          : PASS
       LXC: Checking for cgroup 'memory' controller support                      : PASS
       LXC: Checking for cgroup 'memory' controller mount-point                  : PASS
       LXC: Checking for cgroup 'cpu' controller support                         : PASS
       LXC: Checking for cgroup 'cpu' controller mount-point                     : PASS
       LXC: Checking for cgroup 'cpuacct' controller support                     : PASS
       LXC: Checking for cgroup 'cpuacct' controller mount-point                 : PASS
       LXC: Checking for cgroup 'cpuset' controller support                      : PASS
       LXC: Checking for cgroup 'cpuset' controller mount-point                  : PASS
       LXC: Checking for cgroup 'devices' controller support                     : PASS
       LXC: Checking for cgroup 'devices' controller mount-point                 : PASS
       LXC: Checking for cgroup 'blkio' controller support                       : PASS
       LXC: Checking for cgroup 'blkio' controller mount-point                   : PASS
       LXC: Checking if device /sys/fs/fuse/connections exists                   : PASS
    My machine is an HP ProDesk G3 (i7-7700) with all virtual support enabled in bios.

    Any ideas? Will give more info if asked. This is my third time typing this.


    *** EDIT ***

    Extra info:
    Code:
    [user@localhost Downloads]$ for d in /sys/kernel/iommu_groups/*/devices/*; do 
    >     n=${d#*/iommu_groups/*}; n=${n%%/*}
    >     printf 'IOMMU Group %s ' "$n"
    >     lspci -nns "${d##*/}"
    > done;
    IOMMU Group 0 00:00.0 Host bridge [0600]: Intel Corporation Intel Kaby Lake Host Bridge [8086:591f] (rev 05)
    IOMMU Group 1 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 630 [8086:5912] (rev 04)
    IOMMU Group 2 00:14.0 USB controller [0c03]: Intel Corporation 200 Series PCH USB 3.0 xHCI Controller [8086:a2af]
    IOMMU Group 2 00:14.2 Signal processing controller [1180]: Intel Corporation 200 Series PCH Thermal Subsystem [8086:a2b1]
    IOMMU Group 3 00:16.0 Communication controller [0780]: Intel Corporation 200 Series PCH CSME HECI #1 [8086:a2ba]
    IOMMU Group 3 00:16.3 Serial controller [0700]: Intel Corporation Device [8086:a2bd]
    IOMMU Group 4 00:17.0 RAID bus controller [0104]: Intel Corporation SATA Controller [RAID mode] [8086:2822]
    IOMMU Group 5 00:1f.0 ISA bridge [0601]: Intel Corporation 200 Series PCH LPC Controller (Q270) [8086:a2c6]
    IOMMU Group 5 00:1f.2 Memory controller [0580]: Intel Corporation 200 Series PCH PMC [8086:a2a1]
    IOMMU Group 5 00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
    IOMMU Group 5 00:1f.4 SMBus [0c05]: Intel Corporation 200 Series PCH SMBus Controller [8086:a2a3]
    IOMMU Group 5 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (5) I219-LM [8086:15e3]

    *** 2nd EDIT - SOLVED ***

    How bizarre, but I tried the Fedora28 image, and it worked just fine. Seems that even gl support is enabled.

    So, problem solved. Thanks guys. Couldn't have done it without you! :b
    Last edited by bedtime; 3rd May 2018 at 01:02 AM.

  2. #2
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,962

    Re: Qemu: no net when running with intel-iommu

    This is my third time typing this....

    So, problem solved. Thanks guys. Couldn't have done it without you! :b


    New users posting code boxes are automatically moderated by the spam detecting bot and threads are placed in a moderation queue for approval by forum staff. please do not create more than one thread, it will be dealt with as and when a member of forum staff is online.

    With that in mind, be aware that there are no paid technical support or forum staff here, it is a user community voluntarily staffed by other users. This means you cannot expect an immediate answer to a posted thread within minutes or even hours of posting. Please take the time to read the forum posting rules and guidelines which explain everything you need to know regarding how to get the best out of the forum, you will find them in the tips about the forum section along with some other useful topics.

    https://forums.fedoraforum.org/forum...bout-The-Forum

  3. #3
    Join Date
    Jul 2017
    Location
    toronto
    Posts
    31

    Re: Qemu: no net when running with intel-iommu

    Quote Originally Posted by antikythera
    New users posting code boxes are automatically moderated by the spam detecting bot and threads are placed in a moderation queue for approval by forum staff. please do not create more than one thread, it will be dealt with as and when a member of forum staff is online.
    When I posted the first two times I was just brought back to the forum with no notice that my post was pending approval. I thought it just hadn't gone through for some reason.

    With that in mind, be aware that there are no paid technical support or forum staff here, it is a user community voluntarily staffed by other users. This means you cannot expect an immediate answer to a posted thread within minutes or even hours of posting. Please take the time to read the forum posting rules and guidelines which explain everything you need to know regarding how to get the best out of the forum, you will find them in the tips about the forum section along with some other useful topics.

    https://forums.fedoraforum.org/forum...bout-The-Forum
    Thank you. Will do.

Similar Threads

  1. problem running Fedora-ARM under QEMU on F19
    By CNCDreamer in forum Using Fedora
    Replies: 2
    Last Post: 6th September 2013, 08:48 PM
  2. Desktop launcher running qemu not working
    By jsalvo in forum Using Fedora
    Replies: 2
    Last Post: 2nd August 2008, 09:36 AM
  3. running fedora 7 live cd with QEMU inside window$
    By preacherman in forum Using Fedora
    Replies: 0
    Last Post: 2nd September 2007, 09:00 PM
  4. Replies: 0
    Last Post: 30th January 2007, 03:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •