We have HP ProLiant DL120 G7 (ONLINE.NET data center in France) dedicated node with ESXI 5.5 installation and vSphere Clent installation. In datastore we have ISO files for CentOS 5 and 6 in order to create VM guests for web server purposes.
vSphere Client successfully creates VM on the dedicated node, but we have a problem with networking, VM guests cannot access internet. Network settings for VM in vSphere client has VMXNET3 adapter with manually edited MAC address (MAC virtual provided from data center) and default VM Network as network connection option.
Inside VM guest (CentOS 6 Minimal) we have tried to setup /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/route-eth0 as per tutorial on https://documentation.online.net/en/serveur-dedie/systemes-d_exploitation/vmware_vsphere_hypervisor_...
but still cannot ping outside container.
We have one primary IP address and 5 failover IPs with virutal MAC addresses.
How to setup networking?
Problem solved!
Here is a solution:
/etc/sysconfig/network-scripts/ifcfg-eth0
should have:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
#Replace IPADDR with your IP address
IPADDR=195.154.*.*
#Replace GATEWAY with your GATEWAY IP address
GATEWAY=195.154.*.*
DNS1=8.8.8.8
ARP=yes
ARPCHECK=no
I would recommend not go with minimal OS,Since certain package will not be install it will be headache for us to fix.
http://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/
Give out a try on the above link.
Thanks, will try to reinstall with CentOS-6.7-x86_64-LiveCD instead of CentOS-6.7-x86_64-minimal. We don`t need CentOS 7 for now if possible.
We have configured everything on guest VM, but still cannot access internet:
Any idea?
Problem solved!
Here is a solution:
/etc/sysconfig/network-scripts/ifcfg-eth0
should have:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
#Replace IPADDR with your IP address
IPADDR=195.154.*.*
#Replace GATEWAY with your GATEWAY IP address
GATEWAY=195.154.*.*
DNS1=8.8.8.8
ARP=yes
ARPCHECK=no