A collection of shell scripts for automating VM creation and setup for SPARCS development servers.
Creates a new Ubuntu VM in Proxmox with customized configurations.
- Proxmox VE environment
libguestfs-tools
(will be automatically installed if missing)- Network bridge interface configured in Proxmox
./create-vm.sh --version=<22.04|24.10> --id=<vm_id> --bridge=<bridge_interface>
--version
: Ubuntu version (22.04 or 24.10)--id
: Unique VM ID (numeric)--bridge
: Network bridge interface--help
: Display help message
./create-vm.sh --version=24.10 --id=100 --bridge=vInternal
Sets up a SPARCS development server with essential packages and configurations.
- Updates APT sources to use KAIST mirror
- Installs basic development packages
- Configures SSH settings
- Installs AWS CLI
- Sets up Python environment
- Docker installation [Optional]
./setup-script.sh [--docker] [--help]
--docker
: Install and configure Docker--help
: Display help message
./setup-script.sh --docker
Downloads and executes setup-script.sh in a specified VM.
- Proxmox VE environment
jq
(will be automatically installed if missing)- Target VM must be running and have network access
./run-script-vm.sh <VMID> [--docker]
VMID
: The ID of the VM to run the script in--docker
: Pass --docker flag to the setup script
./run-script-vm.sh 100 --docker
- Create a new VM:
./create-vm.sh --version=24.10 --id=100 --bridge=vInternal
- Run the setup script in the newly created VM:
./run-script-vm.sh 100 --docker
This will create a new Ubuntu 24.10 VM with ID 100, then set it up as a SPARCS development server with Docker installed.
- All scripts require root privileges to run
- VMs are created with UEFI boot and QEMU guest agent enabled
- Default VM specifications:
- Memory: 2048 MB
- Cores: 2
- Disk Size: 10G