설치 후 윈도우 cmd에서 vagrant 명령어로 버전 확인
&& virtual machine start
D:\\vagrant-upload-test>**vagrant init hanslee/docker-compose**
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
/* init 후 dir 명령어 혹은 explorer로 경로 확인해보면 Vagrantfile 존재 */
D:\\vagrant-upload-test>dir
D 드라이브의 볼륨: 새 볼륨
볼륨 일련 번호: 84DF-BC8C
D:\\vagrant-upload-test 디렉터리
2022-11-18 오후 05:33 <DIR> .
2022-11-18 오후 05:33 <DIR> ..
2022-11-18 오후 05:33 3,098 Vagrantfile
1개 파일 3,098 바이트
2개 디렉터리 113,354,465,280 바이트 남음
D:\\vagrant-upload-test>**vagrant up**
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hanslee/docker-compose'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hanslee/docker-compose' version '1.0' is up to date...
==> default: Setting the name of the VM: vagrant-upload-test_default_1668785033475_7543
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 5.2.44
default: VirtualBox Version: 7.0
==> default: Mounting shared folders...
default: /vagrant => D:/vagrant-upload-test
D:\\vagrant-upload-test>**vagrant ssh-config**
Host default
**HostName 127.0.0.1
User vagrant
Port 2222**
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
**PasswordAuthentication no
IdentityFile C:/Users/hanseul_lee/.vagrant.d/boxes/hanslee-VAGRANTSLASH-docker-compose/1.0/virtualbox/vagrant_private_key**
IdentitiesOnly yes
LogLevel FATAL