Giter Club home page Giter Club logo

crouton-packages's People

Contributors

bbigras avatar coryspitzer avatar divx118 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crouton-packages's Issues

My kernel header is missing from the repo where else should I look? 3.18 EDGAR

uname -r

3.18.0-12632-g42a6df4

What Im getting is really close with
git checkout HEAD~411

3.18.0-12632-XXXXXXXX

but still not the correct one is it okay to use this one or should I look into kernel-next

net/Kconfig:373:warning: environment variable WIFIVERSION undefined
3.18.0-12632-g7696814
(xenial)marvin@localhost:/kernel$ uname -r
3.18.0-12632-g42a6df4
(xenial)marvin@localhost:
/kernel$ git reset --hard origin/chromeos-3.18

ChromeOS 3.14.0: New Virtualbox cannot install, existing installations panic

So I've had this issue for a few weeks now. I've spent much of the time seeking to eliminate myself as the cause, and try to fix it myself, and now can prove its a purely repeatable problem, now beyond my ideas to fix.

Take a new (e.g. Powerwash) Chromebook, developer mode. I have a Toshiba Chromebook 2 with

uname -a

Linux localhost 3.14.0 #1 SMP Wed Jan 6 22:01:46 PST 2016 x86_64 Intel(R) Core(TM) i3-5015U CPU @ 2.10GHz GenuineIntel GNU/Linux

Perform a clean crouton install of trusty
e.g. sudo sh ~/Downloads/crouton -r trusty -t xcfce

Enter the chroot e.g
sudo startxfce4

Then use this package's setup-header.sh to add headers and modify rc.local

Then install virtualbox. The method I used was
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
added to /etc/apt/sources.list
Add key
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

update
sudo apt-get update

Then when you run this command, towards the end the Chromebook just reboots.
sudo apt-get install virtualbox-5.0

This is totally reproducible, I've done it many times.

It is not effacted if you logout/in of the chroot after the rc.local update before you install virtualbox.

I have installs which I had backups for, which were working with Virtualbox, then after ChromeOS update to 3.14.0 then Virtualbox would not run unless you ran the setup again, which then reboots the Chromebook as it builds new kernels.

I have also build my own kernels from scratch, downloading the ChromeOS kernel and that causes the exact same problem as I tell Virtualbox to setup.

Hence regardless of how you unique path is to ChromeOS 3.14.0, the same end result, Virtualbox is broke, will not run.

Crouton Fedora support

Hey @divx118 this isn't really an issue, just wanted to thank you for packaging these packages, and to let you know that they are working perfectly on my fork of Crouton for Fedora. I've managed to install VirtualBox 5.0 and even Docker (with docker-machine) fairly easily.

I wrote a few blog posts about how it can be done, which could be interesting for other people trying to do the same thing:

https://nmilosev.svbtle.com/virtualbox-and-crouton-fedora
https://nmilosev.svbtle.com/docker-on-crouton-fedora-24

Sadly, I too ran into issues with bridged adapters rebooting my Chromebook and host-only adapters not working. Still, NAT with port forwarding works like a charm. :)

Thank you again for your work.

Nemanja

C710 using 847 Crouton/Virtualbox works but on with 1007u does not.

Just created a long post regarding this issue and the Firefox browser crashed. So I will start this thread short and sweet on this attempt. Both 32bit and 64bit Virtualbox guest OS VM's stop responding when using the C710 with the 1007u processor. Both C710 are using the save version of Crouton/Virtualbox. Anyone have a similar problem?

Any advice would be greatly Appreciated!!
Regards, Ron

chromeos restarts when starting vm

I've installed virtualbox according to the readme, however when I set up an arch machine and press start chromeos just reboots - am I missing something?

Bad Header Line (3.10.18)

Upon running the setup-headers.sh script after changing kernel flags, apt-get is unable to load crouton-packages.

Get:12 http://archive.ubuntu.com trusty-updates/main i386 Packages [861 kB]
Err https://raw.githubusercontent.com 3.10.18/main amd64 Packages
  Bad header line
Get:13 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Hit http://archive.ubuntu.com trusty/universe Translation-en                   
Err https://raw.githubusercontent.com 3.10.18/main i386 Packages               
  HttpError503
Ign https://raw.githubusercontent.com 3.10.18/main Translation-en              
Fetched 5805 kB in 15s (365 kB/s)                                              
W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.10.18/main/binary-amd64/Packages  Bad header line

W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.10.18/main/binary-i386/Packages  HttpError503

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-3.10.18
E: Couldn't find any package by regex 'linux-headers-3.10.18'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-3.10.18
E: Couldn't find any package by regex 'linux-image-3.10.18'

Trying to Build kernel headers and install Virtualbox

I'm trying to get virtual box installed so that I can use Vagrant.

I followed the instructions here to the letter, as best as I could.

I got to the part where you log out and log in after running sudo chmod +x /etc/rc.local

When I logged out and then back in I got WARNING: /etc/rc.local failed with code 1

Here's my $ croutonversion:

 crouton: version 1-20150730171703~master:f8fdfb0c
 release: trusty
 architecture: amd64
 xmethod: xorg
 targets: xfce,xfce-desktop,keyboard,gtk-extra,extension,core,cli-extra,chrome,audio
 host: version 7077.111.0 (Official Build) stable-channel peppy 
 kernel: Linux localhost 3.8.11 #1 SMP Tue Jul 28 15:00:32 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
 freon: yes

Thanks for the help!

May i request 3.18.0 amd64?

May i request the vbox modules for 3.18.0-12612-g51e47a7 x86_64 too?

It's a HP Chromebook R11 with Firmware Google_Cyan.7287.57.64

Accept default option, as indicated.

After running sudo sh change-kernel-flags, I'm prompted to confirm my action and presented with the options 'Y' or 'n'. Since 'Y' is uppercase, indicating the default value, I hit enter but then the script simply exited. This is nit-picky, but the 'Y' should be lower case or correctly default when enter is pressed.

Do you want to apply those changes (Y/n)? [enter]
Exiting with no changes

rootdev: not found, cgpt: not found

Hello. Thank you for creating this repo and script! However, while following the instructions on a fresh crouton install of precise, I get the following from running the script:

