Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Internet not working on VM (Debian) based on KVM

    Scheduled Pinned Locked Moved Virtualization
    7 Posts 2 Posters 2.5k 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
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.