Skip to content

Windows 11: WSL-2 Docker Fails: The vboxdrv kernel module is not loaded.  #1

@markddrake

Description

@markddrake
:\Docker\Build\YADAMU\Teradata\linux>docker build -t vbox --file=Dockerfile .
[+] Building 391.3s (8/8) FINISHED
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 479B                                                                               0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 2B                                                                                    0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                    2.4s
 => [1/4] FROM docker.io/library/ubuntu:20.04@sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f4  3.0s
 => => resolve docker.io/library/ubuntu:20.04@sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f4  0.0s
 => => sha256:08c01a0ec47e82ebe2bec112f373d160983a6d1e9e66627f66a3322bc403221b 28.56MB / 28.56MB                   1.4s
 => => sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f474be 1.42kB / 1.42kB                     0.0s
 => => sha256:7c9c7fed23def3653a0da5bc9ecb651efe155ebd5802c7ba5d585edaa6c89496 529B / 529B                         0.0s
 => => sha256:54c9d81cbb440897908abdcaa98674db83444636c300170cfd211e40a66f704f 1.46kB / 1.46kB                     0.0s
 => => extracting sha256:08c01a0ec47e82ebe2bec112f373d160983a6d1e9e66627f66a3322bc403221b                          1.2s
 => [2/4] RUN apt-get update && apt-get -y install wget gnupg2 software-properties-common && wget -q https://ww  153.4s
 => [3/4] RUN apt-get -y install virtualbox-6.1                                                                  223.2s
 => [4/4] WORKDIR /root                                                                                            0.0s
 => exporting to image                                                                                             9.0s
 => => exporting layers                                                                                            9.0s
 => => writing image sha256:8e1b27f77600359e83c48564639f05e84a45dac49d21bb975ade1c19540229c6                       0.0s
 => => naming to docker.io/library/vbox                                                                            0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them


C:\Docker\Build\YADAMU\Teradata\linux>docker run --name box -t vbox
WARNING: ither there is no module
         available for the current kernel (5.10.16.3-microsoft-standard-WSL2) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
Qt WARNING: could not connect to display
Qt FATAL: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted

Not sure if the vboxdrv kernel module is available for this distro, or how I would stage it ..

Any ideas ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions