Hyper-V in Windows 8 already supports many Linux releases, and the installation is similar. The only thing you need to note is to download and install the hyper for Linux Integrated Service separately. now the latest version is 3.2, download the ISO file: http://www.microsoft.com/zh-cn/download/details.aspx? Id = 28188
1) enable hyper-V manager and create a new virtual machine. centos 6 is installed normally. Select basic server during installation. After installation is complete, restart.
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
MNT/CDROM/install. Sh
After the installation is complete, you must restart the VM again.
Run after restart:
ifconfig -a
You will find that the NIC has been loaded, and then edit: VI/etc/sysconfig/network-scripts/ifcfg-eth0 (you can also configure through the command ifconfig)
The content is as follows:
DEVICE=
"eth0"
HWADDR=
"00:1c:29:8C:BB:E6"
NETMASK=255.255.255.0
IPADDR=192.168.1.200
GATEWAY=192.168.1.1
1
ONBOOT=yes
Then restart:
/etc/init.d/network restart
# Or command: Service Network restart
Ifconfig eth0: Check the configured IP address.
OpenSSH has been installed in centos by default, even if you install it with minimal effort. So here we will not introduce the installation of OpenSSH.
SSH Configuration:
Modify VI/etc/ssh/sshd_config, and delete and modify the parameter values according to the parameter annotations to be modified in the template:
Port 22 specifies the port number of the SSH connection. We do not recommend that you use the default port 22 for security.
Protocol allows connection between SSH1 and SSH2. We recommend that you set this parameter to protocal 2.
Other parameters are adjusted as needed. For the configuration method, see man ssh_config.
Start SSH
/Etc/init. d/sshd start
Http://www.cnblogs.com/trams/archive/2012/04/29/2476175.html
Http://www.cnblogs.com/pharen/archive/2012/02/06/2339986.html
Linux integration services 3.4 Security Manual example-centos 6.3
Linux implements broadband Internet sharing with windows in hyper-V
How to configure hyper-V virtual machines to access the Internet through the host network (NAT)