ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
linux:virtualbox

tips

仮想マシンを起動しようとしても黒い画面のまま進まない(未解決)

virt-manager で仮想マシン起動時に起こる.virt-manager のマシンを終了すると動作する.

USBデバイスが表示されない

ホストのUSBデバイスを割り当てようとしてもUSBデバイスが表示されない.

VirtualBoxを実行するユーザに vboxusers グループが必要なので登録する.

$ sudo adduser ${USER} vboxusers

登録後,一旦ログアウトしてログインし直して反映する.

付属のUserManualより

2.4.2 The vboxuser Group
The installer creates the system user group vboxuser during installation for Oracle Solaris hosts
that support the USB features required by Oracle VM VirtualBox. Any system user who is going
to use USB devices from Oracle VM VirtualBox guests must be a member of this group. A user
can be made a member of this group either by using the desktop user and group tools or by
running the following command as root:
usermod -G vboxuser username
Note that adding an active user to the vboxuser group will require the user to log out and
then log in again. This should be done manually after successful installation of the package.
Add every user who needs to access USB devices from a VirtualBox guests to the group
vboxusers. Either use the OS user management tools or run the following command as root:
sudo usermod -a -G vboxusers username

Debian sid amd64 virtualbox 6.1.34-dfsg-2 で確認

Kernel driver not installed (rc=-1908)

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 

モジュールを読み込む

$ sudo modprobe -v vboxdrv
insmod /lib/modules/5.17.0-1-amd64/updates/dkms/vboxdrv.ko

永続化

$ echo vboxdrv | sudo tee -a /etc/modules-load.d/vbox.conf

コメント

コメントを入力. Wiki文法が有効です:
   __  ___   ____   ___   _____   __ 
  /  |/  /  / __/  / _ \ / ___/  / / 
 / /|_/ /  / _/   / , _// /__   / /__
/_/  /_/  /___/  /_/|_| \___/  /____/
 
linux/virtualbox.txt · 最終更新: 2022/05/05 06:37 by matoken