Skip to content

Commit

Permalink
VBox guest additions. Refs boot2docker#282
Browse files Browse the repository at this point in the history
  • Loading branch information
steeve authored and nsfmc committed Mar 28, 2014
1 parent 991835a commit 956e8f0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ RUN apt-get -y install squashfs-tools \
xorriso \
syslinux \
automake \
pkg-config
pkg-config \
p7zip-full

# Make the ROOTFS
RUN mkdir -p $ROOTFS
Expand Down Expand Up @@ -84,6 +85,21 @@ RUN cd /linux-kernel && \
DESTDIR=$ROOTFS make install && \
rm -rf /tmp/kheaders

# Build VBox guest additions
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/4.3.8/VBoxGuestAdditions_4.3.8.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
sh VBoxLinuxAdditions.run --noexec --target . && \
mkdir x86 && cd x86 && tar xvjf ../VBoxGuestAdditions-x86.tar.bz2 && cd .. && \
mkdir amd64 && cd amd64 && tar xvjf ../VBoxGuestAdditions-amd64.tar.bz2 && cd .. && \
cd amd64/src/vboxguest-4.3.8 && KERN_DIR=/linux-kernel/ make && cd ../../.. && \
cp amd64/src/vboxguest-4.3.8/*.ko $ROOTFS/lib/modules/$KERNEL_VERSION-tinycore64 && \
mkdir -p $ROOTFS/sbin && cp x86/lib/VBoxGuestAdditions/mount.vboxsf $ROOTFS/sbin/

# Make sure that all the modules we might have added are recognized
RUN depmod -a -b $ROOTFS $KERNEL_VERSION-tinycore64

# Download the rootfs, don't unpack it though:
RUN curl -L -o /tcl_rootfs.gz $TCL_REPO_BASE/release/distribution_files/rootfs.gz

Expand Down

0 comments on commit 956e8f0

Please sign in to comment.