Fixing initial errors
This commit is contained in:
parent
a790b58667
commit
461a374cc6
1 changed files with 14 additions and 26 deletions
42
control-plane/vagrant/Vagrantfile
vendored
42
control-plane/vagrant/Vagrantfile
vendored
|
|
@ -1,41 +1,29 @@
|
|||
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|
|
||||
vm.vm.provider :virtualbox do |vb|
|
||||
vb.cpus = 2
|
||||
vb.memory = 2048
|
||||
# Serial logging not directly supported in VirtualBox provider
|
||||
# Storage configuration handled differently in VirtualBox
|
||||
vb.customize ["modifyvm", :id, "--boot1", "disk"]
|
||||
vb.customize ["modifyvm", :id, "--boot2", "dvd"]
|
||||
# Remove the default storage that comes with the base box
|
||||
vb.customize ["modifyvm", :id, "--boot1", "dvd"]
|
||||
vb.customize ["modifyvm", :id, "--boot2", "none"]
|
||||
# Attach the Talos ISO
|
||||
vb.customize ["storageattach", :id, "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "dvddrive", "--medium", "/tmp/vagrant/metal-amd64.iso"]
|
||||
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
|
||||
|
||||
config.vm.define "worker-node-1" do |vm|
|
||||
vm.vm.provider :virtualbox do |vb|
|
||||
vb.cpus = 2
|
||||
vb.memory = 2048
|
||||
# Serial logging not directly supported in VirtualBox provider
|
||||
# Storage configuration handled differently in VirtualBox
|
||||
vb.customize ["modifyvm", :id, "--boot1", "disk"]
|
||||
vb.customize ["modifyvm", :id, "--boot2", "dvd"]
|
||||
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"
|
||||
}]
|
||||
# Remove the default storage that comes with the base box
|
||||
vb.customize ["modifyvm", :id, "--boot1", "dvd"]
|
||||
vb.customize ["modifyvm", :id, "--boot2", "none"]
|
||||
# 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
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue