Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5970

Infinite Loop During KYPO-Lite Installation with Vagrant on VPS

$
0
0

Problem

I'm trying to install the KYPO-Lite cyber range on my VPS by following the instructions provided in the GitLab repository. My VPS meets all the required hardware and software specifications, and I haven't made any changes to the provided Vagrant file.

However, when I run the vagrant up command, the process gets stuck in an infinite loop. The loop continues indefinitely without progressing to the next steps of the installation.

Here is the part of the script where the issue occurs:

while true; do        ((iterations++))        echo "Iteration: $iterations"        result=$(kubectl get crd | grep middlewares.traefik.containo.us)        if [ $? -eq 0 ]; then            echo "K3s cluster ready:"            echo "$result"            break        else            echo "K3s cluster initializing. Retrying..."        fi        sleep 1    done

Steps to Reproduce

  1. Follow the installation instructions in the README without modifying the Vagrant file.
  2. Run the vagrant up command on a VPS that meets the system requirements.
  3. The process enters the infinite loop described above.

Vagrant Configuration

Here is the relevant section of the Vagrant file:

Vagrant.configure(2) do |config|  config.vm.box = "generic/ubuntu2204"  config.vm.box_version = "4.2.16"  config.vm.hostname = "openstack"  config.vm.network :private_network, ip: "10.1.2.10"  config.vm.provider :libvirt do |libvirt|    libvirt.cpus = 8    libvirt.memory = 45056    libvirt.nested = true    libvirt.machine_virtual_size = 250  end  # Additional provisioning code...end

What I've Tried

I've searched through the repository issues and forums but haven't found a solution to this specific problem. I'm wondering if there's something I'm missing in the configuration or a step that needs to be adjusted.

Environment

  • VPS running Ubuntu 22.04
  • Vagrant 2.3.4
  • Libvirt 7.0.0
  • Kubernetes and other tools installed via Snap

Question

What could be causing the infinite loop during the vagrant up process, and how can I resolve it?


Viewing all articles
Browse latest Browse all 5970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>