Hyper-V Installation of Redhat Linux 6.3 Virtual Machine network settings
This article describes the network connection settings of Hyper-V's Redhat Linux 6.3 virtual machine. Hyper-V cannot connect to the Internet after installing Redhat Linux. you can log on to the system as a ROOT user and view the IP address. [Root @ localhost ~] # Ifconfig
Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
Up loopback running mtu: 16436 Metric: 1
RX packets: 16 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 16 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 884 (884.0 B) TX bytes: 884 (884.0 B)
Virbr0 Link encap: Ethernet HWaddr 52: 54: 00: 2E: 44: 83
Inet addr: 192.168.122.1 Bcast: 192.168.122.255 Mask: 255.255.255.0
Up broadcast running multicast mtu: 1500 Metric: 1
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 0 (0.0 B) TX bytes: 0 (0.0 B) shows no available Nic, only local connection. Install the Windows integrated driver: Linux Integration Services Version 3.4 in Linux. Not necessarily the integration driver of this version. Download the corresponding driver as needed. To install the NIC Driver, open the Hyper-V manager and enter the virtual machine setting interface. If it is an old version of the Network Adapter (Legacy Network Adapter), remove the old version of the Network Adapter and add the new version of the Network Adapter.
Mount the Linux Integration Services Version 3.4 image in the DVD drive and start the VM. The following describes how to install the integration service in Redhat Linux: [root @ localhost ~] # Cd/media/CDROM/
[Root @ localhost CDROM] # cd RHEL63/
[Root @ localhost RHEL63] # rpm-ivh kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
Preparing... ######################################## ### [100%]
Package kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64 is already installed
[Root @ localhost RHEL63] # ll
Total 1949
-R-xr-x. 1 root 1496 Jul 31 2012 install. sh
-R --. 1 root 885804 Jul 31 2012 kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.i686.rpm
-R --. 1 root 935800 Jul 31 2012 kmod-microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
-R --. 1 root 28376 Jul 31 2012 microsoft-hyper-v-debuginfo-rhel63.3.4-1.20120727.i686.rpm
-R --. 1 root 28544 Jul 31 2012 microsoft-hyper-v-debuginfo-rhel63.3.4-1.20120727.x86_64.rpm
-R --. 1 root 10280 Jul 31 2012 microsoft-hyper-v-rhel63.3.4-1.20120727.i686.rpm
-R --. 1 root 90963 Aug 1 2012 microsoft-hyper-v-rhel63.3.4-1.20120727.src.rpm
-R --. 1 root 10700 Jul 31 2012 microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
-R-xr-x. 1 root 1235 Jul 31 2012 upgrade. sh
[Root @ localhost RHEL63] # rpm-ivh microsoft-hyper-v-rhel63.3.4-1.20120727.x86_64.rpm
Preparing... ######################################## ### [100%]
1: microsoft-hyper-v ################################### ####### [1, 100%]
Saving old initramfs
Installing new initramfs
[Root @ localhost RHEL63] # after installing the integration service, you can check whether there is a NIC. You will find that an eth0 Nic is added [root @ localhost ~] # Ifconfig-
Eth0 Link encap: Ethernet HWaddr 00: 15: 5D: 6A: 87: 07
Broadcast multicast mtu: 1500 Metric: 1
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 FIG: 1000
RX bytes: 0 (0.0 B) TX bytes: 0 (0.0 B) Now you cannot connect to the Internet when you open Firefox. With the NIC, you must configure the NIC. The default network File For nic configuration does not exist. The following file is automatically created. Enter the Hostname, dynamically allocate IP addresses and gateway addresses, and obtain them automatically. [Root @ localhost ~] # Vi/etc/sysconfig/networkNETWORKING = yes
HOSTNAME = issacyang [root @ localhost ~] # Vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = eth0TYPE = Ethernet
BOOTPROTO = dhcp
ONBOOT = yes
IPV6INIT = no
USERCTL = no
HWADDR = 00: 15: 5d: 6a: 87: 08
After PEERDNS = yes is configured, restart the service network restart [root @ localhost ~]. # Service network restart
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0: [OK] Enable Fiefox to connect to the Internet. If not, restart the VM. Do not modify the configuration file. If the parameter is not appropriate, you can also use system-config-network to enter the graphical interface to modify the NIC configuration. [Root @ localhost ~] # System-config-network so far, LInux in Hyper-V can connect to the Internet.