sudo sh change-kernel-flags
change-kernel-flags: 1: /home/mustacken/Downloads/change-kernel-flags: rootdev: not found
change-kernel-flags: 1: /home/mustacken/Downloads/change-kernel-flags: cgpt: not found
/tmp/change-kernel-flags.tvU.
change-kernel-flags: 246: /home/mustacken/Downloads/change-kernel-flags: /usr/share/vboot/bin/make_dev_ssd.sh: not found
make_dev_ssd.sh --save_config Failed

Kernel version:

uname -a
Linux localhost 3.10.18 #1 SMP Wed Jan 6 22:11:59 PST 2016 x86_64 x86_64 x86_64 GNU/Linux

I'm using a Lenovo N21 80MG with precise installed on an SD card. I've searched google for rootdev and cgpt and can't seem to find anyone else with the same issue.

Thanks,

apt-get update fails + rc.local code 1 + cannot access module locking

@divx118 Firstly, thank you for all of your work on crouton. After carefully reading your contribution to the Wiki on creating headers for Virtualbox, I stood from my chair and applauded! Genius.

I'm trying to use the kernel headers from your PPA. I have not attempted to compile my own. However, I've run into three questions. Perhaps you can offer suggestions, please.

  1. apt-get update error. I ran the script setup-headers.sh and now, with every apt-get update I get the following error message:
    W: Failed to fetch https://raw.github.com/divx118/crouton-packages/master/dists/3.10.18/InRelease Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
  2. rc.local failed with code 1 After completing the installation, including Virtualbox (from the Virtualbox.org ppa), I get the following error when lauching
    sudo startxfce4 -n vbox
    Entering /mnt/stateful_partition/crouton/chroots/vbox...
    WARNING: /etc/rc.local failed with code 1
  3. troubleshoot Virtualbox Virtualbox fails to launch reporting: Kernel driver not installed (rc=-1908)
    I've checked the following:
    a. sudo /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel modules ...done.
    Uninstalling old VirtualBox DKMS kernel modules ...done.
    Trying to register the VirtualBox kernel modules using DKMS ...done.
    Starting VirtualBox kernel modules ...failed!
    b. The kernel headers and sym links are installed.
    ls -al /lib/modules/3.10.18
    build -> /usr/src/linux-headers-3.10.18
    and, there is a directory /usr/src/linux-headers-3.10.18
    c. rc.local is correct and executable
    d. However, when I run
    sudo /etc/rc.local it reports
    chmod: cannot access '/sys/module/lsm/parameters/module_locking': No such file or directory

Thanks for all of your help!!

[EDIT] @divx118 I found your comment on #1278

I am working on a script to simplify changing kernel flags with also the possibility to revert any changes, so go back to a previously backed up signed kernel. Once this is done I will update the wiki pages.

My issue may be related to your comment and the thread discussion. If so, please forgive me. I'll patiently wait ... Thanks again!!

Cannot install kernal modules

HP Chromebook 14 (x86)

I started with running the change-kernel-flags script in crosh, rebooted, then running the setup-headers.sh on the chroot. I then rebooted again and installed virtualbox. However the 'Recompiling kernel modules' part of the setup failed and virtualbox would not run any vm's. I looked at the logs and realized that gcc was not installed. I installed gcc and ran the /sbin/rcvboxdrv setup. During this the chromebook completely rebooted. /etc/rc.local also fails on starting the chroot. I tried uninstalling then reinstalling virtualbox, install also causes the chromebook to restart, at the 'Recompiling kernel modules' stage. I have removed virtualbox and removed the virtualbox stuff from /etc/rc.local. Any tips on how to get virtualbox working?

Cannot create host-only adapter

When running vboxmanage hostonlyif create (which is being called from running vagrant up in my Homestead folder), I receive the following error:

⟩ vboxmanage hostonlyif create
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: VBoxNetAdpCtl: ioctl failed for /dev/vboxnetctl: Invalid argument
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 66 of file VBoxManageHostonly.cpp

Does this indicate I did something wrong during the linux header and virtualbox installation? Is something else wrong? I tried restarting virtualbox, which seems to fix the problem for most people... however, nothing I do seems to get it to work.

I don't know if this is helpful, but here is the end of the dmesg output:

