divx118 / crouton-packages

Kernel-headers packages to use with crouton
56 stars 16 forks source link

virtualbox will not start after upgrade of chromeos #52

Open 1na opened 7 years ago

1na commented 7 years ago

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/mauricevankruchten@gmail.com.gpg.key
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.

mwhipple commented 7 years ago

The relevant output in dmesg would likely start with vboxdrv, would be near the end, and would be repeated one time for each failed invocation.

It looks like you're hitting this: https://github.com/divx118/crouton-packages/issues/40 so integrating https://github.com/divx118/crouton-packages/pull/46 may help you past your immediate issue.

1na commented 7 years ago

Thanks I will try that and post the result here.

bumblebeers commented 7 years ago

The custom repos are failing to update:

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

I'm not familiar with the script, but I assume this is where the compiled .deb image and header files are coming from. You'll need to either find a copy of these files appropriate for your setup. Probably here: divx118/crouton-packages/tree/master/dists/3.8.11

Or probably better, compile from source. Instructions here: dnschneid/crouton/wiki/Build-kernel-headers-and-install-Virtualbox-(x86)