[英]ERROR: could not insert 'vboxguest'
I have a problem to run vboxguest on Arch linux, 我在Arch linux上运行vboxguest时遇到问题,
I retrieve this error when type modprobe -av vboxguest: 我在类型modprobe -av vboxguest时检索此错误:
[root@mic3ael mic3ael]# modprobe -av vboxguest
insmod /lib/modules/4.3.3-2-ARCH/extramodules/vboxguest.ko.gz
modprobe: ERROR: could not insert 'vboxguest': No such device
then I found that vguest exist on the system: 然后我发现系统上存在vguest:
[root@mic3ael mic3ael]# find /lib/modules/ -iname "vbox*"
/lib/modules/extramodules-4.3-ARCH/vboxnetflt.ko.gz
/lib/modules/extramodules-4.3-ARCH/vboxguest.ko.gz
/lib/modules/extramodules-4.3-ARCH/vboxpci.ko.gz
/lib/modules/extramodules-4.3-ARCH/vboxnetadp.ko.gz
/lib/modules/extramodules-4.3-ARCH/vboxsf.ko.gz
/lib/modules/extramodules-4.3-ARCH/vboxvideo.ko.gz
/lib/modules/extramodules-4.3-ARCH/vboxdrv.ko.gz
The question is how to run vboxguest on arch linux? 问题是如何在arch linux上运行vboxguest?
Thanks, Michael. 谢谢,迈克尔。
The Arch Linux Forum post: https://bbs.archlinux.org/viewtopic.php?pid=1613118#p1613118 quickly lead to an answer. Arch Linux论坛帖子: https : //bbs.archlinux.org/viewtopic.php?pid = 1613118#p1613118快速找到答案。 For me, Arch Linux is the host, so I should not have installed
virtualbox-guest-utils
which also installed virtualbox-guest-dkms
as a dependency. 对我来说,Arch Linux是主机,所以我不应该安装
virtualbox-guest-utils
,它也安装了virtualbox-guest-dkms
作为依赖项。
I removed both of those with sudo pacman -Rsn virtualbox-guest-utils
. 我用
sudo pacman -Rsn virtualbox-guest-utils
删除了这两个。
If Arch Linux is your host, you need to install virtualbox-guest-iso
in the host Arch Linux. 如果Arch Linux是您的主机,则需要在主机Arch Linux中安装
virtualbox-guest-iso
。 Inside the guest OS, it will show up as a CD (or manually point/mount the virtual CD to the host OS path /usr/lib/virtualbox/additions/VBoxGuestAdditions.iso) and you can install from there to get vboxguest working. 在客户操作系统内部,它将显示为CD(或手动将虚拟CD指向/挂载到主机操作系统路径/usr/lib/virtualbox/additions/VBoxGuestAdditions.iso),您可以从那里安装以使vboxguest正常工作。
If Arch Linux is your guest, then you apparently need to install virtualbox-guest-utils
inside your Arch Linux guest OS. 如果Arch Linux是您的访客,那么您显然需要在Arch Linux客户操作系统中安装
virtualbox-guest-utils
。
Whether host or guest, virtualbox with Arch Linux now also needs linux-headers
(or any of the following to match the type of kernel you are using: linux-lts-headers linux-zen-headers linux-grsec-headers). 无论是主机还是客户,带有Arch Linux的virtualbox现在还需要
linux-headers
(或者以下任何一种来匹配你正在使用的内核类型:linux-lts-headers linux-zen-headers linux-grsec-headers)。
Since the overall installation is kind of complicated, I refer you to the Arch Wiki. 由于整体安装有点复杂,我推荐您使用Arch Wiki。
Arch Linux Host: https://wiki.archlinux.org/index.php/VirtualBox#Installation_steps_for_Arch_Linux_hosts Arch Linux主机: https : //wiki.archlinux.org/index.php/VirtualBox#Installation_steps_for_Arch_Linux_hosts
Arch Linux Guest: https://wiki.archlinux.org/index.php/VirtualBox#Installation_steps_for_Arch_Linux_guests Arch Linux Guest: https : //wiki.archlinux.org/index.php/VirtualBox#Installation_steps_for_Arch_Linux_guests
我有同样的问题,我通过重新安装dkms模块修复它:
sudo dkms remove vboxhost/5.0.14
sudo dkms install vboxhost/5.0.14
I just had similar problem on Ubuntu (HOST) with VirtualBox running Debian (GUEST). 我在Ubuntu(HOST)上运行Debian(GUEST)时遇到了类似的问题。
The problem is strongly (and confusingly) related to other tasks and errors: 该问题与其他任务和错误密切相关(并且容易引起混淆):
VBoxGuestAdditions are present in many package repositories and can be installed by the package systems like apt or yum. VBoxGuestAdditions存在于许多软件包存储库中,可以通过apt或yum等软件包系统进行安装。
[...@ubuntu]# apt-get install virtualbox-guest-additions-iso
The installation from repo may NOT improved the resolution. repo的安装可能无法提高分辨率。
Manual run of VBoxGuestAddition's main script may lead to another error 手动运行VBoxGuestAddition的主脚本可能会导致另一个错误
[...@ubuntu]# /usr/share/virtualbox/VBoxLinuxAdditions.sh (modprobe vboxguest failed)
The same error then comes from VBoxGuestAdditions init script 同样的错误来自VBoxGuestAdditions init脚本
[...@ubuntu]# /etc/init.d/vboxadd setup (modprobe vboxguest failed)
Manual deploying of the kernel module into kernel gives another error 手动将内核模块部署到内核中会产生另一个错误
[...@ubuntu]# modprobe vboxguest modprobe: ERROR: could not insert 'vboxguest': No such device
The dmesg may contain error message dmesg可能包含错误消息
[...] vboxguest: PCI device not found, probably running on physical hardware.
All those errors have the same initial mistake: running GUEST apps on HOST .
所有这些错误都有同样的错误: 在HOST上运行GUEST应用程序 。 I think its the same case for your error, because arch linux is supported by the app - see part of the
/etc/init.d/vboxadd script:
我认为你的错误也是如此,因为应用程序支持arch linux - 请参阅/etc/init.d/vboxadd脚本的一部分:
if [ -f /etc/arch-release ]; then
system=arch
elif ...
if [ "$system" = "arch" ]; then
USECOLOR=yes
. /etc/rc.d/functions
fail_msg() {
stat_fail
}
succ_msg() {
stat_done
}
begin() {
stat_busy "$1"
}
fi
Be careful about which part of VBox runs on GUEST and which one on HOST: 注意VBox的哪个部分在GUEST上运行,哪个在HOST上运行:
Install VirtualBox on HOST (ubuntu in my case) as 在HOST上安装VirtualBox(在我的情况下是ubuntu)
[...@ubuntu]# apt-get install virtualbox
Install VBoxGuestAdditions et.al. 安装VBoxGuestAdditions等。 into GUEST (debian in my case)
进入GUEST(在我的案例中是debian)
a) add 'contrib' repository to your repository source list a)将'contrib'存储库添加到存储库源列表
b) install virtualbox guest-related apps into GUEST b)将虚拟机客户相关应用程序安装到GUEST中
[...@debian]# apt-get install virtualbox-guest-utils virtualbox-guest-x11
virtualbox-guest-dkms virtualbox-guest-additions-iso
The virtualization docs usually state that GUEST is independent on HOST and that
VBox runs on HOST .
虚拟化文档通常声明GUEST独立于HOST并且
VBox在HOST上运行 。 This:
这个:
Leads to misunderstanding that user never installs any part of VBox on GUEST 导致误解用户永远不会在GUEST上安装VBox的任何部分
Improves chances of user's mistake, because VBox GUI's menu 由于VBox GUI的菜单,提高了用户错误的可能性
Device -> Install Guest Additions CD 设备 - >安装Guest Additions CD
invokes feeling of software going to be installed on HOST. 调用将在HOST上安装的软件的感觉。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.