VirtualBox 資料一覧
rcvboxdrv setupコマンドがBad argument setupエラーになる場合の対応方法
2016/01/27更新
対応バージョン: 5.0.12
Linuxのカーネルをアップデートした後にVirtualBoxの仮想マシンを起動しようとすると以下のメッセージが出る。
Kernel driver not installed (rc=-1908) 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 '/sbin/rcvboxdrv 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. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
指示に従ってrcvboxdrv setupコマンドを実行するとエラーになる。
% sudo /sbin/rcvboxdrv setup Bad argument setup
これはrcvboxdrvスクリプトが以下のようになっているからなので、代わりにvboxdrv.sh setupを実行すればよい。
% more /sbin/rcvboxdrv : while test -n "${1}"; do case "${1}" in --nostart) START= ;; *) echo "Bad argument ${1}" >&2 exit 1 ;; esac shift done : % sudo /usr/lib/virtualbox/vboxdrv.sh setup Stopping VirtualBox kernel modules ...done. Uninstalling old VirtualBox DKMS kernel modules ...done. Trying to register the VirtualBox kernel modules using DKMS ...done. Starting VirtualBox kernel modules ...done.