I'm not using legacy adapters, and i've installed Linux Integration Components 3.2.
THe problem i'm facing is that the command 'setup' or 'system-config-network' doesn't list any network interfaces. If i run ifconfig -a i can see both the network cards i've attached. By setting a ip using ifconfig i can get network connectivity. The problem is that it's not persistent after a reboot.
I'm a 100% centos newbie, but I figure it has something to do with that the centos installer couldn't see the NICs on install.
How can I fix this?
Have a look in
/etc/sysconfig/network-scripts/ifcfg-eth0
there should be a line that saysONBOOT=yes
which causes eth0 to be configured when the system starts.In my case once I added the integration services I went in and created the ifcfg-eth0 file with the following
DEVICE=eth0 BOOTPROTO=dhcp HWADDR=(fill in yours) ONBOOT=yes
then I ran system-config-network and added my DNS servers (this may not have been necessary)
once I did that and restarted the network service it started responding to CentOS 6.3 .
This was under HyperV built into Windows 8 Enterprise
Adding to lain's answer..
I'm running Hyper-V, CentOS 6.2.
CentOS (like almost all modern *nix OSes) uses a set of configuration scripts at startup to configure various parts of the system including network configuration scripts/files.
You can manually edit the relevant file to configure each of the synthetic NICs when the system boots.
The trick seems to be to run the command 'system-config-network' at a shell prompt as root after you've installed the Linux Integration Services. On my CentOS 6.2 instance it detected the virtual network adapter and after I saved my configuration changes and did a reboot I was on the road.