docker-machine-parallels
docker-machine-parallels copied to clipboard
Feature: Automate tools install
I'm using docker-machine alongside RancherOS instead of boot2docker and everything works great except I'm missing the guest tools. I would expect this plugin to automate that install.
I understand that each distro is going to be particular. I'd be happy with a way to specify my own provisioner.
This it would be interesting to have a install script that try to install prl tools on different OS'es. There is only a few that are interesting, RancherOS, CoreOS, RHEL/CentOS/Fedora Atomic host, etc.
Do you just do:
docker-machine create prl -driver parallels -parallels-boot2docker-url https://releases.rancher.com/os/latest/rancheros.iso
Here's the script I'm using to start VMs:
#!/bin/bash
MACHINE_NAME=$1
MEMORY=$2
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -z "$MACHINE_NAME" ]; then
echo 'machine name required'
exit 1
fi
if [ -z "$MEMORY" ]; then
MEMORY="2048"
fi
RANCHER_OS_VERSION=v0.4.3-rc2
RANCHER_OS_URL=https://github.com/rancher/os/releases/download/$RANCHER_OS_VERSION/rancheros.iso
RANCHER_OS_FILE=$DIR/cache/$RANCHER_OS_VERSION/rancheros.iso
mkdir -p $DIR/cache/$RANCHER_OS_VERSION
if [ ! -e $RANCHER_OS_FILE ]; then
curl -L -o $DIR/cache/$RANCHER_OS_VERSION/rancheros.iso $RANCHER_OS_URL
fi
docker-machine create --driver=parallels --parallels-memory=$MEMORY --parallels-boot2docker-url $DIR/cache/$RANCHER_OS_VERSION/rancheros.iso $MACHINE_NAME
I have to precache the iso or docker-machine will download it every time.
For RancherOS I'm looking to insert the kernel module through a docker container as the default console isn't persistent.
So I started hacking on this project but then I realized I could do it all through docker. Here is the result:
https://github.com/outstand/docker-parallels-tools
I have this working as a system service (in user docker) in RancherOS v0.4.3-rc3 under Parallels Desktop for Mac 11.1.2-32408.