In this tutorial you will learn how to install ubuntu-precise32 and ubuntu-trusty32 in Vagrant on Linux Mint/Ubuntu Desktop inside VirtualBox.
A more detailed tutorial about how to install ubuntu-precise32 and ubuntu-trusty32 in Vagrant on Linux Mint/Ubuntu Desktop can be found here: https://www.liviubalan.com/vagrant-install-on-linux-mintubuntu-desktop.
This tutorial focus only on the “inside VirtualBox” part and shows how to revolve VM issues by setting the correct values for vb.gui, vb.customize and config.vm.boot_timeout
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# Vagrant Install ubuntu-precise32 and ubuntu-trusty32 on Linux Mint/Ubuntu Desktop inside VirtualBox # Open Oracle VM VirtualBox Manager # Explore Vagrant home directory tree -h ~/.vagrant.d/ # Create Vagrant project dir mkdir ~/vagrant mkdir ~/vagrant/ubuntu-precise32 cd ~/vagrant/ubuntu-precise32/ vagrant init ubuntu/precise32 ls -al vi Vagrantfile config.vm.box = "ubuntu/precise32" vagrant up --provider virtualbox # Timed out while waiting for the machine to boot. This means that # Vagrant was unable to communicate with the guest machine within # the configured ("config.vm.boot_timeout" value) time period. # # If you look above, you should be able to see the error(s) that # Vagrant had when attempting to connect to the machine. These errors # are usually good hints as to what may be wrong. # # If you're using a custom box, make sure that networking is properly # working and you're able to connect to the machine. It is a common # problem that networking isn't setup properly in these boxes. # Verify that authentication configurations are also setup properly, # as well. # # If the box appears to be booting properly, you may want to increase # the timeout ("config.vm.boot_timeout") value. vi Vagrantfile # As of http://stackoverflow.com/questions/22575261/vagrant-stuck-connection-timeout-retrying config.vm.provider "virtualbox" do |vb| # 1 # Display the VirtualBox GUI when booting the machine vb.gui = true # 2 # As of https://github.com/mitchellh/vagrant/issues/3860 ### Change network card to PCnet-FAST III # For NAT adapter vb.customize ["modifyvm", :id, "--nictype1", "Am79C973"] # For host-only adapter vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"] end # 3 # The time in seconds that Vagrant will wait for the machine to boot and be accessible config.vm.boot_timeout = 600 vagrant up # Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-97-virtual i686) # New release '14.04.3 LTS' available. vagrant ssh sudo poweroff # Create Vagrant project mkdir -p ~/vagrant/ubuntu-trusty32 cd ~/vagrant/ubuntu-trusty32/ cp ../ubuntu-precise32/Vagrantfile ./ vi Vagrantfile config.vm.box = "ubuntu/trusty32" vagrant up # Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-74-generic i686) vagrant ssh sudo poweroff # Useful links https://docs.vagrantup.com/v2/cli/init.html https://docs.vagrantup.com/v2/vagrantfile/ https://docs.vagrantup.com/v2/cli/up.html http://stackoverflow.com/questions/22575261/vagrant-stuck-connection-timeout-retrying https://github.com/mitchellh/vagrant/issues/3860 https://docs.vagrantup.com/v2/vagrantfile/machine_settings.html https://docs.vagrantup.com/v2/cli/ssh.html |
Useful links:
https://docs.vagrantup.com/v2/cli/init.html
https://docs.vagrantup.com/v2/vagrantfile/
https://docs.vagrantup.com/v2/cli/up.html
http://stackoverflow.com/questions/22575261/vagrant-stuck-connection-timeout-retrying
https://github.com/mitchellh/vagrant/issues/3860
https://docs.vagrantup.com/v2/vagrantfile/machine_settings.html
https://docs.vagrantup.com/v2/cli/ssh.html