[   52.834395] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,data=ordered
[   53.501255] systemd-logind[17761]: Failed to enable subscription: Launch helper exited with unknown return code 1
[   53.501305] systemd-logind[17761]: Failed to fully start up daemon: Input/output error
[   53.545913] systemd-logind[17793]: Failed to enable subscription: Launch helper exited with unknown return code 1
[   53.545945] systemd-logind[17793]: Failed to fully start up daemon: Input/output error
[   53.647329] Chromium OS LSM: init_module locking-ignored module="/lib/modules/3.10.18/updates/dkms/vboxdrv.ko" pid=17815 cmdline="modprobe vboxdrv"
[   53.653689] vboxdrv: Found 2 processor cores.
[   53.653917] vboxdrv: fAsync=0 offMin=0x514 offMax=0x854
[   53.654060] vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
[   53.654068] vboxdrv: Successfully loaded version 4.3.18_Debian (interface 0x001a0008).
[   53.656027] Chromium OS LSM: init_module locking-ignored module="/lib/modules/3.10.18/updates/dkms/vboxpci.ko" pid=17817 cmdline="modprobe vboxpci"
[   53.656782] vboxpci: pci-stub module not available, cannot detach PCI devices
[   53.656792] vboxpci: IOMMU not found (not compiled)
[   53.658276] Chromium OS LSM: init_module locking-ignored module="/lib/modules/3.10.18/updates/dkms/vboxnetadp.ko" pid=17818 cmdline="modprobe vboxnetadp"
[   53.663607] Chromium OS LSM: init_module locking-ignored module="/lib/modules/3.10.18/updates/dkms/vboxnetflt.ko" pid=17824 cmdline="modprobe vboxnetflt"
[   53.698307] systemd-logind[17841]: Failed to enable subscription: Launch helper exited with unknown return code 1
[   53.698339] systemd-logind[17841]: Failed to fully start up daemon: Input/output error
[  668.173831] systemd-logind[20107]: Failed to enable subscription: Launch helper exited with unknown return code 1
[  668.173864] systemd-logind[20107]: Failed to fully start up daemon: Input/output error
[  673.308267] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,data=ordered
[  673.701878] systemd-logind[20571]: Failed to enable subscription: Launch helper exited with unknown return code 1
[  673.701921] systemd-logind[20571]: Failed to fully start up daemon: Input/output error
[  673.778024] systemd-logind[20603]: Failed to enable subscription: Launch helper exited with unknown return code 1
[  673.778072] systemd-logind[20603]: Failed to fully start up daemon: Input/output error
[  673.907524] systemd-logind[20652]: Failed to enable subscription: Launch helper exited with unknown return code 1
[  673.907572] systemd-logind[20652]: Failed to fully start up daemon: Input/output error
[  749.551059] warning: `VirtualBox' uses 32-bit capabilities (legacy support in use)

Thank you!

chrome os (probably) updated, crouton 14.04 gnome, now virtualbox won't start

(DennisLfromGA suggested I post this here):

I've been using crouton (for the last few months with Ubuntu 14.04 Gnome) on an Acer C720 for about a year, includng Virtualbox. Somewhere in the last few weeks, Virtualbox no longer starts, instead advising me to run /etc/init.d/vboxdrv setup (I had installed virtualbox a year ago along with my first Crouton install - Ubuntu 12.04 - and it has worked well until this.) This script does not run (ends with an error condition.) I imagine google forced an update of chrome OS (I really wish I could control that behavior; updates via a metered tethering account is an expensive process!)

As my C720+Crouton+Ubuntu is a daily-use ("daily driver") laptop, I have little time for tinkering and experimentation, so I'm looking for a time-efficient way to recover virtualbox to operational. I recall when I first installed Virtualbox (a year ago) that I was able to find .deb file(s) that contained pre-built kernel headers and such needed to allow Virtualbox to properly operate, instead of going through the whole rebuild-the-kernel cycle.

It seems that going through kernel rebuild would be unnecessary if someone archived the needed kernel header files (as I found a year ago), as it seems generating the files once and making them available would be straightforward.

Any pointer/advice (short of rebuilding kernel and all that?)

Very tks!

Does Crouton & Virtualbox work on Thinkpad x131e 1007u CPU based Chromebook?

I have Crouton/Ubuntu 12.04 & Virtualbox working on two Acer C710 Chromebooks one having a 1007u CPU and the other a 847 CPU. I am considering the purchase of a 1007u based x131e Thinkpad Chromebook.

Thanks Very Much in Advance
Ron

What is the ChromeOS kernel version on the x131e Chromebook?
Enter URL chrome://system/ in browser - kernel is shown in uname field
Example: uname
Linux localhost 3.4.0 #1 SMP Fri May 8 12:28:58 PDT 2015 x86_64 Intel(R) Celeron(R) CPU 847 @ 1.10GHz GenuineIntel GNU/Linux

Has anyone installed just Crouton?

Installing Virtualbox - wrong kernel version after building headers?

I'm trying to install Virtualbox on my Acer Chromebook R11

$ uname -r
3.18.0-12438-gfa5c4dd

i cloned the source for 3.18 and followed the steps in the Build kernel headers and install Virtualbox wiki page.
everything went successful, but the kernel and image files are named like this:

linux-headers-3.18.0-12453-g22f7042-dirty_3.18.0-12453-g22f7042-dirty-10.00.Custom_amd64.deb
linux-image-3.18.0-12453-g22f7042-dirty_3.18.0-12453-g22f7042-dirty-10.00.Custom_amd64.deb

So, the version appendix is 12453 instead of 12438

I think this leads to the following error, when trying to install the virtualbox modules with modprobe:

$ modprobe vboxdrv
bash: modprobe: command not found
(trusty)pitey@localhost:~/kernel$ sudo modprobe vboxdrv
modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/3.18.0-12438-gfa5c4dd/modules.builtin.bin'
modprobe: FATAL: Module vboxdrv not found.

Running /etc/init.d/vboxdrv setup gives the following:

$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 3.18.0-12438-gfa5c4dd cannot be found.
Please install the linux-headers-3.18.0-12438-gfa5c4dd package,
or use the --kernelsourcedir option to tell DKMS where it's located
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
(trusty)pitey@localhost:~/kernel$ 

Is there a way to change the version number when building the kernel headers?

Is it possible to install virtualbox on arm-based Chromebooks?

I have a HP Chromebook 11 and it is not clear to me if it is even possible to run Virtualbox via crouton on this architecture. Can you shed some light or point me in the right direction? Thanks!

# uname -a
Linux localhost 3.8.11 #1 SMP Thu Feb 5 21:55:46 PST 2015 armv7l armv7l armv7l GNU/Linux

Unable to install : bad header in repo

Hello,

I had a working install of ubuntu and virtualbox.
After several updates of chrome os without using my chroot, I needed to use my windows vm today.
I did the change-kernel flags thing in crosh
I then tried the setup thing in the chroot
and that's where it fails : apt-get update is not working...

As of now, I'm still unable to start my existing VM since virtualbox complans about the drivers.

Thank you in advance for your kind help !

Logs attached here : http://pastebin.com/pGGJtWq1

My guess is that something is wrong around here :

Get:1 https://raw.githubusercontent.com 3.8.11/main amd64 Packages
Err https://raw.githubusercontent.com 3.8.11/main amd64 Packages
  Bad header line
Err https://raw.githubusercontent.com 3.8.11/main i386 Packages
  Bad header line
Ign https://raw.githubusercontent.com 3.8.11/main Translation-en
W: There is no public key available for the following key IDs:
1397BC53640DB551
W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.8.11/main/binary-amd64/Packages  Bad header line

W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.8.11/main/binary-i386/Packages  Bad header line```

Also, for completeness, here is the content of my /etc/apt/sources.list.d/crouton-packages.list :

deb https://raw.githubusercontent.com/divx118/crouton-packages/master/ 3.8.11 main

vboxdrv: version magic '3.14.0 SMP mod_unload ' should be '3.14.0 SMP preempt mod_unload '

This is a resurgenc of a problem which was fixed weeks ago. Modprobe fails. Even if use --force.

You updated the headers then so need to do it again? You said

I just updated the kernel headers for 3.14.0 with CONFIG_PREEMPT disabled

vboxdrv: version magic '3.14.0 SMP mod_unload ' should be '3.14.0 SMP preempt mod_unload '

 sudo modprobe vboxdrv 
