about summary refs log tree commit diff
path: root/vagrant
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-07-01 16:11:08 +0200
committermakefunstuff <[email protected]>2024-07-01 16:11:08 +0200
commit488831d2f7d213be6501879fc224392ccc8cd4ff (patch)
tree1167e47ac03fe43ec849a38b0cc48a56c79f34cd /vagrant
parent55db02a2e6dd7ced334713219f048c8d332691cf (diff)
downloadk3s-lab-488831d2f7d213be6501879fc224392ccc8cd4ff.tar.gz
configuring gpu instance
Diffstat (limited to '')
-rw-r--r--vagrant/Vagrantfile.gpu24
1 files changed, 5 insertions, 19 deletions
diff --git a/vagrant/Vagrantfile.gpu b/vagrant/Vagrantfile.gpu
index 70c4e55..5f2f294 100644
--- a/vagrant/Vagrantfile.gpu
+++ b/vagrant/Vagrantfile.gpu
@@ -1,14 +1,11 @@
 Vagrant.configure("2") do |config|
-  config.vm.box = "ubuntu/bionic64" # Or any other preferred Linux distribution
+  config.vm.box = "generic/ubuntu2204" # Or any other preferred Linux distribution
   
   # Configure VM hardware
-  config.vm.provider "virtualbox" do |vb|
-    vb.memory = "32768"
-    vb.cpus = 4
-    vb.customize ["modifyvm", :id, "--ioapic", "on"]
-    vb.customize ["modifyvm", :id, "--vram", "10240"] # Set VRAM to 10GB
-    vb.customize ["modifyvm", :id, "--graphicscontroller", "vmsvga"]
-    vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
+  config.vm.provider "libvirt" do |virt|
+    virt.memory = 32768
+    virt.cpus = 4
+    virt.pci :bus => '26', :slot => '0', :function => '1'
   end
 
   # Provisioning script
@@ -35,17 +32,6 @@ Vagrant.configure("2") do |config|
     # Install Tailscale
     curl -fsSL https://tailscale.com/install.sh | sh
 
-    # Install K3s
-    curl -sfL https://get.k3s.io | sh -
-
-    # Add your SSH public key (replace with your actual public key)
-    mkdir -p ~/.ssh
-    echo "" >> ~/.ssh/authorized_keys
-    chmod 600 ~/.ssh/authorized_keys
-
-    # Restart SSH service
-    sudo service ssh restart
-
     # Install NVIDIA container toolkit
     curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
     distribution=$(. /etc/os-release;echo $ID$VERSION_ID)