The solution is to install the Linux Integration Services Version v3.2 for Hyper-V tool (download address): After downloading it is an ISO document that hangs under the Linux virtual optical drive to execute the installation command:
1. Download Microsoft virtual machine Linux Integration Service Pack Linux Integration Services v3.2
http://www.microsoft.com/zh-cn/download/details.aspx?id=28188
2. Load CD image
"Media"-"DVD drive"-"Insert Disk" Select the ISO file that you just downloaded, load the disc image
3. Mount CD image and install
# Mount/dev/cdrom/media
# Cd/media
#./install.sh
4. Network card, DNS related configuration
# vi/etc/sysconfig/network
The contents are as follows:
Networking=yes
Networking_ipv6=no
Hostname=cnyunwei.com
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
The contents are as follows:
Device=eth0
Onboot=yes
ipaddr=192.168.0.88
netmask=255.255.255.0
gateway=192.168.0.1
# vi/etc/resolv.conf
The contents are as follows:
NameServer 8.8.8.8
5, reboot the system to enable the network card
# reboot
After restarting the system, you can view the IP just configured via ifconfig.