mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
add instructions to virtualbox
Signed-off-by: Jessica Frazelle <princess@docker.com>
This commit is contained in:
parent
c510726bc1
commit
05e1c6cdc6
|
@ -1,9 +1,38 @@
|
||||||
# Run virtualbox in a container
|
# Run virtualbox in a container
|
||||||
#
|
#
|
||||||
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
# docker run -d \
|
||||||
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
# -e DISPLAY=unix$DISPLAY \
|
# -e DISPLAY=unix$DISPLAY \
|
||||||
|
# --privileged \
|
||||||
|
# --name virtualbox \
|
||||||
# jess/virtualbox
|
# jess/virtualbox
|
||||||
#
|
#
|
||||||
|
# On first run it will throw an error that you need to
|
||||||
|
# recompile the kernel module with: /etc/init.d/vboxdrv setup
|
||||||
|
#
|
||||||
|
# Here is how you get it to work:
|
||||||
|
# copy the files you need for the module from the container that
|
||||||
|
# is currently running to your host
|
||||||
|
#
|
||||||
|
# first the script:
|
||||||
|
# docker cp virtualbox:/etc/init.d/vboxdrv .
|
||||||
|
#
|
||||||
|
# then the src:
|
||||||
|
# docker cp virtualbox:/usr/src/vboxhost-4.3.28 /usr/src/
|
||||||
|
#
|
||||||
|
# then the share
|
||||||
|
# cp virtualbox:/usr/share/virtualbox /usr/share
|
||||||
|
#
|
||||||
|
# then run the script:
|
||||||
|
# ./vboxdrv setup
|
||||||
|
#
|
||||||
|
# it will recompile the module, you can then see it in lsmod
|
||||||
|
#
|
||||||
|
# then you can remove all the shit you copied
|
||||||
|
# rm -rf /usr/src/vboxhost*
|
||||||
|
# rm -rf /usr/share/virtualbox
|
||||||
|
# rm vboxdrv
|
||||||
|
#
|
||||||
FROM debian:jessie
|
FROM debian:jessie
|
||||||
MAINTAINER Jessie Frazelle <jess@linux.com>
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user