fix syntax start qemu

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-05-22 10:04:59 +02:00
commit 27f91f80a3
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -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
}
}