Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : VM no internet access



Normal Mode | Print  

VM no internet access
redback38
Group: Member
Post Group: Newbie
Posts: 15
Status:
Hello, I'm moving slowly. I now have internet on the VPS with private ip addresses by following this tutorial
https://www.virtualizor.com/docs/admin/manage-vps-domain-forwarding/#kvm-lxc-openvz-7-and- xen

KVM, LXC, OpenVZ 7 and XEN
Login to command line console as root and follow below steps on host where you want internal network with working Internet access:

Create internal network (eg network and bridge name: HAProxy) on the host
Navigate to /etc/libvirt/qemu/networks
Create a new xml file with network_name (eg HAProxy) as filename and with following content:
<network>
  <name>HAProxy</name>
  <forward mode='nat'/>
  <bridge name='HAProxy' stp='on' delay='0' />
  <ip address='10.0.0.1' netmask='255.0.0.0'>
  </ip>
</network>
Define this network by running following command:
virsh net-define /etc/libvirt/qemu/networks/HAProxy.xml
Set to auto start this network by running following command (replace network name HAProxy with the one you created in below command):
virsh net-autostart HAProxy
Start this network by running following command (replace network name HAProxy with the one you created in below command):
virsh net-start HAProxy
Now create an IP Pool with internal network details through Virtualizor Admin Panel:
Navigate to Admin Panel > IP Pool > Create IP Pool
Select the server where you have setup the internal network
Provide a meaningful name for this pool
Set according to our example network:
Gateway to: 10.0.0.1
Netmask to: 255.0.0.0
Nameserver 1: 8.8.8.8
Nameserver 2: 8.8.4.4
First IP: 10.0.0.2
Last IP: 10.0.0.50
Enable VLAN: checked
VLAN Bridge: BRIDGE_NAME you set when creating it (HAProxy)
Click "Add IP Pool" to save the new pool
Create VPS with any one of the IPs in the above IP range. The VPS will have a working internet access
Done!


From the VPS I can ping:
# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=5.30 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=5.43 ms
On the other hand if I do a ping on www.google.fr (or any other domain name it does not work).

# ping www.google.com
Ping: www.google.fr: Temporary failure in name resolution

I thought it was from the DNS but
# cat /etc/resolv.conf
nameserver 4.2.2.1
nameserver 4.2.2.2

If anyone has an idea?
Sorry again for my english
IP: --   


Threads
 redback38   VM no internet access (9 Replies, Read 17840 times)
    |--  redback38   If it can...   on January 25, 2022, 7:24 am
    |--  redback38    Hello, I still...   on January 26, 2022, 4:10 pm
    |--  redback38    Hello, I still...   on January 26, 2022, 4:11 pm
    |--  redback38    Hello, I still...   on January 26, 2022, 6:19 pm
    |--  redback38   Hello, I'm moving...   on January 27, 2022, 9:10 am
    |--  redback38   Hello, I'm moving...   on January 27, 2022, 9:13 am
    |--  redback38   problem solved, it...   on January 27, 2022, 12:15 pm
    |--  redback38   Hello, when I...   on February 5, 2022, 11:25 am
    |--  redback38    find, you have...   on February 5, 2022, 1:00 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is July 5, 2025, 7:29 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.761