Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Automate tools install #40

Open
ryansch opened this issue Feb 10, 2016 · 4 comments
Open

Feature: Automate tools install #40

ryansch opened this issue Feb 10, 2016 · 4 comments

Comments

@ryansch
Copy link

ryansch commented Feb 10, 2016

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.

@ryansch
Copy link
Author

ryansch commented Feb 10, 2016

I understand that each distro is going to be particular. I'd be happy with a way to specify my own provisioner.

@rickard-von-essen
Copy link
Contributor

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

@ryansch
Copy link
Author

ryansch commented Feb 10, 2016

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.

@ryansch
Copy link
Author

ryansch commented Feb 11, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants