diff --git a/control-plane/vagrant/Vagrantfile b/control-plane/vagrant/Vagrantfile index c0735a4..6862e71 100644 --- a/control-plane/vagrant/Vagrantfile +++ b/control-plane/vagrant/Vagrantfile @@ -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"] + # 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 end \ No newline at end of file