Skip to content

Commit

Permalink
Add Parallels Tools support
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
  • Loading branch information
legal90 committed Jun 24, 2015
1 parent 7960f90 commit bc79caf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,18 @@ RUN mkdir -p /vmtoolsd/${LIBDNET} &&\
make &&\
make install && make DESTDIR=$ROOTFS install

# Download and build Parallels Tools
ENV PRL_TOOLS_URL = http://download.parallels.com/desktop/v10/10.2.1/ParallelsTools-10.2.1-29006-boot2docker.tar.gz

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
Expand Down
3 changes: 3 additions & 0 deletions rootfs/rootfs/bootscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ fi

# Launch vmware-tools
/etc/rc.d/vmtoolsd

# Load Parallels Tools daemon
/etc/rc.d/prltoolsd
3 changes: 3 additions & 0 deletions rootfs/rootfs/etc/rc.d/prltoolsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

/bin/sh /usr/local/etc/init.d/prltoolsd start

0 comments on commit bc79caf

Please sign in to comment.