Compare commits

..

2 Commits

Author SHA1 Message Date
CanbiZ (MickLesk) 601efbadeb Fix machine parameter formatting in VM script 2026-07-24 08:50:45 +02:00
MickLesk c6976d1c7d HAOS: fix machine type selection being ignored, VM always created as q35 2026-07-24 08:47:36 +02:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -280,7 +280,7 @@ function extract_xz_with_pv() {
function default_settings() {
BRANCH="$stable"
VMID=$(get_valid_nextid)
MACHINE="q35"
MACHINE=" -machine q35"
FORMAT=""
DISK_SIZE="32G"
HN="haos-${BRANCH}"
@@ -598,7 +598,7 @@ msg_ok "${CL}${BL}${URL}${CL}"
download_and_validate_xz "$URL" "$CACHE_FILE"
msg_info "Creating Home Assistant OS VM shell"
qm create $VMID -machine q35 -bios ovmf -agent 1 -tablet 0 -localtime 1 ${CPU_TYPE} \
qm create $VMID${MACHINE} -bios ovmf -agent 1 -tablet 0 -localtime 1 ${CPU_TYPE} \
-cores "$CORE_COUNT" -memory "$RAM_SIZE" -name "$HN" -tags community-script \
-net0 "virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU" -onboot 1 -ostype l26 -scsihw virtio-scsi-pci >/dev/null
msg_ok "Created VM shell"
+2 -2
View File
@@ -273,7 +273,7 @@ function extract_xz_with_pv() {
function default_settings() {
VMID=$(get_valid_nextid)
MACHINE="q35"
MACHINE=" -machine q35"
FORMAT=""
DISK_SIZE="32G"
HN="umbrelos"
@@ -564,7 +564,7 @@ mkdir -p "$CACHE_DIR" "$(dirname "$FILE_IMG")"
download_and_validate_xz "$URL" "$CACHE_FILE"
qm create $VMID -machine q35 -bios ovmf -agent 1 -tablet 0 -localtime 1 ${CPU_TYPE} \
qm create $VMID${MACHINE} -bios ovmf -agent 1 -tablet 0 -localtime 1 ${CPU_TYPE} \
-cores "$CORE_COUNT" -memory "$RAM_SIZE" -name "$HN" -tags community-script \
-net0 "virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU" -onboot 1 -ostype l26 -scsihw virtio-scsi-pci >/dev/null