In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about the steps of Hyper-V installing CentOS Linux Integration Components. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it with the editor.
The steps are as follows:
We need kernel-devel and gcc first.
Mine is a 64-bit CentOS, and I need adjtimex RPM to ensure the accuracy of time.
Because there is no net, the installation has to be installed from the CD. To set the repo of yum to CD
So
# cd / etc/yum.repo.d
Two repo
There are two repo in CentOS
CentOS-Base.repo and CentOS-Media.repo
Base.repo is an online update of repo
Media.repo is the input device repo
First rename the CentOS-Base.repo to let the system skip the repo
# mv CentOS-Base.repo CentOS-Base.repo.bk
Set the repo source. Set baseurl to the CD drive directory / mnt/cdrom,enabled to 1 to start.
# vim CentOS-Media.repo
Vim CentOS-Media.repo
Change to
Change to
Load the CentOS disc into this virtual machine CD-ROM drive
Then mount it to the directory
# mkdir / mnt/cdrom
# mount / dev/cdrom / mnt/cdrom
Mount to directory
Install the kernel-devel kit
# yum install kernel-devel-y
Install the gcc suite after completion
# yum install gcc-y
64-bit systems also need to install adjtimex RPM
# rpm-ivh / mnt/cdrom/Centos/adjtimex-1.20-2.1.x86_64.rpm
Then umount the original installation CD
# umount / mnt/cdrom
Put Microsoft's official website in the Hyper-V controller
Linux Integration Services v2.1 for Windows Server 2008 Hyper-V R2
Address: http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&FamilyID=eee39325-898b-4522-9b4c-f4b5b9b64551
The extracted ISO is loaded into the CD-ROM drive.
And then
# mount-t iso9660 / dev/cdrom / mnt/cdrom
# cp / mnt/cdrom/* / opt/linux-R
And then just install it.
# cd / opt/linux_ic_v21_rtm
# make
# make install
Finally restart
# reboot
When it is configured, you can take a look at it by ifconfig.
Ifconfig, take a look.
The names are ifcfg-eth0,ifcfg-eth2... . If you have a CentOS network card IP, there is only one file ifcfg-eth0. If you have two or more CentOS network cards IP, there will be ifcfg-eth2, ifcfg-eth3 and other files.
File structure:
DEVICE=eth0 / / indicates the device name BOOTPROTO=static// startup type dhcp,dcph or static automatic and manual BROADCAST=192.168.1.255 / / broadcast address HWADDR=00:06:5B:FE:DF:7C// hardware Mac address IPADDR=192.168.0.2//IP address NETMASK=255.255.255.0 / subnet mask NETWORK=192.168.0.1 / / network address ONBOOT=yes / / whether to start the application of TYPE=Ethernet / / network type
1 vim / etc/sysconfig/network-scripts/ifcfg-teh0
2. Start the service service network restart
DNS server information command for CentOS network card editing host: vim / etc/resolv.conf
These are the steps for Hyper-V to install CentOS Linux Integration Components. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.