Create Vagrantfile file User ubuntu version 20.04 Checkout the box version in generic/ubuntu2004 Box version needs to support libvirt Hosted by Vagrant Cloud (1.4 GB) eg. RUN chown -R vagrant:vagrant /home/vagrant/. This tutorial has shown you how to set up your Linux OS (Ubuntu) on Windows using Vagrant and VirtualBox. HashiCorp publishes a basic Ubuntu 18.04 64-bit box that is available for minimal use cases. Using vagrant for quick start and this is how to setup basic Ubuntu server 1. RUN chmod 600 /home/vagrant/.ssh/authorized_keys RUN echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ=" > /home/vagrant/.ssh/authorized_keys RUN echo 'vagrant ALL = NOPASSWD: ALL' > /etc/sudoers.d/vagrant Please download the proper package for your. RUN apt-get update -y RUN apt-get install -y -no-install-recommends ssh sudo RUN useradd -create-home -s /bin/bash vagrant The official Download Vagrant webpage has all the available downloads for the latest version of Vagrant (2.0.1). FROM ubuntu ENV TZ=America/Mexico_City RUN ln -snf /usr/share/zoneinfo/ $TZ /etc/localtime & echo $TZ > /etc/timezone
0 Comments
Leave a Reply. |