modprobe: ERROR: could not insert 'vboxdrv': Exec format error
(trusty)nigel@localhost:~$ sudo modprobe --force vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Exec format error



[25831.832662] Chromium OS LSM: init_module locking-ignored obj="/lib/modules/3.14.0/updates/dkms/vboxdrv.ko" pid=21598 cmdline="/sbin/modprobe vboxdrv"
[25831.833189] vboxdrv: version magic '3.14.0 SMP mod_unload ' should be '3.14.0 SMP preempt mod_unload '
[25857.123412] Chromium OS LSM: init_module locking-ignored obj="/lib/modules/3.14.0/updates/dkms/vboxdrv.ko" pid=21647 cmdline="modprobe vboxdrv"
[25857.123714] vboxdrv: version magic '3.14.0 SMP mod_unload ' should be '3.14.0 SMP preempt mod_unload '
[25862.874577] Chromium OS LSM: init_module locking-ignored obj="/lib/modules/3.14.0/updates/dkms/vboxdrv.ko" pid=21689 cmdline="modprobe --force vboxdrv"

Installing Kernel Headers from PPA

I followed the instructions here to install kernel headers from PPA on my Chromebook Pixel. However after logging back in when I launch Virtualbox 4.3 and attempt to start either an x86 or x64 VM I receive the error "Kernel driver not installed." I have confirmed the rc.local was written correctly. Unsure how to proceed.

3.8.11 Bad Header Line

When I run the setup-headers.sh file in my chroot, I am presented with this error multiple times.

Err https://raw.githubusercontent.com 3.8.11/main amd64 Bad header line

Full Output:
(trusty)sudonotpseudo@localhost:~$ sudo sh setup-headers.sh

This script will add the repo to your sources, download

and install the kernel headers appropriate to your
kernel version and architecture.
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version.
The following packages were automatically installed and are no longer required:
libgsoap4 virtualbox-dkms
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 78 not upgraded.
--2016-10-25 21:07:57-- https://raw.githubusercontent.com/divx118/crouton-packages/master/[email protected]
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.32.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.32.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1756 (1.7K) [text/plain]
Saving to: 'STDOUT'

100%[======================================================================================================>] 1,756 --.-K/s in 0s

2016-10-25 21:07:57 (185 MB/s) - written to stdout [1756/1756]

OK
--2016-10-25 21:07:57-- https://raw.githubusercontent.com/divx118/crouton-packages/master/conf/distributions
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.32.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.32.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 671 [text/plain]
Saving to: './tmp_dist'

100%[======================================================================================================>] 671 --.-K/s in 0s

2016-10-25 21:07:57 (72.2 MB/s) - './tmp_dist' saved [671/671]

3.8.11
amd64
Ign http://repo.mongodb.org trusty/mongodb-org/3.2 InRelease
Ign http://dl.google.com stable InRelease
Hit http://repo.mongodb.org trusty/mongodb-org/3.2 Release.gpg
Hit http://repo.mongodb.org trusty/mongodb-org/3.2 Release
Ign http://dl.google.com stable InRelease
Ign http://archive.ubuntu.com trusty InRelease
Hit http://ppa.launchpad.net trusty InRelease
Hit http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse amd64 Packages
Hit http://dl.google.com stable Release.gpg
Hit http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse i386 Packages
Hit http://dl.google.com stable Release.gpg
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://ppa.launchpad.net trusty InRelease
Hit http://dl.google.com stable Release
Ign http://repo.mongodb.org trusty/mongodb-org/3.2/multiverse Translation-en
Hit http://dl.google.com stable Release
Hit http://ppa.launchpad.net trusty InRelease
Hit http://dl.google.com stable/main amd64 Packages
Hit http://ppa.launchpad.net trusty InRelease
Ign https://raw.githubusercontent.com 3.8.11 InRelease
Hit http://dl.google.com stable/main amd64 Packages
Hit http://dl.google.com stable/main i386 Packages
Hit http://ppa.launchpad.net trusty InRelease
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty Release.gpg
Get:3 https://dl.bintray.com InRelease
Ign https://dl.bintray.com InRelease
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:4 http://archive.ubuntu.com trusty-updates/main Sources [383 kB]
Ign https://raw.githubusercontent.com 3.8.11 Release.gpg
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://dl.google.com stable/main Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Ign http://dl.google.com stable/main Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:5 http://archive.ubuntu.com trusty-updates/restricted Sources [5360 B]
Ign https://raw.githubusercontent.com 3.8.11 Release
Hit https://dl.bintray.com Release.gpg
Hit http://ppa.launchpad.net trusty/main i386 Packages
Get:6 http://archive.ubuntu.com trusty-updates/universe Sources [169 kB]
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:7 http://archive.ubuntu.com trusty-updates/multiverse Sources [7511 B]
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [910 kB]
Hit http://ppa.launchpad.net trusty/main i386 Packages
Get:9 https://raw.githubusercontent.com 3.8.11/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:10 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [15.9 kB]
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Get:11 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [387 kB]
Hit http://ppa.launchpad.net trusty/main i386 Packages
Get:12 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [15.0 kB]
Hit http://ppa.launchpad.net trusty/main Translation-en
Get:13 http://archive.ubuntu.com trusty-updates/main i386 Packages [870 kB]
Hit https://dl.bintray.com Release
Get:14 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:15 http://archive.ubuntu.com trusty-updates/universe i386 Packages [389 kB]
Get:16 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [15.4 kB]
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit https://dl.bintray.com Packages
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Err https://raw.githubusercontent.com 3.8.11/main amd64 Packages
Bad header line
Get:17 http://archive.ubuntu.com trusty-security/main Sources [120 kB]
Get:18 http://archive.ubuntu.com trusty-security/restricted Sources [4064 B]
Get:19 http://archive.ubuntu.com trusty-security/universe Sources [44.3 kB]
Get:20 http://archive.ubuntu.com trusty-security/multiverse Sources [3201 B]
Get:21 http://archive.ubuntu.com trusty-security/main amd64 Packages [541 kB]
Err https://raw.githubusercontent.com 3.8.11/main i386 Packages
Bad header line
Get:22 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [13.0 kB]
Get:23 https://dl.bintray.com Translation-en
Get:24 http://archive.ubuntu.com trusty-security/universe amd64 Packages [140 kB]
Get:25 https://dl.bintray.com Translation-en
Get:26 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [5198 B]
Get:27 http://archive.ubuntu.com trusty-security/main i386 Packages [501 kB]
Get:28 https://dl.bintray.com Translation-en
Ign https://raw.githubusercontent.com 3.8.11/main Translation-en
Get:29 http://archive.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Get:30 https://dl.bintray.com Translation-en
Get:31 http://archive.ubuntu.com trusty-security/universe i386 Packages [140 kB]
Get:32 https://dl.bintray.com Translation-en
Ign https://dl.bintray.com Translation-en
Get:33 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [5348 B]
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Fetched 4846 kB in 8s (553 kB/s)
W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.8.11/main/binary-amd64/Packages Bad header line

