How work with Vagrant and set up VM - ITA-Dnipro/PyDataCenter5000 GitHub Wiki
First steps
- Install Virtual Box https://www.virtualbox.org/wiki/Downloads
- Install Vagrant https://developer.hashicorp.com/vagrant/install#windows
- Go to \PyDataCenter5000\vagrant in our project, and rename env.rb.example на "env.rb"
- If you are a MacOs user, in the "env.rb", find "ENV_YOUR_SERVER_NAME". For example - "ENV_DNS", and change "ubuntu/jammy64", to "net9/ubuntu-24.04-arm64" if needed. it`s "OS" parameter.
- If your IP and mask are different, also change it in "env.rb" file
Changing encoding for bash script:
In your IDLE open file PyDataCenter5000\agents\scripts\common.sh, find CRLF parameter and change it to LF
- In terminal go to directory \PyDataCenter5000
- RUN vagrant destroy -f This command kills previos VM, if exist
- RUN $env:VAGRANT_VAGRANTFILE = "agents/vagrant/Vagrantfile.web" or .dns or .smtp or .ntp - depends on your server!
- RUN vagrant up - it set up VM with python 2.6, zlib and setuptools automatically
Checking if everything works as expected:
- RUN vargant ssh - it connect you to your VM
- Inside VM in terminal RUN python2 --version --> Should be output "Python 2.6.9"
- RUN python2 - it opens python 2 interpritator
- RUN import setuptools
- RUN print setuptools.version --> Should be output like "33.1.1"
- To quit python interpreter RUN quit()
- Enjoy your VM with Python 2.6 and setuptools 😉