I use this Vagrantfile to create a new VM:
Code: Select all
Vagrant.configure("2") do |config|
config.vm.box = "generic/debian11"
config.disksize.size = '1024GB'
config.vm.network "private_network", ip: "172.16.1.12"
config.vm.synced_folder "/mnt/foobar", "/vm_share"
config.vm.provider "virtualbox" do |v|
v.gui = true
v.memory = "8192"
v.cpus = 4
end
end
Code: Select all
$ vagrant box update
==> default: Checking for updates to 'generic/debian11'
default: Latest installed version: 4.2.16
default: Version constraints:
default: Provider: virtualbox
==> default: Box 'generic/debian11' (v4.2.16) is running the latest version.
Code: Select all
vagrant box add --name debian11 debian-11-amd64_virtualbox.box --force; vagrant up; vagrant ssh
Thu May 4 07:40:25 PM CEST 2023
==> default: VM not created. Moving on...
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'debian11' (v0) for provider:
box: Unpacking necessary files from: file:///mnt/pra/debian-box/debian11/debian-11-amd64_virtualbox.box
==> box: Successfully added box 'debian11' (v0) for 'virtualbox'!
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'generic/debian11'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'generic/debian11' version '4.2.16' is up to date...
==> default: Setting the name of the VM: debian11_default_1683222136358_35462
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Resized disk: old 131072 MB, req 1048576 MB, new 1048576 MB
==> default: You may need to resize the filesystem from within the guest.
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
The oldest build was running as a charm with exactly the same config, before I ran 'vagrant box update'
Not allowed to post images.
Anyone knows what can I do?