ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    KVM networking with libvirt (virsh) questions

    IT Discussion
    kvm libvirt virsh networking debian macvtap
    2
    5
    634
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      1337
      last edited by 1337

      I'm using MacVTap driver on plain kvm (debian 11) but I don't understand how kvm networking configuration using libvirt relates to the linux networking configuration.

      When I create a network using virsh I would expect /etc/networking/interfaces on the host to also contain my newly created networks but it doesn't.

      I'm probably looking at the wrong things or with the wrong tools. But when I search, I find old information that isn't current. Right now I don't know where to look cause I don't know how it works.

      What I'm trying to accomplish is to find out what linux utilities (not libvirt related) I have that I can use to inspect what has actually happened "under the hood".

      Any ideas on how I should learn what I don't understand?

      1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by

        I assume that Debian 11 uses NetworkManager? I don't have a clean Debian system running KVM to check.

        If so nmcli and its related commands are your friend.

        This is from Fedora 36 + KVM:
        e0b727d1-9878-4667-9f85-af03084a86ad-image.png

        b615fb45-c1ea-4840-819a-6f5e5c6720ad-image.png

        1 2 Replies Last reply Reply Quote 1
        • 1
          1337 @JaredBusch
          last edited by

          @JaredBusch said in KVM networking with libvirt (virsh) questions:

          I assume that Debian 11 uses NetworkManager? I don't have a clean Debian system running KVM to check.

          I will check.

          1 1 Reply Last reply Reply Quote 0
          • 1
            1337 @1337
            last edited by 1337

            @Pete-S said in KVM networking with libvirt (virsh) questions:

            @JaredBusch said in KVM networking with libvirt (virsh) questions:

            I assume that Debian 11 uses NetworkManager? I don't have a clean Debian system running KVM to check.
            

            I will check.

            No, debian 11 doesn't use NetworkManager by default, at least not on servers (package is called network-manager).

            So nmcli is not available.

            1 Reply Last reply Reply Quote 0
            • 1
              1337 @JaredBusch
              last edited by 1337

              @JaredBusch said in KVM networking with libvirt (virsh) questions:

              I assume that Debian 11 uses NetworkManager? I don't have a clean Debian system running KVM to check.

              If so nmcli and its related commands are your friend.

              Thanks Jared.

              Reading about nmcli and seeing your screenshots led me to understand that macvtap devices are only active when the VM is actually running.

              Using ip link I can now see the macvtap device on the host. One for each VM connected.

              7ad85ba6-1b7b-40a2-aa7a-d8e12988683f-image.png

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post