W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.8.11/main/binary-i386/Packages Bad header line

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.8.11
E: Couldn't find any package by regex 'linux-headers-3.8.11'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.8.11
E: Couldn't find any package by regex 'linux-image-3.8.11'

If you made any changes to rc.local, then you should reapply them in the new

/etc/rc.local. Your old file is named /etc/rc.local.old.

--2016-10-25 21:08:12-- https://raw.githubusercontent.com/divx118/crouton-packages/master/rc.local
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.32.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.32.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 785 [text/plain]
Saving to: '/etc/rc.local'

100%[======================================================================================================>] 785 --.-K/s in 0s

2016-10-25 21:08:12 (59.7 MB/s) - '/etc/rc.local' saved [785/785]

All done now, you can install virtualbox. Note that you need to log out of your chroot

and start it again to load the modules needed for virtualbox.

Any ideas?

ChromeOS vm

Granted I know next to nothing about running vm's on a Chromebook but 'crouton-packages' seems like a pretty slick way to accomplish it via a chroot.

I'm thinking about trying this out on my HP Chromebook 14 but I think I need a little guidance/explanation before I dive in. I've seen wiki pages on the crouton site that discuss this but I'm still a little confused after reading them.

Question: Do I need to follow and perform the steps in all 3 articles below?

  1. 'Build kernel headers and install Virtualbox (x86)'
  2. 'Build chrome os kernel and kernel modules'
  3. (a) 'Repack kernel to Enable VT_x for Virtualbox'
  4. (b) 'Can't disable module_locking in ChromeOS dev channel #1278'

Also, an article on the chromium site talks about 'Running virtual machines on your chromebook' and under 'Enabling VMX Support' it seems to indicate that you have to do a 'hard-disconnect' of the battery before it's effective.(???) They also provide a couple of compressed tar files, one a 'qroot' with libraries and stuff and another with a an image. So, I guess with these additions, one can run a vm in ChromeOS without the need of a modded chroot.(???)

I'd appreciate any insight you can give me along these lines.
I realize I've asked a lot and you probably don't have the time or, like me, patience to walk me through this so I'll understand if this goes unanswered. :)

Confused,
-DennisL

Can this script also change PPP kernel flag?

Hi,

This is more of a question than an issue. I'm pretty new to the world of chromebooks and crouton. I would like to use a PPTP VPN with my crouton install, but the PPP kernel is not included with ChromeOS (see a similar issue here: dnschneid/crouton#378). Can I use your script to add the PPP kernel to my system, or does it only work for adding the necessary modules needed for virtualbox? I couldn't really tell by reading the documentation. Thanks for your help!

vboxdrv setup errors

Good Day!
I followed the great directions carefully, but I am running into issues, I believe, getting the vboxdrv modules to load. I receive the following errors:

(TestChroot)hami@localhost:~$ sudo /etc/init.d/vboxdrv setup
[sudo] password for hami:
Stopping VirtualBox kernel modules ...done.
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)

Where /var/log/vbox-install.log yields five instances of:
Makefile:185: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

Any help?

What information can I provide to assist?

Thank you sincerely

kernel 3.10.18 modprobe vboxdrv failed

@divx118
I installed the headers from your setup-headers.sh and installed virtualbox using their website's .deb file. I have also ran the script to enable VT_X

(precise)josh@localhost:~$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Removing old VirtualBox pci kernel module ...done.
Removing old VirtualBox netadp kernel module ...done.
Removing old VirtualBox netflt kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel modules ...done.
Starting VirtualBox kernel modules ...failed!
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)

ouput of rc.local :

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

disable module locking and try to load vboxdrv

if [ find /lib/modules/"\uname -r" -name vboxdrv.ko ]; then

modprobe vboxdrv
modprobe vboxpci
modprobe vboxnetadp
modprobe vboxnetflt

fi

exit 0

Trying to sudo /etc/rc.local returns:

FATAL: Error inserting vboxdrv (/lib/modules/3.10.18/misc/vboxdrv.ko): Operation not permitted

Something broke VirtualBox today

Hello,

After CrOS updated to Version 48.0.2564.23 beta (64-bit), I followed my standard procedure:

  1. Change the kernel flags
  2. Reboot
  3. Update crouton (which also updates all packages)
  4. Reboot
  5. Start my trusty chroot and then VirtualBox: boom!

Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem ...

But, lsmod confirms the kernel modules are loading:
vboxnetflt 28093 0
vboxnetadp 25540 0
vboxpci 23143 0
vboxdrv 361092 3 vboxnetadp,vboxnetflt,vboxpci

So, I purged VirtualBox, reinstalled the headers from the PPA, and reinstalled VirtualBox. After confirming the kernel modules are indeed loading, tried again: same error.

I would keep troubeshooting, but I'm stuck. Any suggestions would be most welcome. Thanks!

[Edit] A little more information. The output of
$sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...failed!
(Cannot locate the VirtualBox device)

Issue with vbox modules on 3.14.0

Following running the setup-headers.sh script in a chroot - the vbox modules are not present in the /lib/modules/3.14.0 directory - this causes the rc.local script to fail.

This is on a Chromebook Pixel 2015 (i7), Chromeos Version 52.0.2743.85 (64-bit), ubuntu precise chroot

Kernel driver load for Trusty/Crouton suddenly failing (VirtualBox)

For quite some time I've been successfully running VB on Trusty on Crouton, with some shell scripts I run manually in CrOS to re-enable their loading after CrOS updates and appropriate entries in /etc/rc.local. This process is suddenly failing, even after my scripts run to allow rw, etc. I can't get past: Kernel driver not installed (rc=-1908). Has there been a change in the last couple of CrOS releases that would break the process that was working up to now? Thanks!

