Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Internet not working on VM (Debian) based on KVM

    Scheduled Pinned Locked Moved Virtualization
    7 Posts 2 Posters 3.2k Views
    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.
    • E
      ekhawmu
      last edited by

      Hi,

      I have read many threads and hopefully someone would help me to resolve my query.

      My host OS is Ubuntu and 2 VMs are running over KVM.  VM#1 (Debian 6) and VM#2 (PFSense).

      Internet connectivity of Host is via wireless lan.

      I want to run internet on Debian 6 through Pfsense.

      Following are the configurations:

      Pfsense           

      LAN    em1          192.168.1.1/24
      WAN  em2          10.0.2.15

      Debian 6
      Ip: 192.168.1.3

      Host: (Internet is working via Wireless LAN)
      IP: Dynamic ip of class B; 10.0.x.x

      Scenario:

      VM#1 ==========>  Pfsense ==============> Internet

      Could anyone please help me, so that internet in VM#1 can work through pfsense. I also tried to explain my scenario herewith attached image.

      Thanks in Advance.

      image.jpg
      image.jpg_thumb

      1 Reply Last reply
      Reply Quote 0
      • T
        tritron
        last edited by

        Did you try to ping goggle or yahoo ? Do get any errors ?

        1 Reply Last reply
        Reply Quote 0
        • E
          ekhawmu
          last edited by

          Yes when i do ping from VM to google or yahoo.com it says something like "no host/network found". However when i ping from Pfsense to google/yahoo it works.

          ping from VM to Pfsense LAN is working

          also, ping from pfsense WAN to internet is working

          ping from pfsense (LAN to WAN and vice-versa) also working…

          But not pinging from VM to www.yahoo.com.

          1 Reply Last reply
          Reply Quote 0
          • T
            tritron
            last edited by

            Please take look at resolv.conf on vm and add nameserver 8.8.8.8 (google) is default gateway pointing to pfsense ?

            1 Reply Last reply
            Reply Quote 0
            • E
              ekhawmu
              last edited by

              /etc/resolv.conf is empty. What should i add in it?

              1 Reply Last reply
              Reply Quote 0
              • T
                tritron
                last edited by

                Add at least nameserver 8.8.8.8 (gogle dns)

                1 Reply Last reply
                Reply Quote 0
                • E
                  ekhawmu
                  last edited by

                  Thanks a lot. its working…I just click on auto eth4 (which was created by Host) in network manager.

                  1 Reply Last reply
                  Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                  Privacy Policy · Cookie Policy