1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ホストOSがLinuxのときにカーネルのバージョンを上げたらVirtualBoxの仮想環境立ち上げでエラーが出たので備忘録

Posted at

RyzenCPUが入ったLinuxでVirtualboxに仮想環境を起動したらエラーが出たので忘備録

前提

環境 Linux Mint Debian Edition 4 Ryzen3500U
インストール時にカーネルのバージョンを上げています

$ uname -a
Linux PC名 5.6.0-0.bpo.2-amd64 #1 SMP Debian 5.6.14-2~bpo10+1 (2020-06-09) x86_64 GNU/Linux

インポートしようとすると
こんな感じのエラーを吐いて怒られる
Virtualbox_errorVirtualbox_error1.png 1.png
Virtualbox_error2.png

終了コード : NS_ERROR_FAILURE (0x80004005)
コンポーネント: MachineWrap
インターフェース: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

解決方法

とりあえず

手順1
$ sudo /sbin/vboxconfig 
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-5.6.0-0.bpo.2-amd64
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-5.6.0-0.bpo.2-amd64

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may 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.

カーネルのヘッダファイルがないと怒られるてるのでヘッダをインストール

手順2
$ sudo apt install -y linux-headers-amd64 linux-headers-5.6.0-0.bpo.2-amd64

その後

手順3
$ sudo /sbin/vboxconfig 
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.

でめでたく起動
おしまい

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?