From 27f91f80a3ea6247699bcef59804ba9d7071e412 Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Thu, 22 May 2025 10:04:59 +0200 Subject: [PATCH] fix syntax start qemu Signed-off-by: GnomeZworc --- lib/qemu.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/qemu.sh b/lib/qemu.sh index a452198..546da6c 100644 --- a/lib/qemu.sh +++ b/lib/qemu.sh @@ -53,18 +53,18 @@ function qemu_start_vm { print_in_color "${COLOR_GREEN}" "Start vm ${vm_name}" ip netns exec "${vpc_name}" qemu-system-x86_64 \ - -enable-kvm \ - -cpu host \ - -m 512 \ - -smp 1 \ - -serial "unix:/tmp/${vm_name}.sock,server,nowait" \ - -monitor "unix:/tmp/${vm_name}.mon-sock,server,nowait" \ - -qmp "unix:/tmp/${vm_name}.qmp-sock,server,nowait" \ - -display "none" \ - -drive "file=${volume_path},if=virtio" \ - -netdev "tap,id=net0,ifname=tap${tap_id},script=no,downscript=no" \ - -device "virtio-net-pci,netdev=net0,mac=${mac}" \ - -daemonize + -enable-kvm \ + -cpu host \ + -m 512 \ + -smp 1 \ + -serial "unix:/tmp/${vm_name}.sock,server,nowait" \ + -monitor "unix:/tmp/${vm_name}.mon-sock,server,nowait" \ + -qmp "unix:/tmp/${vm_name}.qmp-sock,server,nowait" \ + -display "none" \ + -drive "file=${volume_path},if=virtio" \ + -netdev "tap,id=net0,ifname=tap${tap_id},script=no,downscript=no" \ + -device "virtio-net-pci,netdev=net0,mac=${mac}" \ + -daemonize } }