VagrantでDebian起動試してみた(うまくいかず)
vagrant upでUbuntu起動したけどうまくいかない問題でUbuntu以外なら動くのではと思ってDebianで試してみた
実行
> vagrant init generic/debian10
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.
> vagrant up --provider=virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'generic/debian10' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'generic/debian10'
default: URL: https://vagrantcloud.com/api/v2/vagrant/generic/debian10
==> default: Adding box 'generic/debian10' (v4.3.12) for provider: virtualbox (amd64)
default: Downloading: https://vagrantcloud.com/generic/boxes/debian10/versions/4.3.12/providers/virtualbox/amd64/vagrant.box
default:
default: Calculating and comparing box checksum...
==> default: Successfully added box 'generic/debian10' (v4.3.12) for 'virtualbox (amd64)'!
==> default: Importing base box 'generic/debian10'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'generic/debian10' version '4.3.12' is up to date...
==> default: Setting the name of the VM: debianDayo_default_1714392749578_75596
==> 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: 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:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH 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.0 r68940
default: VirtualBox Version: 7.0
どうやらGuest AddtionsとVirtualBox本体のバージョンがあってないらしい
参考サイト
バージョンを下げて検証
> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> 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...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "af1e6856-e22d-4878-b20d-1b2dce45secd", "--type", "headless"]
Stderr: VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
virtualbox3.2系 vagrant3.0系で試したがうまくいかず・・・
ググったところやはりHyper-Vをオフにすると書いてあるものもありHyper-Vを触りたくないので検証ここまで
Ubuntuだから駄目だと思ったけどDebianでもだめでした。
この記事が気に入ったらサポートをしてみませんか?