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--
Editor to share with you how to build OPENSTACK open source virtualization KVM deployment, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
Introduce the environment.
Physical machine: an old HP server, but it is still enough for learning
Operating system: WIN2008
Virtualization: VMware ®Workstation 12 Pro
Network card: network port 1 access router LAN1
CPU must support virtualization technology, set to startup in BIOS
At present, most server basic desktop computers handle the startup state
We need to use virtual machines first, and then use virtualization in virtual machines, that is, nested virtualization.
VMware nested Virtualization
Product: Workstation,Player,ESXi
Support: ESXi,Hyper-V,KVM,Xen
I use Workstation+contos7.3 here.
Installation of KVM begins
The initial installation is as simple as installing CentOS. Check the installation software such as
Assign an IP to this mainframe.
When equipped with IP, you can log in through Xshell.
There is a problem here. It is stuck in license information after reboot.
If license information (license not accepted) appears, that means you need to agree to the license information, enter 1-enter-2-enter-c-enter-c-enter. It can be solved.
Build the local yum warehouse CD source and install the software package
[root@localhost ~] # cd / etc/yum.repos.d
[root@localhost yum.repos.d] # ls
CentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repo
CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo
[root@localhost yum.repos.d] # mkdir bak
[root@localhost yum.repos.d] # mv C* bak/
[root@localhost yum.repos.d] # vim local.repo
[root@localhost yum.repos.d] # cat local.repo
[local]
Name=local
Baseurl= file:///media/cdrom/
Gpgcheck=0
Enabled=1
[root@localhost media] # mount / dev/sr0 / media/cdrom/
Mount: / dev/sr0 write protection, which will be mounted as read-only
[root@localhost yum.repos.d] # yum-y clean all
Loaded plug-ins: fastestmirror, langpacks
Cleaning software source: local
Cleaning up everything
[root@localhost yum.repos.d] # yum makecache
Loaded plug-ins: fastestmirror, langpacks
Local | 3.6 kB 00:00
(1ap4): local/group_gz | 155 kB 00:00
(2ache 4): local/primary_db | 3.0 MB 00:00
(3x4): local/filelists_db | 3.0 MB 00:00
(4ache 4): local/other_db | 1.3 MB 00:00
Determining fastest mirrors
Metadata cache has been established
[root@localhost yum.repos.d] #
We also need to add the following software packages
# yum installation package group
[root@localhost ~] # yum-y group install virtualization-client
[root@localhost ~] # yum-y group install gnome-desktop
KVM remote management
[root@localhost ~] # which virsh # View virtual machine management commands
/ usr/bin/virsh
[root@localhost ~] # virsh list-- all # View all virtual machines
Id name status
[root@localhost ~] # startx switches to graphical interface mode
Select Application in the upper left corner under the graphical interface to open the management tool of KVM
Two ways of remote Management of KVM
We usually need to remotely manage the KVM environment at work. The desktop mode is not visible in SSH mode.
1. VNC graphics
In this way, the corresponding applications need to be installed on both the server and the client.
2. SSH graphical display
Windows installs the software x-manager. Then xshell software turns on X11 forwarding
Then after we connect to the virtual machine, enter virt-manager to show the following figure
At this point, the KVM and management tools have been built.
Create a virtual machine
These are all the contents of the article "how to build and deploy OPENSTACK Open Source Virtualization KVM". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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.