coadu / zeromq-playground

Configuration for zeromq-playground Vagrant box and docker containers
MIT License
2 stars 0 forks source link

Some help with getting this running with vagrant-parallels #1

Open Analect opened 10 years ago

Analect commented 10 years ago

@madscoaducom , I came across your repo as I was looking for a zerorpc implementation somewhere. I know you mentioned in your readme that you have a linux set up, but that this should also work on mac. I have parallels rather than virtualbox on my mac, but I have been able to get other vagrant apps working by tweaking the Vagrantfile. I should state that I have no real expertise in Vagrant! Specifically, I added the following to your Vagrantfile: config.vm.provider :virtualbox do | vb, override |

The url form where the 'config.vm.box' box will be fetched if it

# doesn't already exist on the user's system.
config.vm.box_url = "http://files.vagrantup.com/precise64.box"

end config.vm.provider :parallels do | prl, override | config.vm.box_url = "http://download.parallels.com/desktop/vagrant/precise64.box" end

This appeared to get me part of the way, at least, but it died soon after, unable to find git and docker on the box. I think the box you were using was on your local machine and obviously had git and docker installed. Would you have any suggestions how I might tackle this? Thanks very much.

(env)MacBook-Pro:zeromq-playground me$ vagrant up Bringing machine 'default' up with 'parallels' provider... [default] Box 'coadu/zeromq-playground' was not found. Fetching box from specified URL for the provider 'parallels'. Note that if the URL does not have a box for this provider, you should interrupt Vagrant now and add the box yourself. Otherwise Vagrant will attempt to download the full box prior to discovering this error. Downloading box from URL: http://download.parallels.com/desktop/vagrant/precise64.box Extracting box...te: 3618k/s, Estimated time remaining: 0:00:01) Successfully added box 'coadu/zeromq-playground' with provider 'parallels'! [default] Importing base box 'coadu/zeromq-playground'... [default] Matching MAC address for Shared network... [default] The specified base MAC is already in use. Generating a new unique MAC address for Shared network... [default] Setting the name of the VM... [default] Preparing network interfaces based on configuration... [default] Clearing any previously set network interfaces... [default] Booting VM... [default] Waiting for machine to boot. This may take a few minutes... [default] Machine booted and ready! [default] The Parallels Tools on this VM do not match the installed version of Parallels Desktop! In most cases this is fine, but in rare cases it can cause things such as shared folders to not work properly. If you see shared folder errors, please update the Parallels Tools within the virtual machine and reload your VM. Parallels Tools Version: 9.0.24215.978862 Parallels Desktop Version: 9.0.24172.951362 [default] Mounting shared folders... [default] -- /vagrant [default] -- /home/vagrant/app [default] Running provisioner: shell... [default] Running: inline script stdin: is not a tty /tmp/vagrant-shell: line 1: git: command not found sudo: docker: command not found sudo: docker: command not found The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell

Stdout from the command: Stderr from the command:

stdin: is not a tty /tmp/vagrant-shell: line 1: git: command not found sudo: docker: command not found sudo: docker: command not found

madscoaducom commented 10 years ago

As I don't have parallels these are just outline ideas of what you could try.

The Vagrantfile for the coadu/zeromq-playground box is in the boxfolder. You could try to change that (including it's name) to use a parallels provider. There is no official support, but you could try this

After a vagrant up you should have an image that has docker and zmq installed.

If you want to use the docker images, you need to run the inline script you will find in the top-level Vagrant file.

Analect commented 10 years ago

Thanks @madscoaducom I removed the old box (and deleted the .vagrant directory). Tried a few things around tweaking the Vagrantfiles at the top and box folders. I suspect it may have something to do with the *.box file needing to be of a type that parallels can work with ... hence the url from a parallels site that I have used before. I'll see if I can get any help from team at parallels-vagrant. @racktear has been helpful in the past. I'll leave this open for now in case I find a solution that may be of use to others.