Hyper-V under Windows 8 already supports many Linux distributions, and the installation under it is similar. The only thing to note is to download and install the integrated service of Hyper for linux separately. Now the latest version is 3.2, download the ISO file: http://www.microsoft.com/zh-cn/download/details.aspx?id=28188
1 ) Open the Hyper-V manager and create a new virtual machine, install centos 6 normally, select the basic server during installation. After the installation is complete, restart.
2 ) In Hyper-v, insert the downloaded iso file: Linux IC v3.2.iso
Then run the following command to load the files in the CD-ROM drive
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
mnt/cdrom/install.sh
After the installation is complete, the virtual machine must be restarted again.
Run after restart:
ifconfig -a
You will find that the network card has been loaded, and then edit: vi /etc/sysconfig/network-scripts/ifcfg-eth0 (also can be configured 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
Restart afterwards:
/etc/init.d/network restart # Or command: service network restart
ifconfig eth0, look at the actual configured ip address.
OpenSSH is already installed by default on CentOS, even if you have a minimal installation. So the installation of OpenSSH is not introduced here.
SSH configuration:
Modify vi /etc/ssh/sshd_config, remove the parameter comments to be modified according to the template and modify the parameter values:
Port 22 specifies the port number for SSH connection. It is not recommended to use the default port 22 for security.
Protocol 2,1 allows SSH1 and SSH2 to connect, it is recommended to set to Protocol 2
Other parameters are adjusted according to their needs. 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 Installation Manual-Take CentOS 6.3 as an example](http://blog.miniasp.com/post/2013/02/05/How-to-install-Linux-Integration-Services-Version-34-for- Hyper-V-on-CentOS-63.aspx)
Linux implements broadband sharing Internet access with Windows in Hyper-V
How to configure the Hyper-V virtual machine to access the Internet through the host network (NAT)
Recommended Posts