当前位置:网站首页>Importing alicloud ECS locally to solve deployment problems
Importing alicloud ECS locally to solve deployment problems
2022-06-30 17:47:00 【Future shadow】
Video Explanation : Alibaba cloud ECS Import local , Resolve deployment issues
explain
demand : To be deployed on Alibaba cloud ECS Copy the image file to the local VM, And officially run
analysis :1、 Alicloud downloads to the local raw.tar.gz Format , First decompress to raw
2、 And then in the application QEMU Tools will raw It can be interpreted as vmdk form
3、 take vmdk Import VM
QEMU Installation and conversion
QEMU for Windows – Installers (64 bit) (weilnetz.de)

All the way next that will do , Press after installation , First configuration qemu Environment

cmd, Use qemu-img.exe --help Check if the configuration is successful , The following is the configuration success page

application :qemu-img convert *.raw -f raw -O vmdk *.vmdk

vmdk Import VM














dracut Problem solving

Premise background :
There are many reasons for this problem , This problem occurs with virtual machines imported from alicloud , It's usually : initramfs Files are created by old platform hardware , Hardware that does not support the new platform
terms of settlement : Generate a new initramfs file
step :1、 Boot from the rescue kernel
2、 Get into boot Under the table of contents , to update initramfs file
Start the system

The initial interface shows that there are three cores , After testing ,
- The first one is : Beyond repair ( The kernel will be deleted later )
- The second kind : The kernel we will enter and operate normally
- The third kind of : Rescue kernel , After entering, you can repair
Press... Quickly when entering ↓, Enter the rescue kernel
Input : account number 、 password

Get into /boot Catalog , And then execute dracut -f Order reconstruction , Then restart the system boot
cd /boot
dracut -f initramfs-3.10.0-862.e.12.x86_64.img
reboot

Remove redundant kernels
View all the kernels in the system RPM package
rpm -qa | grep kernel
Check the current kernel version of the system
uname -a

yum remove kernel-headers-3.10.0-862.14.4.el7.x86_64
yum remove kernel-tools-libs-3.10.0-862.14.4.el7.x86_64
yum remove kernel-3.10.0-862.14.4.el7.x86_64
yum remove kernel-tools-3.10.0-862.14.4.el7.x86_64
yum remove kernel-devel-3.10.0-862.14.4.el7.x86_64

y/N? y Just make sure

Be sure to delete it !!
modify ip Address
Instructions vim /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="static" // Put it ip Set to not change
#IP Address
IPADDR=192.168.11.104
# gateway
GATEWAY=192.168.11.2
# Domain name resolver
DNS1=192.168.11.2


Restart network service systemctl restart network, Then you can see ip The address becomes what we set :192.168.11.104

Set mapping cd /ect, then vim hosts

ending
Now it can operate normally ~

边栏推荐
- Cesium-1.72 learning (earth rotation)
- New power of data analysis -- the first open source integrated real-time HTAP database in China was released by stonedb
- Six pictures show you why TCP has three handshakes?
- 3D图表有效提升数据大屏档次
- [Netease Yunxin] playback demo build: unable to convert parameter 1 from "asyncmodalrunner *" to "std:: nullptr\u T"**
- Horizontal visual error effect JS special effect code
- 腾讯云安装mysql数据库
- 生成对抗网络,从DCGAN到StyleGAN、pixel2pixel,人脸生成和图像翻译。
- 广电5G正式启航,黄金频段将如何应用引关注
- Exploration and practice of "flow batch integration" in JD
猜你喜欢

3D图表有效提升数据大屏档次

. Net ORM framework hisql practice - Chapter 1 - integrating hisql

Send the injured baby for emergency medical treatment. Didi's driver ran five red lights in a row

Cesium-1.72 learning (China national boundary)

分享 5 大常用的特征选择方法,机器学习入门必看!!!

理解现货白银走势的关键

Mysql8 NDB cluster installation and deployment

Canvas mouse control gravity JS effect

5g has been in business for three years. Where will innovation go in the future?

Booking UI effect implemented by svg
随机推荐
Exch:修复丢失的系统邮箱
[sword finger offer] 53 - I. find the number I in the sorted array
浅析搭建高速公路视频监控平台的建设方案及必要性
Exch: database integrity checking
【剑指Offer】52. 两个链表的第一个公共节点
万卷书 - 书单整理 [01]
Interview shock 60: what will cause MySQL index invalidation?
广电5G正式启航,黄金频段将如何应用引关注
Rexroth hydraulic control check valve z2s10-1-3x/
Servlet运行原理_API详解_请求响应构造进阶之路(Servlet_2)
高等数学(第七版)同济大学 总习题一 个人解答
Canvas mouse control gravity JS effect
JS from prototype chain to inheritance
网络:服务器网卡组技术原理与实践
【Proteus仿真】Arduino UNO利用74LS148扩展中断
[sword finger offer] sword finger offer 53 - ii Missing numbers from 0 to n-1
Daily question brushing record (IX)
[Architecture] 1366- how to draw an excellent architecture diagram
Radio and television 5g officially set sail, attracting attention on how to apply the golden band
以往我们认识的产业互联网,只是以消费互联网的替代者的身份出现