Fixing initial errors

This commit is contained in:
vandomej 2025-10-01 15:12:28 -07:00
parent a790b58667
commit 461a374cc6

View file

@ -1,41 +1,29 @@
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
# You need to specify a base box for VirtualBox
# Using a minimal dummy box - we'll override most settings
config.vm.box = "generic/alpine316"
config.vm.define "control-plane-node-1" do |vm| config.vm.define "control-plane-node-1" do |vm|
vm.vm.provider :virtualbox do |vb| vm.vm.provider :virtualbox do |vb|
vb.cpus = 2 vb.cpus = 2
vb.memory = 2048 vb.memory = 2048
# Serial logging not directly supported in VirtualBox provider # Remove the default storage that comes with the base box
# Storage configuration handled differently in VirtualBox vb.customize ["modifyvm", :id, "--boot1", "dvd"]
vb.customize ["modifyvm", :id, "--boot1", "disk"] vb.customize ["modifyvm", :id, "--boot2", "none"]
vb.customize ["modifyvm", :id, "--boot2", "dvd"] # Attach the Talos ISO
vb.customize ["storageattach", :id, "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "dvddrive", "--medium", "/tmp/vagrant/metal-amd64.iso"]
end end
# Add CD-ROM through Vagrant disk configuration
vm.vm.disk :disk, size: "4GB", primary: true
vm.disks = [{
type: :dvd,
device: :dvddrive,
port: '1',
device: '0',
path: "/tmp/vagrant/metal-amd64.iso"
}]
end end
config.vm.define "worker-node-1" do |vm| config.vm.define "worker-node-1" do |vm|
vm.vm.provider :virtualbox do |vb| vm.vm.provider :virtualbox do |vb|
vb.cpus = 2 vb.cpus = 2
vb.memory = 2048 vb.memory = 2048
# Serial logging not directly supported in VirtualBox provider # Remove the default storage that comes with the base box
# Storage configuration handled differently in VirtualBox vb.customize ["modifyvm", :id, "--boot1", "dvd"]
vb.customize ["modifyvm", :id, "--boot1", "disk"] vb.customize ["modifyvm", :id, "--boot2", "none"]
vb.customize ["modifyvm", :id, "--boot2", "dvd"] # Attach the Talos ISO
vb.customize ["storageattach", :id, "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "dvddrive", "--medium", "/tmp/vagrant/metal-amd64.iso"]
end end
# Add CD-ROM through Vagrant disk configuration
vm.vm.disk :disk, size: "4GB", primary: true
vm.disks = [{
type: :dvd,
device: :dvddrive,
port: '1',
device: '0',
path: "/tmp/vagrant/metal-amd64.iso"
}]
end end
end end