Virtualbox will not start after ChromeOS update / error running the hange-kernel-flags script

Hello,

My ChromeOS was updated to 47.0.2526.110 (64-bit) a few days ago and I went to run Virtualbox in my Trusty XFCE crouton and the VM would not start.

At that point I went into the crosh, entered a shell and issued the command

sudo sh ~/Downloads/change-kernel-flags -r

When I issue this command I get this error

chronos@localhost ~ $ sudo sh ~/Downloads/change-kernel-flags -r
List of backup kernel files in "/mnt/stateful_partition/backups"

No backup kernels found in /mnt/stateful_partition/backups

I checked the /mnt/stateful_partition/backups directory I found that there was a backup file in it kernel_A_20151220_163251.bin

Then I tried moving the backup file out of the directory and reran the command. Still the same error.

NOTE: my crouton is on an external SSD drive. I have not remapped the crouton directory. I start the crouton using this command

sudo enter-chroot -c /media/removable/Chroots/chroots -n xfce startxfce4

Hopefully someone can help me to get my kernel flags updated so that I can run my Virtualbox VM's again.

TIA,

Robert

Kernel Panic on Chromebook Pixel 2015 (Kernel 3.14.0)

Hello,

I noticed that I am receiving a kernel panic after I have run the script and try to install the latest VirtualBox 5.0.12. I am on a Chromebook Pixel 2015, 64gb, Wi-Fi, Core i7. I have tried the crouton script to install the following variants all with the same kernel panic result:

  • Trusty, xiwi, unity
  • Precise, xiwi, unity
  • Wily: xiwi, unity

When the VirtualBox 5.0.12 deb file gets to "Recompiling kernel modules" it takes a while and then the Chromebook just reboots (kernel panic/fault).

Are there any debug messages I can capture to try to help resolve this?

Thanks,
Chris Zenzel

virtualbox will not start after upgrade of chromeos

Hi after an upgrade of Chromeos, I cannot set up virtual box. Please help.

I am on

 v 53.0.2785.103 (64-bit) on Platform 8530.81.0 
(Official Build) stable-channel panther 
Firmware Google_Panther.4920.24.26

I have rerun sudo sh ~/Downloads/change-kernel-flags and setup-headers.sh.

There was an error for a bad header, but otherwise the output was fine, see below

# This script will add the repo to your sources, download
and install the kernel headers appropriate to your
kernel version and architecture.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version.
The following packages were automatically installed and are no longer required:
  libgsoap4 libmysqlclient18 libqt4-declarative libqt4-network libqt4-opengl
  libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml libqt4-xmlpatterns
  libqtcore4 libqtdbus4 libqtgui4 libvncserver0 mysql-common qtcore4-l10n
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--2016-09-19 15:20:34--  https://raw.githubusercontent.com/divx118/crouton-packages/master/[email protected]
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1756 (1.7K) [text/plain]
Saving to: 'STDOUT'

100%[========================================================================================================================================================================>] 1,756       --.-K/s   in 0s      

2016-09-19 15:20:34 (181 MB/s) - written to stdout [1756/1756]

OK
--2016-09-19 15:20:34--  https://raw.githubusercontent.com/divx118/crouton-packages/master/conf/distributions
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 671 [text/plain]
Saving to: './tmp_dist'

100%[========================================================================================================================================================================>] 671         --.-K/s   in 0s      

2016-09-19 15:20:34 (63.8 MB/s) - './tmp_dist' saved [671/671]

3.8.11
amd64
Hit http://ppa.launchpad.net trusty InRelease
Ign http://archive.ubuntu.com trusty InRelease                                 
Hit http://ppa.launchpad.net trusty InRelease                        
Hit http://archive.ubuntu.com trusty-updates InRelease                         
Hit http://ppa.launchpad.net trusty InRelease                                  
Hit http://archive.ubuntu.com trusty-security InRelease                        
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://archive.ubuntu.com trusty Release.gpg                               
Hit http://ppa.launchpad.net trusty/main i386 Packages               
Hit http://archive.ubuntu.com trusty-updates/main Sources                      
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://archive.ubuntu.com trusty-updates/restricted Sources                
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Ign http://cran.rstudio.com trusty/ InRelease                                  
Hit http://archive.ubuntu.com trusty-updates/universe Sources                  
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://cran.rstudio.com trusty/ Release.gpg                                
Hit http://archive.ubuntu.com trusty-updates/multiverse Sources                
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://cran.rstudio.com trusty/ Release                                    
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages      
Hit http://ppa.launchpad.net trusty/main amd64 Packages            
Hit http://cran.rstudio.com trusty/ Packages                                   
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages         
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages           
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit https://deb.nodesource.com trusty InRelease                    
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages         
Ign https://raw.githubusercontent.com 3.8.11 InRelease                         
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages                
Hit https://deb.nodesource.com trusty/main Sources                 
Hit https://deb.nodesource.com trusty/main amd64 Packages          
Hit http://archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit https://deb.nodesource.com trusty/main i386 Packages           
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages
Get:1 https://deb.nodesource.com trusty/main Translation-en        
Hit http://archive.ubuntu.com trusty-updates/multiverse i386 Packages          
Hit http://archive.ubuntu.com trusty-updates/main Translation-en               
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Ign https://deb.nodesource.com trusty/main Translation-en          
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en   
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en     
Hit http://archive.ubuntu.com trusty-security/main Sources               
Hit http://archive.ubuntu.com trusty-security/restricted Sources         
Ign https://raw.githubusercontent.com 3.8.11 Release.gpg                 
Hit http://archive.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty-security/multiverse Sources 
Hit http://archive.ubuntu.com trusty-security/main amd64 Packages
Ign http://cran.rstudio.com trusty/ Translation-en                 
Hit http://archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-security/main i386 Packages
Hit http://archive.ubuntu.com trusty-security/restricted i386 Packages
Hit http://archive.ubuntu.com trusty-security/universe i386 Packages
Hit http://archive.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty Release      
Ign https://raw.githubusercontent.com 3.8.11 Release
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Get:2 https://raw.githubusercontent.com 3.8.11/main amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en      
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Err https://raw.githubusercontent.com 3.8.11/main amd64 Packages
  Bad header line
