나는 다음을 사용하고 싶다:https://app.vagrantup.com/FritsHoogland/boxes/centos39-oracle817
기본 vagrant up
명령이 실패합니다.
$ vagrant init FritsHoogland/centos39-oracle817
$ vagrant up
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "0e84ac28-6e1d-432a-b417-cc99c71562b7", "--type", "headless"]
Stderr: VBoxManage: error: Implementation of the USB 2.0 controller not found!
VBoxManage: error: Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings.
VBoxManage: error: Note! This error could also mean that an incompatible version of the 'Oracle VM VirtualBox Extension Pack' is installed (VERR_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
USB 오류를 무시하도록 Vagrantfile을 편집했습니다.
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--usb", "on"]
vb.customize ["modifyvm", :id, "--usbehci", "off"]
end
그러면 VM이 시작되지만 VM에 대한 초기 SSH가 실패합니다.
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'FritsHoogland/centos39-oracle817'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'FritsHoogland/centos39-oracle817' version '0.0.2' is up to date...
==> default: Setting the name of the VM: c_default_1689909952468_41
==> default: Fixed port collision for 22 => 2222. Now on port 2206.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2206 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2206
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Remote connection disconnect. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.
If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.
If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
Vagrant가 실행 중인 것 같습니다.
/usr/bin/ssh -vv -p 2206 -o LogLevel=FATAL -o Compression=yes -o DSAAuthentication=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o KexAlgorithms=+diffie-hellman-group1-sha1 -o UserKnownHostsFile=/dev/null -i /home/tange/.vagrant.d/insecure_private_key [email protected]
이것은 실패했습니다.
-o KexAlgorithms=+diffie-hellman-group1-sha1
작동하는 것처럼 보이는 기능을 추가하려면 어떻게 해야 합니까 ?
/usr/bin/ssh -vv -p 2206 -o LogLevel=FATAL -o Compression=yes -o DSAAuthentication=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o KexAlgorithms=+diffie-hellman-group1-sha1 -o UserKnownHostsFile=/dev/null -i /home/tange/.vagrant.d/insecure_private_key [email protected]
그러면 가상 머신에 로그인됩니다.
~/.ssh/config에 이것을 추가해 보았습니다.
Host *
KexAlgorithms +diffie-hellman-group1-sha1
하지만 vagrant up
처음에는 이 부분을 간과한 것 같습니다.
Vagrantfile에 다음을 추가했습니다.
config.ssh.extra_args = ["-o" "KexAlgorithms=+diffie-hellman-group1-sha1"]
사용되는 것 같지만 vagrant ssh
사용되지 않습니다 vagrant up
. 즉, vagrant up
정지되지만 vagrant ssh
시스템 시작 후에는 작동합니다.
내가 설정할 수 있는 Vagrantfile 섹션이 있나요? 아니면 이를 사용할 -o KexAlgorithms +diffie-hellman-group1-sha1
수 있는 다른 방법이 있나요?vagrant up