diff --git a/plugins/david.zsh b/plugins/david.zsh index 063a97d..f0c653d 100644 --- a/plugins/david.zsh +++ b/plugins/david.zsh @@ -54,7 +54,8 @@ vm() -cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \ -m 4096 \ -drive file=$filename,if=virtio \ - -net nic -net bridge,br=br0,mac=$(genmac.sh) + -net nic,macaddr=$(genmac.sh) \ + -net bridge,br=br0 elif [ $option = "net" ]; then sudo qemu-system-x86_64 -vga virtio -display sdl,gl=on \ -cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \ @@ -67,15 +68,15 @@ vm() -cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \ -m 4096 \ -drive file=$filename,if=virtio \ - -net nic -net bridge,br=br0,mac=$(genmac.sh) \ - -boot order=n + -net nic,macaddr=$(genmac.sh) \ + -net bridge,br=br0 elif [ $option = "nofb" ]; then sudo qemu-system-x86_64 -nographic -curses \ -cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \ -m 4096 \ -drive file=$filename,if=virtio \ - -net nic -net bridge,br=br0,mac=$(genmac.sh) - + -net nic,macaddr=$(genmac.sh) \ + -net bridge,br=br0 else echo "option unknown" fi