Err https://raw.githubusercontent.com 3.8.11/main i386 Packages
  Bad header line
Ign https://raw.githubusercontent.com 3.8.11/main Translation-en
W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.8.11/main/binary-amd64/Packages  Bad header line

W: Failed to fetch https://raw.githubusercontent.com/divx118/crouton-packages/master/dists/3.8.11/main/binary-i386/Packages  Bad header line

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-3.8.11 is already the newest version.
The following packages were automatically installed and are no longer required:
  libgsoap4 libmysqlclient18 libqt4-declarative libqt4-network libqt4-opengl
  libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml libqt4-xmlpatterns
  libqtcore4 libqtdbus4 libqtgui4 libvncserver0 mysql-common qtcore4-l10n
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-image-3.8.11 is already the newest version.
The following packages were automatically installed and are no longer required:
  libgsoap4 libmysqlclient18 libqt4-declarative libqt4-network libqt4-opengl
  libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml libqt4-xmlpatterns
  libqtcore4 libqtdbus4 libqtgui4 libvncserver0 mysql-common qtcore4-l10n
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

============================================================================
If you made any changes to rc.local, then you should reapply them in the new
/etc/rc.local. Your old file is named /etc/rc.local.old.
============================================================================

--2016-09-19 15:20:43--  https://raw.githubusercontent.com/divx118/crouton-packages/master/rc.local
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 785 [text/plain]
Saving to: '/etc/rc.local'

100%[========================================================================================================================================================================>] 785         --.-K/s   in 0s      

2016-09-19 15:20:44 (215 MB/s) - '/etc/rc.local' saved [785/785]


======================================================================================
All done now, you can install virtualbox. Note that you need to log out of your chroot
and start it again to load the modules needed for virtualbox.
======================================================================================

However when I want to start the chroot I get this warning

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (3.8.11) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

And indeed no virtual machines will start.

Rerunning the script as suggested gives

vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

Now I am stuck. I do not know what to look for in dmesg and I do not know why vboxdrv failed to load.

Any help appreciated.

Continuation of Issue #27 // Updater keeps trying to download kernel and fails

I don't know if my comments on #27 after it was closed (not by me) are being seen, so I'm continuing here.


