Answer the question
In order to leave comments, you need to log in
Why is the vagrant environment not working?
Do not take it for impudence, but I ask you to help me understand Vagrant and with its further implementation, since I have been unable to understand what the problem is for the whole day, and the problem is practically at the very beginning. I tried to do everything according to the rules, installed a virtual box, vagrant was installed normally. Uncommented line 15 in vagrantfile - config.vm.box = "generic/ubuntu1804" (according to boxing), line 26 - config.vm.network "forwarded_port", guest: 80, host: 80 (changed as advised on one video 8080 -> to 80 at the end of this line), and line 46 - config.vm.synced_folder "C:/Users/Kero8yte/Vagrant/projects", "/var/www" (changed the paths and added a new directory projects in the folder with vagrant).
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu1804"
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.synced_folder "C:/Users/Kero8yte/Vagrant/projects", "/var/www"
end
Next, vagrant reload - wrote that everything went well. I generated a private key in putty, set the address to 127.0.0.1 port 2200 as indicated in the terminal. At startup, I enter a login and for some reason it requires a password, but I didn’t set a password and, as it was shown on one video, it immediately went into a message about a successful launch. I enter the password the same as the login, it starts up without information, after the sudo apt-get update command it writes errors and does not update anything. I already started writing a question here and at the same time I tried in the hope of launching it again, and suddenly the download started after several errors, but in fits and starts,I had to run the same command several times. I was delighted and started installing other tools, in particular python and django. But as soon as I restarted the computer when starting vagrant, for some reason the address changed to 127.0.0.1 port 2222 and again nothing updates, writes errors. I immediately thought that one of the reasons for the unstable Internet, but still I think it's not. Help please, otherwise I need to deploy a program with a database at work until Monday, but I can’t even do that. I am still a trainee, but I still really want to stay in this job in the future.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question