Ok So i made a wrapper to solve my problem that will execute the options I want on the selected vm.
The solution was to rename kvm to kvm.original and create a kvm bash script like this:
#!/bin/bash ARGV1="$@" ARGV2="-M pc -m 512 -smp 1 -monitor pty -no-acpi -drive file=/home/virt-images/WindowsXP.qcow,if=ide,boot=on -drive file=/dev/cdrom,if=ide,media=cdrom -net nic,macaddr=52:54:00:56:c5:48,vlan=0 -net tap,ifname=,script=,vlan=0 -usb -vnc 0.0.0.0:0"
if [ "$ARGV1" == "$ARGV2" ] then exec /usr/bin/kvm.original $@ -usbdevice host:0529:001 fi exec /usr/bin/kvm.original $@
Hope this helps someone.
Thanks anyway
Ok
So i made a wrapper to solve my problem that will execute the options I want on the selected vm.
The solution was to rename kvm to kvm.original and create a kvm bash script like this:
#!/bin/bash virt-images/ WindowsXP. qcow,if= ide,boot= on -drive file=/dev/ cdrom,if= ide,media= cdrom -net nic,macaddr= 52:54:00: 56:c5:48, vlan=0 -net tap,ifname= ,script= ,vlan=0 -usb -vnc 0.0.0.0:0"
ARGV1="$@"
ARGV2="-M pc -m 512 -smp 1 -monitor pty -no-acpi -drive file=/home/
if [ "$ARGV1" == "$ARGV2" ] kvm.original $@ -usbdevice host:0529:001 kvm.original $@
then
exec /usr/bin/
fi
exec /usr/bin/
Hope this helps someone.
Thanks anyway