Update install.sh

This commit is contained in:
colin 2024-08-11 19:03:05 -04:00
parent b82a47ee52
commit cd9eedb49c
1 changed files with 5 additions and 12 deletions

View File

@ -11,8 +11,6 @@ VM_NAME=${2:-ubuntu-cloudinit2404} # Default to "ubuntu-cloudinit2404", can be
MEMORY=2048 MEMORY=2048
CORES=2 CORES=2
STORAGE=${1:-proxmox} # Default to "proxmox", can be overridden by passing an argument STORAGE=${1:-proxmox} # Default to "proxmox", can be overridden by passing an argument
CLONE_ID=135
CLONE_NAME="yoshi"
# Function to check if a command failed # Function to check if a command failed
check_command() { check_command() {
@ -71,14 +69,9 @@ echo "Adding serial console..."
qm set $VM_ID --serial0 socket --vga serial0 qm set $VM_ID --serial0 socket --vga serial0
check_command "Adding serial console" check_command "Adding serial console"
# Step 9: Create template # Step 9: Echo template creation commands for later manual execution
echo "Creating template..." echo "Suggested command for creating a template:"
qm template $VM_ID echo "qm template $VM_ID"
check_command "Creating template"
# Step 10: Clone template echo "Script completed successfully! Don't forget to create the template when you're ready with:"
echo "Cloning template..." echo "qm template $VM_ID"
qm clone $VM_ID $CLONE_ID --name $CLONE_NAME --full
check_command "Cloning template"
echo "Script completed successfully!"