Vagrant

 

(22)

 

https://katblog.manadream.net/index.php/2019/03/19/vagrant-install-hello-world/
https://www.virtualbox.org/wiki/Linux_Downloads
https://www.vagrantup.com/downloads


前提:
起動オプション BIOS
CPU ハードウェア仮想化 -> 有効化

 

-- 1. VirtualBoxインストール

sudo vim /etc/apt/sources.list

deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian jammy contrib


wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg


sudo apt-get update
sudo apt-get install virtualbox-6.1

 


-- 2. Vagrantインストール

wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install vagrant


-- 3. Vagrant動作確認

vagrant version

vagrant box list

vagrant box add centos/7

mkdir centos7
cd centos7

vagrant init centos/7

vim Vagrantfile

  # config.vm.network "private_network", ip: "192.168.33.10"

  config.vm.network "private_network", ip: "192.168.56.1"


vagrant up --provider=virtualbox


vagrant status

vagrant ssh

cat /etc/redhat-release
exit

vagrant halt
vagrant status

vagrant destroy

 

(11)

https://katblog.manadream.net/index.php/2019/03/19/vagrant-install-hello-world/
https://www.virtualbox.org/wiki/Linux_Downloads
https://www.vagrantup.com/downloads


前提:
起動オプション BIOS
CPU ハードウェア仮想化 -> 有効化

 

-- 1. VirtualBoxインストール

sudo vim /etc/apt/sources.list

deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian bullseye contrib


wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg


sudo apt-get update --allow-releaseinfo-change
sudo apt-get install virtualbox-6.1


-- 2. Vagrantインストール

wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install vagrant


-- 3. Vagrant動作確認

vagrant version

vagrant box list

vagrant box add centos/7

mkdir centos7
cd centos7

vagrant init centos/7

vim Vagrantfile

  # config.vm.network "private_network", ip: "192.168.33.10"

  config.vm.network "private_network", ip: "192.168.56.1"


sudo apt -y install rsync

vagrant up --provider=virtualbox

 

vagrant status

vagrant ssh

cat /etc/redhat-release
exit

vagrant halt
vagrant status

vagrant destroy

 

 

(RL9)

https://katblog.manadream.net/index.php/2019/03/19/vagrant-install-hello-world/
https://www.virtualbox.org/wiki/Linux_Downloads
https://www.vagrantup.com/downloads


前提:
起動オプション UEFIセキュアブート -> 無効化
CPU ハードウェア仮想化 -> 有効化

 

-- 1. VirtualBoxインストール

dnf install -y kernel-devel gcc make perl

dnf -y install https://download.virtualbox.org/virtualbox/7.0.2/VirtualBox-7.0-7.0.2_154219_el9-1.x86_64.rpm

 

-- 2. Vagrantインストール

dnf install -y dnf-plugins-core
dnf config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
dnf -y install vagrant


-- 3. Vagrant動作確認

vagrant version

vagrant box list

vagrant box add centos/7

mkdir centos7
cd centos7

vagrant init centos/7

vim Vagrantfile

  # config.vm.network "private_network", ip: "192.168.33.10"

  config.vm.network "private_network", ip: "192.168.56.1"


vagrant up --provider=virtualbox


vagrant status

vagrant ssh

cat /etc/redhat-release
exit

vagrant halt
vagrant status

vagrant destroy

 

 

 

(2022)

https://qiita.com/kanazwk/items/6d0c62480580a570cbb5

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

https://www.virtualbox.org/wiki/Download_Old_Builds_6_1

https://www.vagrantup.com/downloads


前提:
起動オプション UEFIセキュアブート -> 無効化
CPU ハードウェア仮想化 -> 有効化

 

-- 1. VirtualBoxインストール

Microsoft Visual C++ 2019 Redistributable」のインストール
OS再起動


VirtualBox-6.1.40-154048-Win.exe

 

-- 2. Vagrantインストール

vagrant_2.3.2_windows_amd64.msi
OS再起動

 

-- 3. Vagrant動作確認

vagrant version

vagrant box list

vagrant box add centos/7

mkdir centos7
cd centos7

vagrant init centos/7

notepad Vagrantfile

  # config.vm.network "private_network", ip: "192.168.33.10"

  config.vm.network "private_network", ip: "192.168.56.1"

 

vagrant up --provider=virtualbox

 

vagrant status

vagrant ssh

cat /etc/redhat-release
exit

vagrant halt
vagrant status

vagrant destroy