Closed upronner closed 9 years ago
Thanks for reporting.
Just to be sure you didn't install any kernel headers from the official ubuntu repo? If yes remove it and try again.
When you run /etc/init.d/vboxdrv setup
on the command line what error message do you get?
Can you post dmesg
output and uname -a
To my knowledge I have not installed kernel headers from the repos.
(trusty)upronner@localhost:~$ uname -a Linux localhost 3.10.18 #1 SMP Wed Dec 10 16:35:07 PST 2014 x86_64 x86_64 x86_64 GNU/Linux (trusty)upronner@localhost:~$
(trusty)upronner@localhost:~$ dmesg
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.10.18 (chrome-bot@build62-m2) (gcc version 4.8.x-google 20140307 (prerelease) (4.8.2_cos_gg_2aa8199_4.8.2-r77) ) #1 SMP Wed Dec 10 16:35:07 PST 2014
[ 0.000000] Command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=6903636d-7f60-b74e-b134-91b73b878c6c/PARTNROFF=1 hashtree=PARTUUID=6903636d-7f60-b74e-b134-91b73b878c6c/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=52c63d324d32999a67fb93f45e64f12e1f4e09c3 salt=6cf7ec879079ecdcdf564f8127578809b14315714826e5c83656c3f1ee1ce780" noinitrd vt.global_cursor_default=0 kern_guid=6903636d-7f60-b74e-b134-91b73b878c6c add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] type 16
[ 0.000000] BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000020000000-0x00000000200fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000020100000-0x000000007ae6dfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000007ae6e000-0x000000007affffff] type 16
[ 0.000000] BIOS-e820: [mem 0x000000007b000000-0x000000007fffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feb00000-0x00000000febfffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed01000-0x00000000fed01fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed03000-0x00000000fed03fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed05000-0x00000000fed05fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed08000-0x00000000fed08fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed0c000-0x00000000fed0ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1cfff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fef00000-0x00000000feffffff] reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.7 present.
[ 0.000000] DMI: GOOGLE Gnawty, BIOS Google_Gnawty.5216.239.3 08/18/2014
[ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000000] No AGP bridge found
[ 0.000000] e820: last_pfn = 0x7ae6e max_arch_pfn = 0x400000000
[ 0.000000] MTRR default type: uncachable
[ 0.000000] MTRR fixed ranges enabled:
[ 0.000000] 00000-9FFFF write-back
[ 0.000000] A0000-BFFFF uncachable
[ 0.000000] C0000-FFFFF write-back
[ 0.000000] MTRR variable ranges enabled:
[ 0.000000] 0 base 000000000 mask FC0000000 write-back
[ 0.000000] 1 base 040000000 mask FE0000000 write-back
[ 0.000000] 2 base 060000000 mask FF0000000 write-back
[ 0.000000] 3 base 070000000 mask FF8000000 write-back
[ 0.000000] 4 base 078000000 mask FFC000000 write-back
[ 0.000000] 5 base 07B800000 mask FFF800000 uncachable
[ 0.000000] 6 base 0FF800000 mask FFF800000 uncachable
[ 0.000000] 7 disabled
[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] Base memory trampoline at [ffff880000099000] 99000 size 24576
[ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[ 0.000000] [mem 0x00000000-0x000fffff] page 4k
[ 0.000000] BRK [0x3beb0000, 0x3beb0fff] PGTABLE
[ 0.000000] BRK [0x3beb1000, 0x3beb1fff] PGTABLE
[ 0.000000] BRK [0x3beb2000, 0x3beb2fff] PGTABLE
[ 0.000000] init_memory_mapping: [mem 0x7ac00000-0x7adfffff]
[ 0.000000] [mem 0x7ac00000-0x7adfffff] page 2M
[ 0.000000] BRK [0x3beb3000, 0x3beb3fff] PGTABLE
[ 0.000000] init_memory_mapping: [mem 0x78000000-0x7abfffff]
[ 0.000000] [mem 0x78000000-0x7abfffff] page 2M
[ 0.000000] init_memory_mapping: [mem 0x00100000-0x1fffffff]
[ 0.000000] [mem 0x00100000-0x001fffff] page 4k
[ 0.000000] [mem 0x00200000-0x1fffffff] page 2M
[ 0.000000] init_memory_mapping: [mem 0x20100000-0x77ffffff]
[ 0.000000] [mem 0x20100000-0x201fffff] page 4k
[ 0.000000] [mem 0x20200000-0x77ffffff] page 2M
[ 0.000000] init_memory_mapping: [mem 0x7ae00000-0x7ae6dfff]
[ 0.000000] [mem 0x7ae00000-0x7ae6dfff] page 4k
[ 0.000000] BRK [0x3beb4000, 0x3beb4fff] PGTABLE
[ 0.000000] ACPI: RSDP 00000000000f0000 00024 (v02 CORE )
[ 0.000000] ACPI: XSDT 000000007af780e0 0004C (v01 CORE COREBOOT 00000000 CORE 00000000)
[ 0.000000] ACPI: FACP 000000007af7c540 000F4 (v03 CORE COREBOOT 00000000 CORE 00000001)
[ 0.000000] ACPI: DSDT 000000007af78250 042EA (v05 COREv4 COREBOOT 20110725 INTL 20130117)
[ 0.000000] ACPI: FACS 000000007af78210 00040
[ 0.000000] ACPI: HPET 000000007af7c640 00038 (v01 CORE COREBOOT 00000000 CORE 00000000)
[ 0.000000] ACPI: APIC 000000007af7c680 0005C (v01 CORE COREBOOT 00000000 CORE 00000000)
[ 0.000000] ACPI: MCFG 000000007af7c6e0 0003C (v01 CORE COREBOOT 00000000 CORE 00000000)
[ 0.000000] ACPI: SSDT 000000007af7d7d0 00810 (v02 CORE COREBOOT 0000002A CORE 0000002A)
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] [ffffea0000000000-ffffea0001ffffff] PMD -> [ffff880078400000-ffff88007a3fffff] on node 0
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00001000-0x00ffffff]
[ 0.000000] DMA32 [mem 0x01000000-0xffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00001000-0x0009ffff]
[ 0.000000] node 0: [mem 0x00100000-0x1fffffff]
[ 0.000000] node 0: [mem 0x20100000-0x7ae6dfff]
[ 0.000000] On node 0 totalpages: 503053
[ 0.000000] DMA zone: 64 pages used for memmap
[ 0.000000] DMA zone: 22 pages reserved
[ 0.000000] DMA zone: 3999 pages, LIFO batch:0
[ 0.000000] DMA32 zone: 7802 pages used for memmap
[ 0.000000] DMA32 zone: 499054 pages, LIFO batch:31
[ 0.000000] ACPI: PM-Timer IO Port: 0x408
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
[ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[ 0.000000] IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-86
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: IRQ0 used by override.
[ 0.000000] ACPI: IRQ2 used by override.
[ 0.000000] ACPI: IRQ9 used by override.
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs
[ 0.000000] nr_irqs_gsi: 103
[ 0.000000] e820: [mem 0x80000000-0xdfffffff] available for PCI devices
[ 0.000000] setup_percpu: NR_CPUS:4 nr_cpumask_bits:4 nr_cpu_ids:2 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 27 pages/cpu @ffff88007aa00000 s80192 r8192 d22208 u1048576
[ 0.000000] pcpu-alloc: s80192 r8192 d22208 u1048576 alloc=1*2097152
[ 0.000000] pcpu-alloc: [0] 0 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 495165
[ 0.000000] Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=6903636d-7f60-b74e-b134-91b73b878c6c/PARTNROFF=1 hashtree=PARTUUID=6903636d-7f60-b74e-b134-91b73b878c6c/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=52c63d324d32999a67fb93f45e64f12e1f4e09c3 salt=6cf7ec879079ecdcdf564f8127578809b14315714826e5c83656c3f1ee1ce780" noinitrd vt.global_cursor_default=0 kern_guid=6903636d-7f60-b74e-b134-91b73b878c6c add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic
[ 0.000000] device-mapper: init: will configure 1 devices
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Disabling VMX on cpu 0
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Memory: 1964956k/2013624k available (5247k kernel code, 1412k absent, 47256k reserved, 3652k data, 1064k init)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] CONFIG_RCU_FANOUT set to non-default value of 32
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] NR_IRQS:4352 nr_irqs:512 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] hpet clockevent registered
[ 0.000000] Initial TSC value: 12366985306
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] Initial usec timer 5709596
[ 0.000000] tsc: Detected 2166.754 MHz processor
[ 0.000004] Calibrating delay loop (skipped), value calculated using timer frequency.. 4333.50 BogoMIPS (lpj=2166754)
[ 0.000009] pid_max: default: 32768 minimum: 301
[ 0.000049] Security Framework initialized
[ 0.000055] Yama: becoming mindful.
[ 0.000076] Mount-cache hash table entries: 256
[ 0.000344] Initializing cgroup subsys freezer
[ 0.000367] CPU: Physical Processor ID: 0
[ 0.000370] CPU: Processor Core ID: 0
[ 0.000375] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[ 0.000375] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
[ 0.005128] mce: CPU supports 6 MCE banks
[ 0.005138] CPU0: Thermal monitoring enabled (TM1)
[ 0.005147] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.005147] Last level dTLB entries: 4KB 128, 2MB 0, 4MB 0
[ 0.005147] tlb_flushall_shift: 6
[ 0.005259] Freeing SMP alternatives: 12k freed
[ 0.005268] ACPI: Core revision 20130328
[ 0.009776] ACPI: All ACPI Tables successfully acquired
[ 0.009788] acpi_enable!
[ 0.011430] ACPI mode enable smi_command = 0xb2 val = 0xe1
[ 0.011439] ftrace: allocating 23987 entries in 94 pages
[ 0.024301] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.034317] smpboot: CPU0: Intel(R) Celeron(R) CPU N2830 @ 2.16GHz (fam: 06, model: 37, stepping: 08)
[ 0.034331] TSC deadline timer enabled
[ 0.034346] Performance Events: no PEBS fmt2+, 8-deep LBR, Silvermont events, Intel PMU driver.
[ 0.034357] ... version: 3
[ 0.034360] ... bit width: 40
[ 0.034362] ... generic registers: 2
[ 0.034365] ... value mask: 000000ffffffffff
[ 0.034367] ... max period: 000000007fffffff
[ 0.034369] ... fixed-purpose events: 3
[ 0.034371] ... event mask: 0000000700000003
[ 0.035932] smpboot: Booting Node 0, Processors #1 OK
[ 0.046049] Disabling VMX on cpu 1
[ 0.053860] Brought up 2 CPUs
[ 0.053867] smpboot: Total of 2 processors activated (8667.01 BogoMIPS)
[ 0.053964] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
[ 0.054452] devtmpfs: initialized
[ 0.056993] pinctrl core: initialized pinctrl subsystem
[ 0.057065] RTC time: 19:11:58, date: 12/20/14
[ 0.057132] NET: Registered protocol family 16
[ 0.057880] Switching to clocksource hpet
[ 0.057899] ACPI: bus type PCI registered
[ 0.057990] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff](base 0xe0000000)
[ 0.057996] PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in E820
[ 0.071792] PCI: Using configuration type 1 for base access
[ 0.074341] bio: create slab
(trusty)upronner@localhost:~$ /etc/init.d/vboxdrv setup bash: /etc/init.d/vboxdrv: No such file or directory (trusty)upronner@localhost:~$
(trusty)upronner@localhost:~$ cd /etc/init.d/ (trusty)upronner@localhost:/etc/init.d$ ls avahi-daemon halt procps resolvconf smbd virtualbox binfmt-support killprocs pulseaudio rsyslog sudo winbind console-setup kmod rc samba udev x11-common cron lm-sensors rc.local samba-ad-dc umountfs cups networking rcS sendsigs umountnfs.sh cups-browsed nmbd README single umountroot dbus ondemand reboot skeleton urandom (trusty)upronner@localhost:/etc/init.d$
Ah you have installed virtualbox from the ubuntu repo. They don't provide /etc/init.d/vboxdrv
.
Do the following to recompile the drivers and give me the output.
$ sudo apt-get remove virtualbox-dkms
then
$ sudo apt-get install virtualbox-dkms
(trusty)upronner@localhost:~$ sudo apt-get remove virtualbox-dkms
[sudo] password for upronner:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
virtualbox-dkms
0 upgraded, 0 newly installed, 1 to remove and 12 not upgraded.
After this operation, 4,321 kB disk space will be freed.
Do you want to continue? [Y/n](Reading database ... 67582 files and directories currently installed.)
Removing virtualbox-dkms (4.3.10-dfsg-1) ...
-------- Uninstall Beginning -------- Module: virtualbox Version: 4.3.10
Status: Before uninstall, this module version was ACTIVE on this kernel.
vboxdrv.ko:
vboxnetadp.ko:
vboxnetflt.ko:
vboxpci.ko:
depmod....
DKMS: uninstall completed.
Deleting module version: 4.3.10
Done.
(trusty)upronner@localhost:~$ sudo apt-get install virtualbox-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
virtualbox-dkms
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 0 B/538 kB of archives.
After this operation, 4,321 kB of additional disk space will be used.
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 67310 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_4.3.10-dfsg-1_all.deb ...
Unpacking virtualbox-dkms (4.3.10-dfsg-1) ...
Setting up virtualbox-dkms (4.3.10-dfsg-1) ...
Loading new virtualbox-4.3.10 DKMS files...
First Installation: checking all kernels...
Building only for 3.10.18
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
runlevel:/var/run/utmp: No such file or directory
Oh it seems the kernel source isn't installed. Can you run the install script again with the following command and post the output. Notice the extra -x for some more output.
$ sudo sh -x setup-headers.sh
(trusty)upronner@localhost:~$ sudo sh -x setup-headers.sh [sudo] password for upronner:
and install the kernel headers appropriate to your kernel version and architecture.
100%[======================================>] 1,756 --.-K/s in 0s
2014-12-20 22:23:38 (12.1 MB/s) - written to stdout [1756/1756]
OK
100%[======================================>] 495 --.-K/s in 0s
2014-12-20 22:23:40 (5.53 MB/s) - ‘./tmp_dist’ saved [495/495]
E: Some index files failed to download. They have been ignored, or old ones used instead.
100%[======================================>] 1,136 --.-K/s in 0s
2014-12-20 22:24:21 (15.7 MB/s) - ‘/etc/rc.local’ saved [1136/1136]
Ok, apt-get update wants also to see i386 packages on the repo. So it fails for now, because they are not there. I see that I add them soon. What you can do for now is manually install the headers: Note: umount /lib/modules/3.10.18 should say that it is not mounted. It should already get unmounted in /etc/rc.local. Also after the last command log out of the chroot and log back in to let the modules load by /etc/rc.local script.
$ sudo umount /lib/modules/3.10.18
$ cd ~
$ wget https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb
$ wget https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-image-3.10.18_20140831_amd64.deb
$ sudo dpkg -i linux-headers-3.10.18_20140831_amd64.deb
$ sudo dpkg -i linux-image-3.10.18_20140831_amd64.deb
$ sudo apt-get remove virtualbox-dkms
$ sudo apt-get install virtualbox-dkms
Let me know if it works.
When I began to to install the linux image it said it was already in place and asked me if I wanted to abort installation. I decided to err on the side of safety since a ruined kernel might give me a brick. I got the same results as last time.
Was there a risk? Should I have carried out the installation?
(trusty)upronner@localhost:~$ sudo umount /lib/modules/3.10.18 [sudo] password for upronner: umount: /lib/modules/3.10.18: not mounted (trusty)upronner@localhost:~$ cd ~ (trusty)upronner@localhost:~$ wget https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb --2014-12-22 17:17:28-- https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb Resolving github.com (github.com)... failed: Name or service not known. wget: unable to resolve host address ‘github.com’ (trusty)upronner@localhost:~$ wget https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb --2014-12-22 17:17:54-- https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb Resolving github.com (github.com)... failed: Name or service not known. wget: unable to resolve host address ‘github.com’ (trusty)upronner@localhost:~$ wget https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb --2014-12-22 17:18:50-- https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb Resolving github.com (github.com)... 192.30.252.130 Connecting to github.com (github.com)|192.30.252.130|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/divx118/crouton-packages/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb [following] --2014-12-22 17:18:50-- https://raw.githubusercontent.com/divx118/crouton-packages/master/pool/main/l/linux-source-3.10.18/linux-headers-3.10.18_20140831_amd64.deb Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 23.235.44.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.44.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6213728 (5.9M) [application/octet-stream] Saving to: ‘linux-headers-3.10.18_20140831_amd64.deb’
100%[======================================>] 6,213,728 1.55MB/s in 5.5s
2014-12-22 17:18:57 (1.07 MB/s) - ‘linux-headers-3.10.18_20140831_amd64.deb’ saved [6213728/6213728]
(trusty)upronner@localhost:~$ wget https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-image-3.10.18_20140831_amd64.deb --2014-12-22 17:19:18-- https://github.com/divx118/crouton-packages/raw/master/pool/main/l/linux-source-3.10.18/linux-image-3.10.18_20140831_amd64.deb Resolving github.com (github.com)... 192.30.252.129 Connecting to github.com (github.com)|192.30.252.129|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://raw.githubusercontent.com/divx118/crouton-packages/master/pool/main/l/linux-source-3.10.18/linux-image-3.10.18_20140831_amd64.deb [following] --2014-12-22 17:19:18-- https://raw.githubusercontent.com/divx118/crouton-packages/master/pool/main/l/linux-source-3.10.18/linux-image-3.10.18_20140831_amd64.deb Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 23.235.44.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|23.235.44.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6918166 (6.6M) [application/octet-stream] Saving to: ‘linux-image-3.10.18_20140831_amd64.deb’
100%[======================================>] 6,918,166 1.15MB/s in 5.5s
2014-12-22 17:19:25 (1.20 MB/s) - ‘linux-image-3.10.18_20140831_amd64.deb’ saved [6918166/6918166]
(trusty)upronner@localhost:~$ sudo dpkg -i linux-headers-3.10.18_20140831_amd64.deb
(Reading database ... 67582 files and directories currently installed.)
Preparing to unpack linux-headers-3.10.18_20140831_amd64.deb ...
Unpacking linux-headers-3.10.18 (20140831) over (20140831) ...
Setting up linux-headers-3.10.18 (20140831) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.10.18 /boot/vmlinuz-3.10.18
(trusty)upronner@localhost:~$ sudo dpkg -i linux-image-3.10.18_20140831_amd64.deb
(Reading database ... 67582 files and directories currently installed.)
Preparing to unpack linux-image-3.10.18_20140831_amd64.deb ...
Ok, aborting, since modules for this image already exist.
dpkg: error processing archive linux-image-3.10.18_20140831_amd64.deb (--install):
subprocess new pre-installation script returned error exit status 1
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.10.18 /boot/vmlinuz-3.10.18
Errors were encountered while processing:
linux-image-3.10.18_20140831_amd64.deb
(trusty)upronner@localhost:~$ sudo apt-get remove virtualbox-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
virtualbox-dkms
0 upgraded, 0 newly installed, 1 to remove and 12 not upgraded.
After this operation, 4,321 kB disk space will be freed.
Do you want to continue? [Y/n](Reading database ... 67582 files and directories currently installed.)
Removing virtualbox-dkms (4.3.10-dfsg-1) ...
-------- Uninstall Beginning -------- Module: virtualbox Version: 4.3.10
Status: Before uninstall, this module version was ACTIVE on this kernel.
vboxdrv.ko:
vboxnetadp.ko:
vboxnetflt.ko:
vboxpci.ko:
depmod....
DKMS: uninstall completed.
Deleting module version: 4.3.10
Done.
(trusty)upronner@localhost:~$ sudo apt-get install virtualbox-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
virtualbox-dkms
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
Need to get 0 B/538 kB of archives.
After this operation, 4,321 kB of additional disk space will be used.
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 67310 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_4.3.10-dfsg-1_all.deb ...
Unpacking virtualbox-dkms (4.3.10-dfsg-1) ...
Setting up virtualbox-dkms (4.3.10-dfsg-1) ...
Loading new virtualbox-4.3.10 DKMS files...
First Installation: checking all kernels...
Building only for 3.10.18
Building initial module for 3.10.18
Done.
vboxdrv: Running module version sanity check.
vboxnetadp.ko: Running module version sanity check.
vboxnetflt.ko: Running module version sanity check.
vboxpci.ko: Running module version sanity check.
depmod....
DKMS: install completed. runlevel:/var/run/utmp: No such file or directory
You can just go through with the installation. Remember you are in a chroot, you do not use the kernel from the chroot, but from your host (chrome os). So no problem installing it, just ignore the warning you won't get a brick. Then do the part of virtualbox-dkms again to build the modules.
I ran the commands and my mouse and keyboard acted up on my next login. I plugged in a usb mouse to log out. I started the chroot again and virtualbox was working. I used the official windowsXP image from microsoft and disabled vt-x.
Thanks for being helpful. Will these fixes be added to the script in the event I need to rebuild my chroot?
Yep, well not exactly this it was more of a workaround. I only need to add i386 packages so apt-get doesn't barf while adding the repo. If the i386 packages are added you will have no problem with the script. When that is done I will close this issue, so you will be notified. Hopefully I have some time during the upcoming holidays.
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)