fix syntax start qemu
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
a4cd5bce4d
commit
27f91f80a3
1 changed files with 12 additions and 12 deletions
24
lib/qemu.sh
24
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue