2016-07-16 46 views
0

我在Ubuntu主機計算機和Windows 7上使用虛擬機作爲來賓操作系統。我能夠在很多次之前運行Windows,但最近在我的Ubuntu Box上安裝更新之後,它顯示錯誤。下面是無錯誤 enter image description here由於未安裝內核驅動程序,無法啓動虛擬機上的客戶機操作系統

下面的截圖中,我試圖運行在終端sudo /sbin/rcvboxdrv setup的錯誤 -

The virtual machine 'Windows' has terminated unexpectedly during startup with exit code 1 (0x1). 


Result Code: 
NS_ERROR_FAILURE (0x80004005) 
Component: 
MachineWrap 
Interface: 
IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd} 

按照建議的細節,但它具有以下MESSAGE-

失敗
[email protected]:~$ sudo /sbin/rcvboxdrv 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) 

dmesg命令表示以下資料

[email protected]:~$ dmesg|tail 
[11128.973745] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment 
[11130.401285] dell_laptop: Keyboard brightness level control not supported 
[11195.330664] audit_printk_skb: 153 callbacks suppressed 
[11195.330671] audit: type=1400 audit(1468644989.132:62): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=6051 comm="apparmor_parser" 
[11195.330689] audit: type=1400 audit(1468644989.132:63): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=6051 comm="apparmor_parser" 
[11195.331654] audit: type=1400 audit(1468644989.132:64): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=6051 comm="apparmor_parser" 
[11854.988254] systemd-hostnamed[6528]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname! 
[16286.725959] capability: warning: `VirtualBox' uses 32-bit capabilities (legacy support in use) 
[16893.539293] systemd-hostnamed[9073]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname! 
[17477.423820] systemd-hostnamed[11935]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname! 

虛擬框日誌/var/log/vbox-install.log顯示Kernel configuration is invalid。請在日誌文件中看到以下錯誤 -

test -e include/generated/autoconf.h -a -e include/config/auto.conf || (  \ 
    echo >&2;       \ 
    echo >&2 " ERROR: Kernel configuration is invalid.";  \ 
    echo >&2 "   include/generated/autoconf.h or include/config/auto.conf are missing.";\ 
    echo >&2 "   Run 'make oldconfig && make prepare' on kernel src to fix it."; \ 
    echo >&2 ;       \ 
    /bin/false) 
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/* 

我試過sudo make oldconfig && make prepare但它也失敗了。下面是錯誤MESSAGE-

[email protected]:/usr/src$ uname -a 
Linux Dell 4.2.0-42-generiC#49~14.04.1-Ubuntu SMP Wed Jun 29 20:22:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux 

[email protected]:/usr/src/linux-headers-4.2.0-42-generic$ sudo make oldconfig && make prepare 
[sudo] password for ravi: 
    HOSTCC scripts/basic/fixdep 
    HOSTCC scripts/basic/bin2c 
    HOSTCC scripts/kconfig/conf.o 
    HOSTCC scripts/kconfig/zconf.tab.o 
    HOSTLD scripts/kconfig/conf 
scripts/kconfig/conf --oldconfig Kconfig 
# 
# configuration written to .config 
# 
arch/x86/Makefile:138: CONFIG_X86_X32 enabled but no binutils support 
Makefile:662: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler 
scripts/kconfig/conf --silentoldconfig Kconfig 

*** Error during update of the configuration. 

make[2]: *** [silentoldconfig] Error 1 
make[1]: *** [silentoldconfig] Error 2 
make[1]: *** No rule to make target `arch/x86/entry/syscalls/syscall_32.tbl', needed by `arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Stop. 
make: *** [archheaders] Error 2 

下面是其他的信息 -

VirtualBox Graphical User Interface 
Version 5.0.24 r108355 
Copyright © 2016 Oracle Corporation and/or its affiliates. All rights reserved. 
+0

我認爲這是一個編程問題。 –

+0

@CharlieFish:LOL ...我在SO和Google上搜索過,但找不到任何適合我的解決方案。這就是爲什麼,我把這個問題的所有信息都說清楚了。 –

+0

僅僅因爲你搜索並放置了所有的信息並不意味着它應該繼續堆棧溢出。這不是一個編程問題。堆棧溢出是針對編程問題。 –

回答

1

如果您最近安裝了新的內核版本,嘗試較早的企業之一。 Kernel vmlinuz-4.2.0-42-generic不適用於我,但是vmlinuz-4.2.0-41-generic的作品。顯然,vmlinuz-4.2.0-42-generic沒有vboxdrv版本。我正在使用VirtualBox 5.1。

+0

非常感謝。我在BIOS設置中禁用了安全啓動選項。請參閱[這裏](http://askubuntu.com/a/762255/569883)。 –

相關問題