Centos7 VM entered emergency mode after enable “Support virtio”.

|
  • 173
  • 6

Issue Description

When Centos7 VM disable the 'support virtio' option, VM able to accessed normally.However, Centos7 VM entered emergency mode after enable “Support virtio”.

Error/Warning Information

Perform snapshot back up on the respective vm before troubleshooting!!!!!

Handling Process

Step:
A. Check selinux mode.
B. Check the disk pathway.

A.
1’sestatus’ command to check selinux status.
According to the screenshot
2) selinux was enabled.
3) Perform ‘selinuxenabled’ command, follow with ‘echo$?’ in order to check the status of selinux. If the result returned 0 value, shows that the selinux is running whereas selinux is not running when the value is shows 1.
4)Perform ‘nano /etc/selinux/config’ and check the selinux mode.
5)If the mode shows Selinux as enforcing mode, edit selinux to disabled mode.
6)Reboot the Centos 7.

If the issue did not solve after disabled the selinux, kindly follow the step B as below.
1)Byentering the Centos maintenances mode, check the storage information of the OS.

2) Check the block id using ‘sudo blkid’ command.
3)By using ‘cat ../etc/fstab’ command, found that the block sdb1was not available in the block id list.
4) After compare the disk block, by using ‘nano ../etc/fstab’command, replaced the block name to the respective block.
5) Aftersave the edited file, reboot the VM.

Root Cause

After enable Virtio in HCI, the VM disk label has been changed from "sdb" to "vdb", but /etc/fstab still using "sdb" label.

Solution

After change to correct disk block, issue resolved.
Faisal Posted 17 May 2021 05:57
  
Thank you very much for the information ...
Faisal Posted 18 May 2021 12:13
  
Nice article ...
Faisal Posted 18 May 2021 12:13
  
Great info ...
Faisal Posted 18 May 2021 12:13
  
Very informative ...
Faisal Posted 18 May 2021 12:14
  
Nice guidance ...
Raza Islam Lv3Posted 25 Jul 2022 16:21
  
Nice guidance.

I want to write a case
Doc ID: 4396
Author: GodLike
Updated: 2021-04-05 12:35
Version: