This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
технология_vagrant [2022/09/07 14:10] val [Управление образами] |
технология_vagrant [2022/09/21 10:49] val [Установка] |
||
---|---|---|---|
Line 11: | Line 11: | ||
===== Установка ===== | ===== Установка ===== | ||
- | * [[https://val.bmstu.ru/unix/HashiCorp/vagrant_2.2.10_x86_64.msi]] | + | * [[https://val.bmstu.ru/unix/HashiCorp/vagrant_2.2.10_x86_64.msi]] |
+ | * Можно не перезагружать систему | ||
===== Подготовка командной строки ===== | ===== Подготовка командной строки ===== | ||
Line 33: | Line 34: | ||
* [[https://oracle-base.com/articles/vm/create-a-vagrant-base-box-virtualbox|Create a Vagrant Base Box (VirtualBox)]] + [[https://bbs.archlinux.org/viewtopic.php?id=270005|[SOLVED] Latest sshd not accepting key algorithms]] | * [[https://oracle-base.com/articles/vm/create-a-vagrant-base-box-virtualbox|Create a Vagrant Base Box (VirtualBox)]] + [[https://bbs.archlinux.org/viewtopic.php?id=270005|[SOLVED] Latest sshd not accepting key algorithms]] | ||
* [[https://vagrantcloud.com/debian/bullseye64]] | * [[https://vagrantcloud.com/debian/bullseye64]] | ||
+ | |||
+ | * [[https://val.bmstu.ru/unix/HashiCorp/ubuntu_20.04.box]] | ||
* [[Переменные окружения]] | * [[Переменные окружения]] | ||
Line 159: | Line 162: | ||
</code><code> | </code><code> | ||
#sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config | #sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config | ||
- | #echo 'root:strongpassword' | chpasswd | + | #service ssh restart |
echo 'vagrant:strongpassword' | chpasswd | echo 'vagrant:strongpassword' | chpasswd | ||
+ | #echo 'root:strongpassword' | chpasswd | ||
+ | |||
+ | (echo '"\e[A": history-search-backward'; echo '"\e[B": history-search-forward') >> /etc/inputrc | ||
timedatectl set-timezone Europe/Moscow | timedatectl set-timezone Europe/Moscow | ||
Line 275: | Line 281: | ||
λ vagrant ssh node2 | λ vagrant ssh node2 | ||
- | λ vagrant destroy node3 | + | λ vagrant destroy node1 |
λ vagrant destroy -f | λ vagrant destroy -f |