eric@Copoka-3 ~> brew tap phinze/cask eric@Copoka-3 ~> brew cask install vagrant eric@Copoka-3 ~> vagrant plugin install vagrant-parallels
eric@Copoka-3 ~> \curl -sSL https://get.rvm.io | bash -s stable eric@Copoka-3 ~> rvm install 2.1.0 eric@Copoka-3 ~> rvm use 2.1.0
eric@Copoka-3 ~> cd Work eric@Copoka-3 ~/Work> git clone https://github.com/jedi4ever/veewee.git eric@Copoka-3 ~/Work> cd veewee eric@Copoka-3 ~/W/veewee> rvm use 2.1.0@veewee --create eric@Copoka-3 ~/W/veewee> gem install bundler --no-ri --no-rdoc eric@Copoka-3 ~/W/veewee> bundle install eric@Copoka-3 ~/W/veewee> rake install
eric@Copoka-3 ~> cd Work eric@Copoka-3 ~/Work> mkdir boxes eric@Copoka-3 ~/Work> cd boxes
eric@Copoka-3 ~/W/boxes> veewee parallels templates
eric@Copoka-3 ~/W/boxes> veewee parallels define 'precise64' 'ubuntu-12.04.3-server-amd64'
veewee parallels build
, but we will fail. Although it would seem that we used a template for working with parallels, this template tries to install guest tools for VirtualBox and VMWare, but knows nothing about Parallels. Fix this flaw: eric@Copoka-3 ~/W/boxes> cd definitions/precise64/ eric@Copoka-3 ~/W/b/d/precise64>
parallels.sh
file with the following content (I looked in the template for ubuntu-13.10-server-amd64, but there’s another problem, I'll tell you later): # Install the Parallels Tools PARALLELS_TOOLS_ISO=prl-tools-lin.iso mount -o loop $PARALLELS_TOOLS_ISO /media/cdrom /media/cdrom/install --install-unattended-with-deps --progress umount /media/cdrom
definition.rb
, remove virtualbox and vmfusion references from the postinstall_files
list, and add parallels.sh
. eric@Copoka-3 ~/W/b/d/precise64> cd ../.. eric@Copoka-3 ~/W/boxes> veewee parallels build precise64
...- ... The box precise64 was built successfully! You can now login to the box with: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 22 -l vagrant 10.211.55.7 eric@Copoka-3 ~/W/boxes>
vagrant
password), make sure everything is fine, add something (for example, Russian support). After we make sure that everything is set as it should, you can pack it in a box for Vagrant.Error was not executed. - Command: prl_disk_tool compact --buildmap --hdd /Users/eric/Documents/Parallels/precise64.pvm/harddisk.hdd. - Exitcode: 2. - Output: Operation progress 5% Unable to compact the disk.
optimize_disk
line in the gems/veewee-0.3.12/lib/veewee/provider/parallels/box/export.rb
export.rb file (relative to the gemset version used) - I had it 69th line. eric@Copoka-3 ~/W/boxes> ll total 1252512 drwxr-xr-x+ 3 eric staff 102B 20 17:44 definitions drwxr-xr-x+ 4 eric staff 136B 20 17:39 iso -rw-r--r--+ 1 eric staff 612M 20 18:46 precise64.box eric@Copoka-3 ~/W/boxes>
eric@Copoka-3 ~/W/boxes> vagrant box add 'precise64' '/Users/eric/Work/boxes/precise64.box'
eric@Copoka-3 ~/W/boxes> cd ~/Work eric@Copoka-3 ~/Work> mkdir testbox eric@Copoka-3 ~/Work> cd testbox eric@Copoka-3 ~/W/testbox> vagrant init precise64 eric@Copoka-3 ~/W/testbox> vagrant up --provider=parallels eric@Copoka-3 ~/W/testbox> vagrant ssh Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.8.0-29-generic x86_64) * Documentation: https://help.ubuntu.com/ Last login: Thu Feb 20 18:33:11 2014 from 10.211.55.2 vagrant@precise64:~$
definition.rb
and, therefore, comment out VirtualBox. Then everything is exactly the same.vagrant up
our mailbox from 13.10, the machine waits for the machine to start, although the machine starts successfully. This is due to an error in the Parallels drivers for Linux. Parallels knows about this error and promises to fix it in the near update. You can read about it on the vagrant-parallels issue tracker.Source: https://habr.com/ru/post/213351/
All Articles