From 04a9fb57d8c24d7f3b8eda8f4d8e085cd8a5b45d Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Thu, 27 Jun 2024 20:28:53 +1000 Subject: [PATCH] Port Ubuntu 2204 VM to ARM64 Might work, not sure since can't test it --- vm/ubuntu2204-vm.sh | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/vm/ubuntu2204-vm.sh b/vm/ubuntu2204-vm.sh index 5fffcf0d6..002356364 100644 --- a/vm/ubuntu2204-vm.sh +++ b/vm/ubuntu2204-vm.sh @@ -101,15 +101,6 @@ function pve_check() { fi } -function arch_check() { - if [ "$(dpkg --print-architecture)" != "amd64" ]; then - msg_error "This script will not work with PiMox! \n" - echo -e "Exiting..." - sleep 2 - exit - fi -} - function ssh_check() { if command -v pveversion >/dev/null 2>&1; then if [ -n "${SSH_CLIENT:+x}" ]; then @@ -336,7 +327,6 @@ function start_script() { } check_root -arch_check pve_check ssh_check start_script @@ -370,7 +360,7 @@ fi msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location." msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}." msg_info "Retrieving the URL for the Ubuntu 22.04 Disk Image" -URL=https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img +URL=https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-arm64.img sleep 2 msg_ok "${CL}${BL}${URL}${CL}" wget -q --show-progress $URL @@ -411,11 +401,11 @@ qm set $VMID \ -ide2 ${STORAGE}:cloudinit \ -boot order=scsi0 \ -serial0 socket \ - -description "