Hyper-v 3.0 install centos6.3
We talked about hyper-v3.0 to think of windows8, windows2012; we also know that in windows8, windows2012 to install centos system problems, the most significant problem is that the NIC driver cannot be automatically installed, if centos is installed under hyper-v, you need to install a separate plug-in-Linux Integration Services. Of course, Linux Integration Services are also available in different versions. The latest version is v3.4, v3.2 can only be applied to centos6.2. Because we installed centos6.3 this time, we need to install Linux Integration Services v3.4. For details, see:
First, download the support package from the Microsoft website, Linux Integration Services v3.4
Http://www.microsoft.com/zh-cn/download/confirmation.aspx? Id = 34603
The operating system is deployed here and skipped
First download and then insert the iso into the hyper-v host, and then install
2) in Hyper-v, insert the downloaded iso file: Linux IC v3.2.iso.
Run the following command to load the files in the optical drive.
Mkdir-p/mnt/cdrom
Mount/dev/cdrom/mnt/cdrom
Cd/mnt/cdrom
./Install. sh
Reboot
After the restart, we can view the current configuration through ip.
Remember the MAC address of the second ENI
Edit and create an Eni
Vi/etc/sysconfig/network-script/ifcfg-etho
DEVICE = "eth0"
BOOTPROTO = "static"
HWADDR = "00: 15: 5d: 02: 34: 1e"
ONBOOT = "yes"
IPADDR = 192.168.7.32
NETMASK = 255.255.255.0
NETWORK = 192.168.7.0
GATEWAY = 192.168.7.1
Create and edit a network (host name)
Vi/etc/sysconfig/network
HOSTNAME = apache01. dsgrd..com
NETWORKING = yes
NETWORKING_IPV6 = no
Create and edit a DNS configuration file (name resolution)
Vi/etc/resolv. conf
Search dsgrd.com
Domain dsgrd.com
Nameserver 192.168.5.5
Nameserver 192.168.4.2
Service network restart
View network configuration ifconfig
If you want to build a network in the environment, you must pass valid user authentication. Therefore, you need to install elinks because elinks is installed.
First, mount the centos image. Because the network cannot be accessed now, we need to install it locally.
Insmod/lib/modules/2.6.32-279. el6.x86 _ x64/kernel/drivers/ata/ata_piix.ko
Mount/dev/cdrom/mnt
Cd/etc/yum. repos. d/
Mkdir bak (create a directory named bak)
Mv CentOS-Base.repo bak/(move this file to the bak directory)
Music CentOS-Debuginfo.repo bak/(Move the file to the bak directory)
Music CentOS-Media.repo bak/(Move the file to the bak directory)
Music CentOS-Vault.repo bak/(Move the file to the bak directory)
Create a repo file at the same time
Vi centos-dvd.repo (create and edit cento-dvd.repo)
Centos-dvd.repo File Content
[Dvd]
Name = package from dvd
Baseurl =File: // mnt
Enabled = yes
Gpgcheck = no
Use ls to view the current directory
Make sure that this directory only has centos-dvd.repo files (Bak file directory)
Start elinks Installation
Yum install elinks
Verify the installation
Elink www.baidu.com
Press enter to confirm
Press enter when entering
Press enter to confirm
Q exit
This article from "Gao Wenlong" blog, please be sure to keep this source http://gaowenlong.blog.51cto.com/451336/1288052