The Vagrant version I am using is 2.0.4, and the VirtualBox version is 7.0.12
,The content of my vagrantFile file is as follows:
Vagrant.configure("2") do |config|
config.vm.define "k8s-node1" do |node|
node.vm.box = "centos/7"
node.vm.hostname="k8s-node1"
node.vm.network "private_network", ip: "192.168.56.101", netmask: "255.255.255.0"
node.vm.provider "virtualbox" do |v|
v.name = "k8s-node1"
v.memory = 2048
v.cpus = 2
end
end
config.vm.define "k8s-node2" do |node|
node.vm.box = "centos/7"
node.vm.hostname="k8s-node2"
node.vm.network "private_network", ip: "192.168.56.102", netmask: "255.255.255.0"
node.vm.provider "virtualbox" do |v|
v.name = "k8s-node2"
v.memory = 2048
v.cpus = 2
end
end
end
But when running the vagrant up command, an error was encountered as shown in the figure. How to solve it?