Skip to content

Commit

Permalink
Enabling KVM - small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Jan 18, 2025
1 parent 4c88dc4 commit 8fb30ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/modules/system/module_armbian_kvmtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function module_armbian_kvmtest () {
PRESET_NET_CHANGE_DEFAULTS="1"
fi

local startingip=$(echo $startingip | sed "s/_/./g")
local gateway=$(echo $gateway | sed "s/_/./g")

local arch="${arch:-x86}" # VM architecture
local network="${network:-default}"
if [[ -n "${bridge}" ]]; then network="bridge=${bridge}"; fi
Expand Down Expand Up @@ -144,12 +147,12 @@ function module_armbian_kvmtest () {
virt-install \
--name ${domain} \
--memory ${memory} \
--vcpus 2 \
--vcpus ${vcpus} \
--autostart \
--disk ${destination}/${image},bus=sata \
--import \
--os-variant ubuntu24.04 \
--network default \
--network ${network} \
--noautoconsole
done
done
Expand Down

0 comments on commit 8fb30ba

Please sign in to comment.