当前位置:网站首页>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 ~

边栏推荐
- Acwing game 57
- 腾讯云的一场硬仗
- Develop those things: how to add text watermarks to videos?
- Mysql8 NDB cluster installation and deployment
- Nodejs learning notes II
- 5g has been in business for three years. Where will innovation go in the future?
- 将 EMQX Cloud 数据通过公网桥接到 AWS IoT
- Login box tricks
- 【网易云信】播放demo构建:无法将参数 1 从“AsyncModalRunner *”转换为“std::nullptr_t”**
- Cesium-1.72 learning (China national boundary)
猜你喜欢

6 張圖帶你搞懂 TCP 為什麼是三次握手?

构建基本buildroot文件系统

k线图快速入门必读

Exploration and practice of "flow batch integration" in JD

Fragmentary knowledge points of MySQL

Nouvelle version de shangdingyun | la fonction favorite est en ligne pour répondre aux besoins d'utilisation personnelle

Mysql8 NDB cluster installation and deployment

美国PARKER派克传感器P8S-GRFLX

JS from prototype chain to inheritance

vue3 响应式数据库—— reactive
随机推荐
编写C语言的最简单小程序Hello world
生成对抗网络,从DCGAN到StyleGAN、pixel2pixel,人脸生成和图像翻译。
美国穆格moog伺服阀D661-4577C
IEEE TBD SCI影响因子提升至4.271,位列Q1区!
解决方法:STM32使用cJSON解析数据失败
leetcode:1042. Do not plant flowers adjacent to each other [randomly fill in qualified + no contradiction will be formed behind + set.pop]
splitting.js密码显示隐藏js特效
腾讯云安装mysql数据库
[Architecture] 1366- how to draw an excellent architecture diagram
flutter 音乐 录音 播放 audioplayers
[Netease Yunxin] playback demo build: unable to convert parameter 1 from "asyncmodalrunner *" to "std:: nullptr\u T"**
Cesium-1.72 learning (eagle eye map of the earth)
TFTP download kernel, NFS mount file system
leetcode:787. The cheapest transfer flight in station K [k-step shortest path + DFS memory + defaultdict (dict)]
【C语言】详解线程 — 通过 “加锁” 解决并发程序引起的共享内存问题
[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入
【网易云信】播放demo构建:无法将参数 1 从“AsyncModalRunner *”转换为“std::nullptr_t”**
Cesium-1.72 learning (China national boundary)
MOOG servo valve d661-4577c
将 EMQX Cloud 数据通过公网桥接到 AWS IoT