How to solve the problem that Ubuntu 18.04 cannot start normally after switching from XEN to KVM

How to solve the problem that Ubuntu 18.04 cannot start normally after switching from XEN to KVM

There are fewer and fewer businesses that still use the xen architecture. Some of those that used xen before have switched to the kvm architecture. Recently, a VPS was converted from xen to kvm. Unfortunately, I had installed ubuntu18.04 before, and found that I could not boot into the system normally after the conversion. I happened to have nothing to do and wanted to tinker with it, so I tried to find a solution myself. The main thing is to record it so that I can take it out and look at it next time I encounter it. Even if it is not exactly the same, it is good to learn from it. However, different businesses may use different system templates or related settings. It does not mean that the process in this article is applicable to all such problems.

Well, after the transfer, I was going to change the IP binding myself through the vnc console, but I found that the system did not start normally and entered the emergency mode. After entering the root password to log in, I ran the journalctl -xb command to check the system log. This section caught my attention, and it seemed to be a mounting problem.

I simply deleted the /dev/xvdb1 mount in /etc/fstab, and after deleting it, I rebooted the machine, and it finally entered the system normally. After logging into the system, I found that the same disk partition of kvm is now /dev/sdb1, which is different from the previous xen. After remounting and rebooting the test, I can enter the system normally.

However, after the machine directly modified the original network card configuration file IP, there was no network. Using the ip addr command to check, it turned out that the network card was eth0 when xen was used before, and the current network card is ens3. After changing the network card name and restarting the network, it was normal.

<<:  Sharktech: Los Angeles high-defense 1Gbps unlimited traffic server starting at $79/month, 10Gbps unlimited traffic starting at $379/month

>>:  CloudSilk: 160 yuan/year-512MB/10G SSD/[email protected]/San Jose 4837/optional AS9929

Recommend

The three major operators unveiled their latest 5G strategies

As the global 5G latest version standard is locke...

Will 5G mobile phones and package fees become cheaper and cheaper?

[[350564]] 1China has the largest 5G user group i...

Gartner: Global 5G network infrastructure spending will nearly double in 2020

Recently, according to the forecast of Gartner, a...

Big data changes both ends of the web hosting market

Big data has transformed both ends of the web hos...

China's 5G users account for more than 70% of the world's total

The latest data from the Ministry of Industry and...

Seven types of networks and their use cases

A computer network is a system of interconnected ...

The unlimited package has been cancelled? What does this mean for 5G?

It is reported that China Telecom announced that ...

The inspiration of Neusoft's Internet of Vehicles security

Neusoft Network Security, which has been working ...