-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem installing virtualbox #939
Comments
You have to disable module locking. See the /etc/rc.local script https://github.com/dnschneid/crouton/wiki/Build-kernel-headers-and-install-Virtualbox-%28x86%29#installing-kernel-headersimage BTW there is another workaround for |
Thanks for the tip. It dawned on me when I woke up this morning that the rc.local wasn't doing the right thing because I didn't have /etc/init.d/vboxdrv. I modified the script to look for /etc/init.d/virtualbox and made it call /sbin/modprobe vboxdrv directly. I had to manually unlock for the initial virtualbox install to work properly as well. Finally, I had to repack the kernel for VT-x. Now I'm able to launch a vm and use vagrant. Thanks for the helpful writeup btw. |
Glad you figured it out.
|
Hi, I'm having problems installing Virtualbox. I followed the above guide 100% and it just wouldn't work. I'm tech savvy but this kind of stuff can be very confusing. I have a C720 and I installed crouton using this guide: And the only difference is that it is on my external HD. My kernel info: Can someone please give me a simple to understand step by step guide as to where to proceed after I have cloned the correct kernel repo to my home dir? |
For your device you can follow https://github.com/dnschneid/crouton/wiki/Build-kernel-headers-and-install-Virtualbox-(x86)#installing-x86_64-3811-kernel-headers-from-github |
Good news and bad news. The kernel issues are gone! Thanks :) BUT now, I get vt-x errors. Are those resolvable? Edit: I want to run windows 8.1 Edit 2: I looked around and I tried this script: I haven't had a chance to boot into the chroot yet (I'm backing it up cause I haven't done that yet) I will report back.. |
Alright I got it working! Thanks everyone :) |
@nullterminated can you send me your modified rc.local? I was able to install using apt-get but get an error about a missing vboxdrv when I try to run a vm. |
@stephenmedina I don't have it any longer. My crouton has been wiped out several times since then. If I remember correctly, I used the mentioned rc.local from but replaced references to vboxdrv with virtualbox since that is what was built for me. |
Hi, I'm not that Linux saavy but I have to install XP on a chromebook C720 as well, already installed Crouton. I have a couple of noob questions just to start. How do I know my kernel info where it says linux localhost 3.8.11, etc, I want to be sure I'm on 3.8. Also, everything you do on building your kernel headers, you write that on chromebook console shell or in crouton shell?. Thanks in advance. |
|
Ty for the fast answer! and using only the readme.md was actually my next question haha. |
Forgot to ask, in which chroot do I write the commands?, the one on Chromebook or Crouton? I need to disable module locking and then do everything on the readme.md, right? which means also rebuild the kernel? |
chmod u+w module_locking: Operation not permitted, I have to rebuild kernel with disablevmx? |
Still cant install virtualbox as it doesnt load vbdrv, it says headers are not installed, my device is celeron but when I check the headers info it says architecture amd64, is that an error? |
The script setup-headers.sh need to be run inside the chroot. So on a command line in "crouton" and not the crosh shell. All is taking care of also disabling module_locking, so if you are not on dev channel just run the script setup-headers.sh and install virtualbox. Then logout of your chroot and log back in. Kernel modules should be loaded and you can start using virtualbox. |
Hi!, just made it, thanks a lot for your help and the original tutorial, also the PPA. Works great, now I have Chrome OS and Linux and XP. Is there a way to automate everything?, like turning on the laptop and it runs the shell, calls Crouton and runs VM, etc by itself.? |
Autostart crouton chroot at ChromeOS startup On Mon, Jan 26, 2015 at 4:52 AM, Gothmogz [email protected] wrote:
DennyL@GMail |
having similar issues to above. I followed the kernel building instructions to the T (built kernel 3.8.11) and got this error:
then used the script posted above (to get 3.10.xx) and arrived at the same . also: dmesg: more: |
@jewnersey Yes sorry known issue for installing 3.10 kernel headers. Use the steps in this post divx118/crouton-packages#4 (comment) |
thanks for all that. making some progress I used the script, reinstalled VirtualBox, apt-get install dkms (i couldnt used apt-get install virtualbox-dkms because i used the .deb from the website), try and start a vbox and get the same error. went into terminal and loaded the VM kernel module manually, start vbox again, black screen then straight to chrome boot screen. |
@jewnersey Ok, I think you have a problem with the kernel headers you build yourself. Remove/uninstall the installed kernel headers packages you build yourself. Then use the packages from my git repo divx118/crouton-packages#4 (comment) |
Deleted homemade kernel |
@jewnersey Did you also remove the .deb files you installed linux-image-3.8.11_3.8.11-10.00.Custom_amd64.deb and linux-headers-3.8.11_3.8.11-10.00.Custom_amd64.deb |
-ok so I removed all the .debs.
|
@jewnersey Ok, I think you are almost there. When you run Can you also post And Since you cannot write the sysfs path to disable module_locking, you will need to remove those lines from rc.local. If you don't do that rc.local will fail to execute. Below is an example how rc.local for you should look like. #!/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.
# umount bindmounts /lib/modules from enter-chroot
for m in `cat /proc/mounts | /usr/bin/cut -d ' ' -f2 | grep /lib/modules| grep -v "^/$" `; do
umount "$m"
done
# load vboxdrv
if [ `find /lib/modules/"\`uname -r\`" -name vboxdrv.ko` ]; then
modprobe vboxdrv
modprobe vboxpci
modprobe vboxnetadp
modprobe vboxnetflt
fi
exit 0 |
setup fails
my rc.local is identical to yours.
|
@jewnersey |
ran the script from chronos |
@jewnersey Sorry I am out of options then. I have no chromebook here with the newer 3.10 kernel so I could see if I can replicate it. You would need to look at |
thanks for trying! |
For those who didn’t find a solution of this issue here. I’ve just posted the solution here: Hope this helps someone :-) |
My system is Acer C720, running xfce 14.04 with crouton.
uname -r
3.4.0
I followed the instructions to build linux headers for the 3.4 branch found on the wiki here
https://github.com/dnschneid/crouton/wiki/Build-kernel-headers-and-install-Virtualbox-%28x86%29
The process failed when I reached
$ make-kpkg --rootcmd fakeroot kernel_image kernel_headers
The error was
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
Google tells me fstack-protector-strong is new in GCC 4.9. apt-get told me I already had gcc-4.9, but close inspection reveals that
/usr/lib/gcc//4.9/ are all empty
I seems not much is installed for 4.9 here:
http://packages.ubuntu.com/trusty/amd64/gcc-4.9-base/filelist
I built GCC 4.9 with the process I described in issue 797
#797
Then I was able to successfully build the 3.4 branch. Once I installed the build products, I tried to install virtualbox.
sudo apt-get install virtualbox
The install runs but I see:
No suitable module for running kernel found
The install then builds the modules successfully, but then I see another error:
modprobe vboxdrv failed. Please use 'dmesg' to find out why
dmesg | tail
[14148.574653] Chromium OS LSM: init_module denied module="/lib/modules/3.4.0/updates/dkms/vboxdrv.ko" pid=32764 cmdline="modprobe vboxdrv"
sudo /sbin/modprobe -v vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted
I see no /etc/init.d/vboxdrv. I only see /etc/init.d/virtualbox
Does anyone know why this is failing?
The text was updated successfully, but these errors were encountered: