hi, i have an vm-image.img . i used to launch my virtual machine through qemu and access it through vncviwer . now i dont want to use vncviwer . now my question is 1. if i want to access my instance launched with the below command .How can i do that . 2. can i assign an ip address to the interface in vm through the command line arguments . 3. Is there any way to run some script in the vm . and the script file can be passed as an argument to qemu command-line .
/x86_64-softmmu/qemu-system-x86_64 -cpu host -boot c -hda /home/vm-images/vm-image.img -m 3072M -smp 2 --enable-kvm -name 'VM-1' -nographic -vnc :1 -pidfile /tmp/vm1.pid -drive file=fat:rw:/tmp/qemu_share -monitor unix:/tmp/vm1monitor,server,nowait -net nic -net tap,ifname=tap0,script=no thanks, srinivas.