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

    Unsolved Help me understand KVM Networking

    IT Discussion
    kvm networking setup help fedora fedora 27 cockpit
    8
    29
    4.4k
    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.
    • JaredBuschJ
      JaredBusch
      last edited by

      So working, but lots of packet loss for a while.

      0_1514491104806_d57c0e5a-bcbf-4512-8d41-507781e19336-image.png

      It seems solid now.
      0_1514491185933_152af0bb-9c5e-4e27-bc15-f61046d98734-image.png

      Nevermind.. while it was trying to communicate out to get the base repo info, the pings failed. Once that timed out, the pings worked. Just tried it a couple times...

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

        @stacksofplates said in Help me understand KVM Networking:

        I also usually just use macvtap. If I need host to guest communication I just set up a private network for them to communicate on.

        So how do you setup a private connection?

        I have no issues with using macvtap on the team.

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

          @jaredbusch said in Help me understand KVM Networking:

          @stacksofplates said in Help me understand KVM Networking:

          I also usually just use macvtap. If I need host to guest communication I just set up a private network for them to communicate on.

          So how do you setup a private connection?

          I have no issues with using macvtap on the team.

          You can just create it in Virt-Manager. I'll jump on my laptop and take a screenshot.

          1 Reply Last reply Reply Quote 0
          • stacksofplatesS
            stacksofplates
            last edited by stacksofplates

            Just click on your connection and go to edit -> connection details and click on the Virtual Networks tab.

            Click the plus

            0_1514491907472_createprivate.png

            Then run through the wizard.

            0_1514491928279_name.png

            0_1514491934772_ipv4 settings.png

            0_1514491943423_last.png

            If you choose NAT instead it will still work but is kind of pointless since you will already have an address through the macvtap.

            You can do this through virsh as well. The host uses dnsmasq to configure everything so you can also add reservations and all of the other goodies as well. For reservations you can just add it in after the range line:

                <host mac='de:ad:be:ef:ca:fe' name='test-vm' ip='192.168.30.50'/>
            

            0_1514492370729_virsh.png

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

              Works perfectly.

              1 Reply Last reply Reply Quote 3
              • stacksofplatesS
                stacksofplates
                last edited by

                Too bad ovs isnt in the repos for RHEL/CentOS. You can set up these private networks and connect them through a VXLAN with ovs. That way you can have something like a separate dev network on the same hosts and they can communicate between hosts.

                black3dynamiteB 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @stacksofplates
                  last edited by

                  @stacksofplates said in Help me understand KVM Networking:

                  Too bad ovs isnt in the repos for RHEL/CentOS. You can set up these private networks and connect them through a VXLAN with ovs. That way you can have something like a separate dev network on the same hosts and they can communicate between hosts.

                  Not available in the epel repo?

                  wirestyle22W 1 Reply Last reply Reply Quote 0
                  • wirestyle22W
                    wirestyle22 @black3dynamite
                    last edited by

                    @black3dynamite said in Help me understand KVM Networking:

                    @stacksofplates said in Help me understand KVM Networking:

                    Too bad ovs isnt in the repos for RHEL/CentOS. You can set up these private networks and connect them through a VXLAN with ovs. That way you can have something like a separate dev network on the same hosts and they can communicate between hosts.

                    Not available in the epel repo?

                    That is apparently the case unless my google--fu isn't up to snuff

                    stacksofplatesS 1 Reply Last reply Reply Quote 0
                    • ObsolesceO
                      Obsolesce @JaredBusch
                      last edited by

                      @jaredbusch said in Help me understand KVM Networking:

                      I will have easy access to the VM, but not the host, because of "reasons" that have nothing to do with IT.

                      You can't access the host externally, as in you will only be able to access the host via one of it's guests? That seems like a weird requirement.

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

                        @tim_g said in Help me understand KVM Networking:

                        @jaredbusch said in Help me understand KVM Networking:

                        I will have easy access to the VM, but not the host, because of "reasons" that have nothing to do with IT.

                        You can't access the host externally, as in you will only be able to access the host via one of it's guests? That seems like a weird requirement.

                        Yes it is. Yet, if I drive 5 hours to be on site, I can have all the local console I want.

                        As I stated, not IT related reasoning.

                        1 Reply Last reply Reply Quote 0
                        • stacksofplatesS
                          stacksofplates @wirestyle22
                          last edited by

                          @wirestyle22 said in Help me understand KVM Networking:

                          @black3dynamite said in Help me understand KVM Networking:

                          @stacksofplates said in Help me understand KVM Networking:

                          Too bad ovs isnt in the repos for RHEL/CentOS. You can set up these private networks and connect them through a VXLAN with ovs. That way you can have something like a separate dev network on the same hosts and they can communicate between hosts.

                          Not available in the epel repo?

                          That is apparently the case unless my google--fu isn't up to snuff

                          Nope. It is available in Fedora though. If you want to install it you have to manually build the RPMs. While not hard to build it would be a pain to maintain updates.

                          matteo nunziatiM 1 Reply Last reply Reply Quote 1
                          • matteo nunziatiM
                            matteo nunziati @stacksofplates
                            last edited by

                            @stacksofplates said in Help me understand KVM Networking:

                            @wirestyle22 said in Help me understand KVM Networking:

                            @black3dynamite said in Help me understand KVM Networking:

                            @stacksofplates said in Help me understand KVM Networking:

                            Too bad ovs isnt in the repos for RHEL/CentOS. You can set up these private networks and connect them through a VXLAN with ovs. That way you can have something like a separate dev network on the same hosts and they can communicate between hosts.

                            Not available in the epel repo?

                            That is apparently the case unless my google--fu isn't up to snuff

                            Nope. It is available in Fedora though. If you want to install it you have to manually build the RPMs. While not hard to build it would be a pain to maintain updates.

                            OVS is used by oVirt so maybe the centos ovirt repo has it (or the ovirt stable repo)

                            stacksofplatesS 1 Reply Last reply Reply Quote 1
                            • stacksofplatesS
                              stacksofplates @matteo nunziati
                              last edited by

                              @matteo-nunziati said in Help me understand KVM Networking:

                              @stacksofplates said in Help me understand KVM Networking:

                              @wirestyle22 said in Help me understand KVM Networking:

                              @black3dynamite said in Help me understand KVM Networking:

                              @stacksofplates said in Help me understand KVM Networking:

                              Too bad ovs isnt in the repos for RHEL/CentOS. You can set up these private networks and connect them through a VXLAN with ovs. That way you can have something like a separate dev network on the same hosts and they can communicate between hosts.

                              Not available in the epel repo?

                              That is apparently the case unless my google--fu isn't up to snuff

                              Nope. It is available in Fedora though. If you want to install it you have to manually build the RPMs. While not hard to build it would be a pain to maintain updates.

                              OVS is used by oVirt so maybe the centos ovirt repo has it (or the ovirt stable repo)

                              I'm assuming it's just building the RPM since it's not in the normal repo.

                              http://resources.ovirt.org/pub/ovirt-4.2/

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