From 06cb0b6f06e770df3a717859db2f622c2dcf2622 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Wed, 3 Jun 2015 12:36:56 +0300 Subject: [PATCH] Added Parallels Tools support --- Dockerfile | 13 +++++++++++++ rootfs/rootfs/bootscript.sh | 3 +++ rootfs/rootfs/etc/rc.d/prltoolsd | 3 +++ 3 files changed, 19 insertions(+) create mode 100644 rootfs/rootfs/etc/rc.d/prltoolsd diff --git a/Dockerfile b/Dockerfile index 679c92191..4f42d4777 100644 --- a/Dockerfile +++ b/Dockerfile @@ -211,6 +211,19 @@ RUN mkdir -p /vmtoolsd/${LIBDNET} &&\ make &&\ make install && make DESTDIR=$ROOTFS install +# Build Parallels Tools +ENV PRL_TOOLS_URL = http://download.parallels.com/desktop/v10/10.2.1/ParallelsTools-10.2.1-29006-boot2docker.tar.gz + +# Download and prepare Parallels Tools +RUN mkdir -p /prl_tools && curl -L $PRL_TOOLS_URL | tar -xzC /prl_tools --strip-components 1 &&\ + cd /prl_tools &&\ + cp -Rv tools/* $ROOTFS &&\ + \ + KERNEL_DIR=/linux-kernel/ KVER=$KERNEL_VERSION SRC=/linux-kernel/ PRL_FREEZE_SKIP=1 \ + make -C kmods/ -f Makefile.kmods installme &&\ + \ + find kmods/ -name \*.ko -exec cp {} $ROOTFS/lib/modules/$KERNEL_VERSION-boot2docker/extra/ \; + # Horrible hack again RUN cd $ROOTFS && cd usr/local/lib && ln -s libdnet.1 libdumbnet.so.1 &&\ cd $ROOTFS && ln -s lib lib64 diff --git a/rootfs/rootfs/bootscript.sh b/rootfs/rootfs/bootscript.sh index ec67f345c..88445a5bf 100755 --- a/rootfs/rootfs/bootscript.sh +++ b/rootfs/rootfs/bootscript.sh @@ -88,3 +88,6 @@ fi # Launch vmware-tools /etc/rc.d/vmtoolsd + +# Load Parallels Tools daemon +/etc/rc.d/prltoolsd diff --git a/rootfs/rootfs/etc/rc.d/prltoolsd b/rootfs/rootfs/etc/rc.d/prltoolsd new file mode 100644 index 000000000..654797d6e --- /dev/null +++ b/rootfs/rootfs/etc/rc.d/prltoolsd @@ -0,0 +1,3 @@ +#!/bin/sh + +/bin/sh /usr/local/etc/init.d/prltoolsd start