In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The experiment manages Hypervisor, host aggregation, specification key pairs, and VM group testing through openstack dashboard and openstack CLI, and tests VM provisioning, lifecycle management, snapshots, and rebuilds.
Openstack Dashboard Operations Hypervisor and Host Aggregation Management
Host aggregation divides the available area into logical units by grouping hosts together. Create a host aggregation and select the hosts you want to put in it.
Log in to the Openstack Dashboard interface using admin. Select "Administrator-Compute-Virtual Machine Manager" in the navigation bar to enter the virtual machine list and view information such as hypervsior overview.
Select Compute Hosts to include them in the Compute Hosts list to view Compute Node information
In the navigation bar, select Administrator-Calculation-Host Aggregation to enter the host aggregation list, and click Create Host Aggregation
In Host Aggregation, enter the host aggregation name HostAgr_web and the available partition name nova
Select Manage hosts in aggregation to add available host compute1 to complete host aggregation creation
Returns to the list of host aggregations showing the host aggregations you just created
It can be seen that the host aggregation has been successfully created.
Delete the hosts in the host aggregation. Click Delete in Manage Hosts in the Aggregation.
specification management
In Administrator-Calculation-Specification (Instance Type), go to the specification list and click Create Specification
In Create Instance Type Information, fill in as follows
Name: Flavor_web_test
vcpus:1
RAM(MB):128
Root Disk(GB): Root Disk Size, 1
Others remain default
Select Instance Type Access and add Project_web to indicate that the project can use the instance
Key pair and virtual machine group management
In "Project-Calculation-Key Pairs," go to the list of key pairs and click Create
Enter the key pair name "KeyPairWeb," and create
Save key pair locally
View key pair details
Virtual Machine Instance Operations
Select Project-Calculation-Instance in the navigation bar to enter the virtual machine instance list. Click Create Instance
On the details page, enter the instance name 'Instance_web01,' select nova and the number 1 of available partitions to issue virtual machine instances, and click Next
Go to the Source page, select No under Create New Volume, and check Img_web Mirror Add
Next go to Instance Type and add Flavor_web
Since no network and security groups have been created, skip and go directly to the key pair, select "KeyPairWeb
Click Create Instance
Returns the VM instance list, showing that the VM has been created and is running
Virtual machine instance opening and closing
In Project-Compute-Instance, go to the VM list, click Actions list, and select Close Instance
Same, can open instance
Hard restart, soft restart, suspend, lock, etc. of virtual machine instance can be completed through this interface
cli Operations Hypervisor, Host Aggregation and Available Partition Management Hypervisor Management
openstack hypervisor is a Hypervisor related command
View Virtual Machine List
openstack hypervisor list --long
View host list
Create host aggregation "HostAgr_cli"
openstack aggregate create --zone nova HostAggr_cli
Add host compute1
openstack aggregate add host HostAggr_cli compute1
specification management
Create the specification Flavor_cli and configure it as follows
vcpus:1
RAM:128M
Root Disk: Root Disk Size 1GB
This specification is visible only for Project_cli
Others Keep Default
openstack flavor create --vcpus 1 --ram 128 --disk 1 --private --project Project_cli Flavor_cli
View specs Details of Flavor_cli
openstack flavor show Flavor_cli
Flavor_cli is not public at this time. It needs to be public. It can be used by all projects. It needs to be deleted and recreated.
openstack flavor delete Flavor_cli
Re-create Flavor_cli and confirm that the specification is now public
openstack flavor create --vcpus 1 --ram 128 --disk 1 Flavor_cli
Key pairs and virtual machine management
Create Key Pair KeyPairCli
openstack keypair create KeyPairCli
Create virtual machine instance "Instance_cli_01" configured as follows
Available partition nova
Mirror image: Img_cli
Specification: Flavor_cli
Key pair: KeyPairCli
openstack server create --availability-zone nova --image Img_cli --flavor Flavor_cli --key-name KeyPairCli Instance_cli_01
Check the VM instance Instance_cli_01 status, Active means VM instance creation succeeded
openstack server list
virtual machine shutdown
openstack server stop Instance_cli_01
Check virtual machine status
openstack server show Instance_cli_01 | grep status
Start the virtual machine
openstack server start Instance_cli_01
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.