My personal Ubuntu vagrant workspace with VirtualBox provider.
Used only for development purposes.
This workspace supports Windows as host.
Install the following softwares in your PC:
- VirtualBox "6.1.34 r150636 (Qt5.6.2)" or newer
- Vagrant v2.2.19 or newer
- Ruby v2.7.4 or newer
Important note: You will need to run Vagrant as Administrator.
Vagrantfile
Vagrant.configure('2') do |config|
config.vm.box = 'pedrofurtado/vagrant-ubuntu-workspace'
config.vagrant.plugins = ['vagrant-disksize'] # vagrant-disksize v0.1.3 or newer
config.disksize.size = '100GB'
config.vm.box_version = 'x.y.z'
config.vm.network 'forwarded_port', guest: 9999, host: 9999, id: 'portainer'
config.vm.network 'forwarded_port', guest: 9998, host: 9998, id: 'k8s_dashboard'
config.vm.network 'forwarded_port', guest: 1234, host: 1234, id: 'my_app'
config.vm.provider 'virtualbox' do |v|
v.memory = '8192'
v.cpus = '2'
v.customize ['setextradata', :id, 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root', '1']
v.customize ['modifyvm', :id, '--uartmode1', 'disconnected']
end
config.vm.provision 'shell', inline: <<-SHELL
# Your shell script here
SHELL
end
CMD
vagrant up (run as Administrator)
Enjoy!
Bug reports and pull requests are welcome on GitHub at https://github.com/pedrofurtado/vagrant-ubuntu-workspace. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The repository is available as open source under the terms of the MIT License.
Everyone interacting in the vagrant-ubuntu-workspace project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.