Linux Guest: Boot up fail or maintenance mode entry

Discussions about using Linux guests in VirtualBox.
Post Reply
makh
Posts: 17
Joined: 19. Mar 2012, 19:20
Primary OS: Other
VBox Version: OSE other
Guest OSses: Debian, Devuan, Linux Mint, Windows

Linux Guest: Boot up fail or maintenance mode entry

Post by makh »

Hi
https://www.virtualbox.org/manual/ch04.html
states:
To mount a shared folder during boot, add the following entry to /etc/fstab:

sharename mountpoint vboxsf defaults 0 0
Well it does works; but some times during boot up, or especially after kernel update, this feature fails with loading up of the maintenance mode. The only solution is to disable it and reboot.

I usually keep on running into this problem. Please inform, if theres a work around!

Thankyou
Arch Linux
Debian Linux
HP Probook 440 G2
:idea:
makh
Posts: 17
Joined: 19. Mar 2012, 19:20
Primary OS: Other
VBox Version: OSE other
Guest OSses: Debian, Devuan, Linux Mint, Windows

Re: Linux Guest: Boot up fail or maintenance mode entry

Post by makh »

Arch Linux
Debian Linux
HP Probook 440 G2
:idea:
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Linux Guest: Boot up fail or maintenance mode entry

Post by socratis »

Ticket https://www.virtualbox.org/ticket/6696 that you linked to, is invalid. It was a user error.

As for the rest of your issue, the solution is to remove it from the "/etc/fstab" entry and add it to the "rc.local". This has happened due to the delayed start of the VirtualBox related services due to Ubuntu changes.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
makh
Posts: 17
Joined: 19. Mar 2012, 19:20
Primary OS: Other
VBox Version: OSE other
Guest OSses: Debian, Devuan, Linux Mint, Windows

Re: Linux Guest: Boot up fail or maintenance mode entry

Post by makh »

socratis wrote:... and add it to the "rc.local".
Hello Sir!

1. Please be kind to clarify rc.local. I understand that the links I shared give many options to resolve it ...!
2. Well the problem came to me in Debian, Opensuse (in randomly) and definitely Ubuntu never mounted it.
3. As I recall: I think that Devuan, Centos and Fedora, perhaps didnt give this problem.

Thankyou
Arch Linux
Debian Linux
HP Probook 440 G2
:idea:
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Linux Guest: Boot up fail or maintenance mode entry

Post by socratis »

makh wrote:I understand that the links I shared give many options to resolve it
I'm not a Linux guru, so let's see if someone else with more experience can verify it, but the idea is that you create/edit the file "/etc/rc.local" for your OS. For example, in my Ubuntu 16.04, the default "/etc/rc.local" looks like this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0
If I want to mount "sharename" into "mountpoint", I need to modify that file to look something like this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

mount -t vboxsf sharename mountpoint

exit 0
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply