Skip to content

Commit

Permalink
Use custom port.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Mar 12, 2024
1 parent 7848dbd commit 078ae65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud-init/start-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ start () {
kill_vm
local img_file=$(prepare)
echo $img_file
python3 -m http.server --directory temp &
python3 -m http.server $PORT --directory temp &
echo $! > temp/httpd.pid
qemu-system-x86_64 \
-name freva-deployment \
Expand All @@ -98,7 +98,7 @@ start () {
-nographic \
-hda $img_file \
-async-teardown \
-smbios type=1,serial=ds='nocloud;s=http://10.0.2.2:8000' &> temp/vm.log &
-smbios type=1,serial=ds="nocloud;s=http://10.0.2.2:$PORT" &> temp/vm.log &
echo $! > temp/vm.pid
tail -f temp/vm.log |grep -v 'freva login:'
kill_vm
Expand Down

0 comments on commit 078ae65

Please sign in to comment.