Submitted by systeminmotion on Tue, 09/29/2020 - 04:01
I have created a CentOS 8.2 Linux VM on Azure, installed Virtualmin and at first reboot can't access the VM at all. Reproduced it a few times. Here are details.
- Run sudo yum update
- Reboot - OK
- Install virtualmin : sudo wget http://software.virtualmin.com/gpl/scripts/install.sh ; sudo /bin/sh install.sh – OK but see a warning saying "The filesytem / could not be remounted with quotas enabled. You will need to reboot your system to enable quotas."
- Reboot – Not OK
In the boot diagnosis provided by Azure I see this :
[ 1746.606496] reboot: machine restart [H[J[1;1Herror: ../../grub-core/fs/fshelp.c:258:file `/grub2/i386-pc/increment.mod' not found. error: ../../grub-core/fs/fshelp.c:258:file `/grub2/grubenv' not found. [4;1H1 [4;1H0 [H[J[1;1H[H[J[1;1Herror: ../../grub-core/fs/fshelp.c:258:file `/grub2/i386-pc/increment.mod' not found. error: ../../grub-core/fs/fshelp.c:258:file `/grub2/grubenv' not found.
The VM is up but can't be access by any method.
I have done some research and didn't find any useful info. Is this a known problem ? Could there be something missing on the VM prior to installing virtualmin ? I don't really need quotas, is there way to skip this feature (assuming it is causing the issue) ?
Also note that I did have the same warning during install on CentOS 7 but the system can boot properly but I really need to be using CentOS 8.
Any help would be appreciated !
Submitted by JamieCameron on Wed, 09/30/2020 - 01:04 Comment #1
What kind of filesystem are you using on this VM? Only XFS should require a reboot.
Submitted by systeminmotion on Fri, 10/09/2020 - 01:58 Comment #2
Hi Jamie, FileSystem is XFS. Though I am not sure that it makes a difference. Do you think another FS would not have this issue ?
Submitted by JamieCameron on Fri, 10/09/2020 - 18:21 Comment #3
Yes, I would recommend giving it a try with a different filesystem (like EXT4)
Submitted by systeminmotion on Sat, 10/10/2020 - 03:30 Comment #4
Unfortunately I tried and cannot change the filesystem type
Submitted by JamieCameron on Sun, 10/11/2020 - 15:16 Comment #5
Does Azure offer a different VM image using EXT4 as the filesystem type that you could use to create a new VM?
Submitted by systeminmotion on Sun, 10/11/2020 - 21:46 Comment #6
Hi Jamie, it doesn't seem like it. But I found a workaround : install webmin first then install virtualmin as a webmin module. That did the trick.
Submitted by hasse_basse on Tue, 10/13/2020 - 07:18 Pro Licensee Comment #7
I,m using Debian on Azure and when upgrading the reboot must be done from within Azure VM, othervise it hangs and it is a mess to reach it and restart. It must be done by commands via console. Just don't ask me how to do it, I have forgotten it despite having messed it up many times.
So restart from Azure.
If you install the OS using Azure, it will be a slight different version installed. I think it has to do with that Azure offers a service that automatically installes all upgrades.
Submitted by JamieCameron on Mon, 10/19/2020 - 13:10 Comment #8
Surprising that it only works from the Azure console, since I'd expect the boot process to be the same regardless.
Submitted by hasse_basse on Thu, 04/29/2021 - 08:48 Pro Licensee Comment #9
What ever is the cause, but there are problems with rebooting from within Linux. Now have had problems again. I manged to repair the installation by reading this page:
then I went to "Azure VM repair"
Under 4, I used the script "linux-hello-world"
and I was set !
Submitted by systeminmotion on Wed, 05/12/2021 - 20:59 Comment #10
On our side we solved the issue by Installing webmin first, the virtualmin package rather than virtualmin right away.
$ wget https://prdownloads.sourceforge.net/webadmin/webmin-1.955-1.noarch.rpm ; wget https://download.webmin.com/download/virtualmin/wbm-virtual-server-6.12....
$ sudo rpm -U webmin-1.955-1.noarch.rpm
$ sudo rpm -U wbm-virtual-server-6.12.gpl-1.noarch.rpm
$ sudo passwd
Virtualmin should only be installed using official install.sh script. Never install such outdated packages as Webmin 1.955 and Virtualmin 6.12 in May 2022!
Yes, the future release of install script, will let you exclude quotas from being setup upon initial setup by passing an opinion to install script as
Although the process of setting up quotas shouldn't mess with your boot process. Are you sure that it happens due to setting up quotas and changes made in your grub.conf? Could you provide more debugging info?
Can you provide for download as a tar ball the following files from your Azure instance:
Besides, what is the output of:
Nevermind, I have spun up Azure CentOS 8 instance and gave it a try. With default install, as expected Virtualmin installer adds
rootflags=uquota,gquotato default Grub config and re-makes all Grub configs.
After Virtualmin installation, the instance was rebooted and booted back up without any issues.
Nevertheless, I have re-checked the code and added few patches to provide better support for various distros (upcoming in particular).