Looks like I have to re-open this [oops, GitHub won't let me]. Trouble. Everything seemed to be working, but the ubuntu updater now keeps trying to download and install a 3.8.11 binary image. Apparently it fails the install, but keeps trying. Worse, after a boot it took me three tries to get back into the chroot. It kept failing and I see now that my rc.local hasn't run. So something is amiss! I'm going to take a chance and try reboot again.

UPDATE:
I've solved the booting/rc.local problem. But ubuntu updater keeps insisting it wants to download and install a 3.8.11 image -- the latter presumably fails, of course. Can you suggest a way to stop it? Thanks!

no make_dev_ssd.sh script on chromebook pixel

Hi,
Trying to run change-kernel-flags on a chromebook pixel (kernel 3.14, xenial chroot) results in:

/usr/share/vboot/bin/make_dev_ssd.sh: not found
make_dev_ssd.sh --save_config Failed

am I missing a vboot package? I installed vboot-kernel-utils and vboot-utils, but those didn't help.

Thanks!

Change Kernel Flags Script Issue

Hi there,

I've been trying to get Virtualbox to work on my Toshiba Chromebook 2. When I try to run VirtualBox, I get:

Kernel driver not installed (rc=-1908)The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing '/etc/init.d/vboxdrv setup'as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

where: suplibOsInit
what: 3

VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

When I attempt to run '/etc/init.d/vboxdrv setup', I get command not found.

I found your page, but the change-kernel-flags fails for me. I get:

(trusty)root@localhost:~# sudo sh change-kernel-flags
change-kernel-flags: 1: change-kernel-flags: rootdev: not found
change-kernel-flags: 1: change-kernel-flags: cgpt: not found
/tmp/change-kernel-flags.AfA.
change-kernel-flags: 246: change-kernel-flags: /usr/share/vboot/bin/make_dev_ssd.sh: not found

make_dev_ssd.sh --save_config Failed

Any idea why it's failing?

Many thanks!

After setup-headers.sh init_module denied, header or bios problem?

Hi guys, thank you for your nice work. The existence of stuff like crouton really convinced me to get a chromebook. After getting my hands dirty everything seems to work like I want it to. However being able to run virtual machines would be the cherry on the cake. Im now trying to get that to work with your scripts.

After running the setup-headers.sh script i get this error:

[ 499.362905] Chromium OS LSM: init_module denied module="/lib/modules/3.8.11/updates/dkms/vboxdrv.ko" pid=22154 cmdline="modprobe vboxdrv"
[ 499.798884] systemd-logind[22246]: Failed to enable subscription: Launch helper exited with unknown return code 1
[ 499.798918] systemd-logind[22246]: Failed to fully start up daemon: Input/output error

You think this is a problem with the headers and I should perform building the headers step by step, or should I change something in my bios? I expected to need to change something in the bios but havent encountered it yet.

My kernel is version 3.8 on an acer c720p. My chroot build is jessie. I hope this is the right place to ask, this isnt really an 'issue' with your project its more like troubleshooting the issue I ran into.

Unable to load virtualbox modules

Hi,

I have followed the steps exactly as mentioned in README.md . I have a 64 bit debian sid chroot.

When I do , $ sudo modprove vboxdrv
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/3.8.11

The only difference in my setup is that I am using the debian package for virtualbox instead of the one on the website. I was not able to install the .deb package on debian sid. Do you know if this might be the reason?

SSL Certificate not Working

The SSL Certificates included with the script to download the headers do not work. It prevents the headers from downloading and I can't seem to find a way around it, here's some of the errors:

Err https://raw.github.com 3.10.18/main amd64 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Hit http://archive.ubuntu.com trusty-security/main Sources
Err https://raw.github.com 3.10.18/main i386 Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

W: Failed to fetch https://raw.github.com/divx118/crouton-packages/master/dists/3.10.18/main/binary-amd64/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

W: Failed to fetch https://raw.github.com/divx118/crouton-packages/master/dists/3.10.18/main/binary-i386/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

E: Some index files failed to download. They have been ignored, or old ones used instead.

Reading state information... Done
E: Unable to locate package linux-headers-3.10.18
E: Couldn't find any package by regex 'linux-headers-3.10.18'
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.10.18
E: Couldn't find any package by regex 'linux-image-3.10.18'

package linux-headers-3.14.0, linux-image-3.14.0 ?

When attempting to install packages with setup-headers.sh:

Err https://raw.github.com 3.14.0/main i386 Packages                           
  HttpError503
Ign https://raw.github.com 3.14.0/main Translation-en                          
Fetched 2829 kB in 46s (60.3 kB/s)                                             
W: GPG error: http://download.virtualbox.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: Failed to fetch https://raw.github.com/divx118/crouton-packages/master/dists/3.14.0/main/binary-amd64/Packages  Bad header line

W: Failed to fetch https://raw.github.com/divx118/crouton-packages/master/dists/3.14.0/main/binary-i386/Packages  HttpError503

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-3.14.0
E: Couldn't find any package by regex 'linux-headers-3.14.0'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-3.14.0
E: Couldn't find any package by regex 'linux-image-3.14.0'

Virtualbox will not work, instead will it encounter an error relating to 3.14.0 kernel headers. I assume this means that they have not been installed.

I don't know how any of this works, so forgive me if it's my fault.

acer cb3-111 virtualbox throws errors upon starting vm

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.


The instructions were followed, but virtualbox refuses to start and provides the message above. The instructions point to a file that does not exist. The chroot is ubuntu 14.04 "trusty" this issue has been reproduced on ubuntu 12.04 "precise" my chromebook uses the 3.10 kernel which is marked "needs testing" in your readme.

Your help is greatly appreciated as this is my only method of setting up a reliable android emulator. (chrubuntu installation is impossible for this model)

Comment: Everything works great - Thanx!

Just wanted to let you know that I finally got around to playing with virtualbox vm's and, after running your change-kernel-flags.sh script in Chrome OS and your setup-headers.sh script in my 'trusty' chroot, and then installing VirtualBox 5.0.10 of course, everything is running very smoothly.

I had only used VMware in the past on desktops, etc. and never had tried VirtualBox. I installed a couple of OSes from ISO's and was very surprised just how well they run in a crouton chroot. I then rediscovered 'ova' files and installed some of them - quick and simple. So simple in fact I made a few of my own for safe keeping.

Just thought I'd let you know how it went, I've talked about doing it on a Chromebook but never had.

Thanx for your scripts and your wiki guides and stuff,
-DennisL 👍

BTW, I did this on my Acer C7 (parrot) with:
4GB RAM / 20GB STATEFUL / 25GB CHRUBUNTU / 70GB CROUTON

VirtualBox won't run... maybe an issue header flags script tested with (Linux localhost 3.10.18 #1 SMP Wed Jun 10 23:15:24 PDT 2015 x86_64 Intel(R) Celeron(R) CPU N2830 @ 2.16GHz GenuineIntel GNU/Linux)...

@divx118 and @dnschneid etc.

When I ran the setup-headers command, I noticed some strange looking things like apt-get: not found messages and others... (see below). On top of that, I'm having trouble installing and running virtualbox, which is giving me the message that I am missing kernel headers. My kernel version is 3.10.8 (Linux localhost 3.10.18 #1 SMP Wed Jun 10 23:15:24 PDT 2015 x86_64 Intel(R) Celeron(R) CPU N2830 @ 2.16GHz GenuineIntel GNU/Linux)

chronos@localhost ~ $ sudo sh setup-headers.sh
# This script will add the repo to your sources, download
and install the kernel headers appropriate to your
kernel version and architecture.
setup-headers.sh: 16: apt-get: not found
setup-headers.sh: 17: apt-key: not found
--2015-06-21 02:34:53--  https://raw.github.com/divx118/crouton-packages/master/[email protected]
Resolving raw.github.com... 199.27.76.133
Connecting to raw.github.com|199.27.76.133|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/divx118/crouton-packages/master/[email protected] [following]
--2015-06-21 02:34:53--  https://raw.githubusercontent.com/divx118/crouton-packages/master/[email protected]
Resolving raw.githubusercontent.com... 199.27.76.133
Connecting to raw.githubusercontent.com|199.27.76.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1756 (1.7K) [text/plain]
Saving to: 'STDOUT'

-                                       0%[                                                                         ]       0  --.-KB/s   in 0s     


Cannot write to '-' (Success).
--2015-06-21 02:34:53--  https://raw.github.com/divx118/crouton-packages/master/conf/distributions
Resolving raw.github.com... 199.27.76.133
Connecting to raw.github.com|199.27.76.133|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/divx118/crouton-packages/master/conf/distributions [following]
--2015-06-21 02:34:53--  https://raw.githubusercontent.com/divx118/crouton-packages/master/conf/distributions
Resolving raw.githubusercontent.com... 199.27.76.133
Connecting to raw.githubusercontent.com|199.27.76.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 660 [text/plain]
Saving to: './tmp_dist'

./tmp_dist                            100%[========================================================================>]     660  --.-KB/s   in 0s     

2015-06-21 02:34:53 (83.1 MB/s) - './tmp_dist' saved [660/660]

3.10.18
amd64
setup-headers.sh: 45: cannot create /etc/apt/sources.list.d/crouton-packages.list: Directory nonexistent
setup-headers.sh: 46: apt-get: not found
setup-headers.sh: 51: apt-get: not found
setup-headers.sh: 52: apt-get: not found
/etc/rc.local: Read-only file system
chown: cannot access ‘/etc/rc.local’: No such file or directory
chmod: cannot access ‘/etc/rc.local’: No such file or directory

======================================================================================
All done now, you can install virtualbox. Note that you need to log out of your chroot
and start it again to load the modules needed for virtualbox.
======================================================================================

Thanks in advance for any help you can offer! If I'm too green, and you don't want to bother, I totally understand!!!
`Kev

Headers for 3.14.0

@divx118 I feel like the kid who's back asking for more ...

uname -a
Linux localhost 3.14.0 #1 SMP Thu Mar 12 20:35:26 PDT 2015 x86_64 Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz GenuineIntel GNU/Linux

After you spent all of last weekend updating the repository, there's a new one on the block, 13.4.0 :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.