divx118 / crouton-packages

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

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)... #17

Closed kevglynn closed 9 years ago

kevglynn commented 9 years ago

@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/mauricevankruchten@gmail.com.gpg.key
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/mauricevankruchten@gmail.com.gpg.key [following]
--2015-06-21 02:34:53--  https://raw.githubusercontent.com/divx118/crouton-packages/master/mauricevankruchten@gmail.com.gpg.key
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
kevglynn commented 9 years ago

Now there's more. Virtualbox opened up and let me walk through the VM wizard until the final step, when I got a

When I tried to create (final step of wizard):

Failed to create a new virtual machine Fix the phone windows.

Runtime error opening '/home/kevglynn/.VirtualBox/VirtualBox.xml-tmp' for reading: -38 (Access denied.).

/build/buildd/virtualbox-4.1.12-dfsg/src/VBox/Main/src-server/VirtualBoxImpl.cpp[3398] (nsresult VirtualBox::saveSettings()).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: VirtualBox
Interface: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}

When I tried to go back and then forward again from the initial screen

Cannot create the machine folder Fix the phone windows in the parent folder /home/kevglynn/VirtualBox VMs.

Please check that the parent really exists and that you have permissions to create the machine folder.

When I tried to open the VM that had been "created"

Failed to open virtual machine located in /home/kevglynn/VirtualBox VMs/Fix the phone windows/Fix the phone windows.vbox.

Trying to open a VM config '/home/kevglynn/VirtualBox VMs/Fix the phone windows/Fix the phone windows.vbox' which has the same UUID as an existing virtual machine.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}
Callee: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}

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

divx118 commented 9 years ago

You need to run sudo sh setup-headers.sh in a shell in the chroot, not in chromeos.

kevglynn commented 9 years ago

Ahh, yes! Thanks!