Instantly share code, notes, and snippets.
I'm running a fresh installation of CentOS 6 and running ./VBoxLinuxAdditions.run fails at:
Building the main Guest Additions module [FAILED]
Also, clicking Devices/Install Guest Additions apparently has no effect. The shared folder does not appear in /dev or /media
@aderowbotham, make sure you update.
I ignored the part about the update since I did so a few days earlier and within that time span there was a kernel-update so I got headers for a different kernel and received the same error as you. Updating, then compiling the additions worked for me.
Sorry this might be a bit of a lame question but which ISO should i mount after installing guest additions?
Thanks! That worked like a charm!
@travispaul, update works for me, but can you brief why a updating is necessary?
This is better:
@linnv I tried that link, although well presented .. is by no means better. It did not work for me, but only wasted my time.
@simon-eq ... and of course any guide that contains the phrase "before you do anything we need to disable SELINUX" should probably be avoided!
thx a lot!
Solved my problem. thx
Thanks for sharing! Worked like a charm!
I have an idea! I want to get list of shared but not mounted folders in my guest CentOS. In future I will mount this all folders under /var/www/html with filtering by regexp (lsOfMySharedFolder | grep 'shared_' | mountEachOf) and reconfigure my web-server for using this folders as web-source.
So.. my question: can I get list of shared but not mounted folders under guest OS?
hm... i can use automount and get this list from ls /media | grep 'shared_'
ls /media | grep 'shared_'
Hi, thanks for sharing, but my folder share is read-only (setting in VirtualBox is full access), I want full edit this folder in guest CentOS too.
I've installed anything like this tutorial, but with CentOS 7 I obtain when type "mount -l":
so I can't do a new mount
mount -t vboxsf the_share_name /a_folder_name
because "the_share_name" is "none".
I would to do a new mount because I would a shared folder for web server (apache) in read-write, now the automount (/media/a_folder_name) is for root:vboxsf
Worked for me ... one improvement I can suggest is to remove the reboot line.
You need to reboot only if you catch an update of a something like the kernel itself in the yum update step ( which is IMO unnecessary ). Installing kernel-devel does not require a restart afterwards. They are just adding a bunch of header files that will be used by the VBox installer, later in the procedure mentioned above.
@codemedic actually, reboot is important. I don't know why, but since I made this comment I regularly get the same error at least once, when I create/recreate my vBox and rebooting seems to fix the issue half the time. I am even here now, because I have the same problem, and guess what ... I worked with after the 2nd time.
Thank you - this instructional worked for me!
work like a charm on my centos 6.4
my issue is that its telling me I dont have permission for the folder
Work great on my centos 7.2.
Hi. You need to install extra package bzip2 for VirtualBox >=5.0.
Thank you for this!
Thx. Been looking for this. In my case, I was doing a fresh install off the latest v7, 1611 minimal iso and had to also reboot after the .run file was executed before /media/sf_<share_name> was seen. Not sure if a fresh terminal window would've also worked, but I was good after 2nd reboot.
Thanks! This worked for me with the following additional steps:
sudo usermod -aG vboxsf $(whoami)
[vagrant@aliyun-local /]$ sudo mkdir /vv
[vagrant@aliyun-local /]$ sudo mount -t vboxsf vv_host /vv
mount: wrong fs type, bad option, bad superblock on vv_host,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
I executed the sudo mount -t vboxsf vv_host / vv after the above error
How to solve it?
sudo mount -t vboxsf vv_host / vv
is there any way to permanently mount the shared folder in every reboots ?
Thank you worked for me. I had to do this first. yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers
then yum install kernel-devel
followed your instructions to get the shared drive working on CentOs7.4
Mount with fstab as so
<name_of_share> /path/to/mountpoint vboxsf default 0 0
/sbin/mount.vboxsf: mounting failed with the error: No such device