当前位置:网站首页>Cloud computing skills competition -- Part 2 of openstack private cloud environment

Cloud computing skills competition -- Part 2 of openstack private cloud environment

2022-04-23 08:03:00 King_ nul

Original blog address

1、 Security group settings

First , Input [http://controller/dashboard], Log in to the platform page , And then according to Continue with the description in the figure below .

image.png
image.png
image.png
image.png

After configuring the security group, the next step is to configure the network

2、 Cloud platform network configuration

① Intranet configuration

In network configuration , You need to use the external network segment and network adapter used in the construction (provider)
Simply understand : Cloud platform is used to manage virtual machines , The network used by the virtual machine is the same as that of the host machine, that is, the virtual machine Bridging network , The network of the cloud platform establishes a bridging relationship with the external network card of the host to enable the virtual machine on the platform to access the Internet .

image.png
image.png
image.png
image.png
image.png

The intranet is configured here , Next, configure the external network .

② Internet configuration

image.png
image.png
image.png
image.png
image.png
image.png

After configuring the external network , You still need to connect the intranet and extranet of the cloud platform , This requires configuring a router , Interworking between the two networks

③ Router configuration

image.png
image.png
image.png

After everything on the network is configured , So let's create one Virtual machine type

3、 Create a virtual machine type

Virtual machine type , Similar to a template file , When creating a virtual machine, use a template to directly create a virtual machine using an image , There is no need to set the memory 、 disk 、 Network configuration .

image.png
image.png
image.png
image.png

4、 Upload the image

After the virtual machine type and network are set , We can use glance Command to upload a test image ( stay openstack The official images have a small test image )

#glance  Command upload image using format 
#glance image-create --name [ Custom image name ] --disk-format=qcow2 \ # qcow2  The format of the mirror image 
# --container-format=bare --visibility=public \
# --file [ Mirror absolute path / Mirror name ]
# Upload CentOS Mirror image 
[root@controller ~]# glance image-create --name Test --disk-format=qcow2 --container-format bare --file /iso_dir/iaas/images/CentOS_6.5_x86_64_XD.qcow2 
You must provide a username via either --os-username or env[OS_USERNAME]

# Here, you will be prompted after the command is executed  You must provide a username via either --os-username or env[OS_USERNAME]
# Here is the need for certification before use glance service , So you need to source  once keystone The environment variable file 
[root@controller ~]# source /etc/keystone/admin-openrc.sh 
[root@controller ~]# glance image-create --name Test --disk-format=qcow2 --container-format bare --file /iso_dir/iaas/images/CentOS_6.5_x86_64_XD.qcow2 
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | 3e565ace16066679ea363dde5411ed25     |
| container_format | bare                                 |
| created_at       | 2022-01-30T17:42:23Z                 |
| disk_format      | qcow2                                |
| id               | ba9e7698-de7a-4857-a305-b06324de2e2e |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | Test                                 |
| owner            | a4212c5560ce4844a18a567295fea23f     |
| protected        | False                                |
| size             | 283181056                            |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2022-01-30T17:42:26Z                 |
| virtual_size     | None                                 |
| visibility       | shared                               |
+------------------+--------------------------------------+

image.png

Image upload completed , Use Previously created network and virtual machine templates Create a virtual machine , And can access the Internet

image.png
image.png
image.png
image.png
image.png

The error here is that my notebook does not support nested virtualization , So you can't create another virtual machine , When you do the experiment, you make this mistake , You can add processors to the virtual machine settings ---- Dexter VT Check on , Create it again ( Both stations need to check )

image.png

image.png

to update

Here are the follow-up updates , I did it again with other machines that can nest virtualization , Create a virtual machine .

image.png
image.png
image.png

5、 ending

brothers , After reading the basic construction and setting of the platform , I think it's good. Remember to praise it … Run during the day, and at night until more than two o'clock in the morning , The memory of the notebook is only 8G, It broke several times , Restart the virtual machine several times , It's not easy to write an article , But I will keep writing , Remember to leave a message if you have a problem .

版权声明
本文为[King_ nul]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230629526423.html