diff --git a/plugins/david.zsh b/plugins/david.zsh index 04627de..063a97d 100644 --- a/plugins/david.zsh +++ b/plugins/david.zsh @@ -46,7 +46,7 @@ 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 \ + -net nic -net bridge,br=br0,mac=$(genmac.sh),mac=$(genmac.sh) \ -boot order=n elif [ $option = "start" ]; then @@ -54,27 +54,27 @@ 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 + -net nic -net bridge,br=br0,mac=$(genmac.sh) 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 \ -m 4096 \ -drive file=$filename,if=virtio \ - -net nic -net bridge,br=br0 \ + -net nic -net bridge,br=br0,mac=$(genmac.sh) \ -boot order=n elif [ $option = "low" ]; then sudo qemu-system-x86_64 -vga std \ -cpu host -enable-kvm -machine type=pc,accel=kvm -smp 4 \ -m 4096 \ -drive file=$filename,if=virtio \ - -net nic -net bridge,br=br0 \ + -net nic -net bridge,br=br0,mac=$(genmac.sh) \ -boot order=n 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 + -net nic -net bridge,br=br0,mac=$(genmac.sh) else echo "option unknown"