Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to identify each KVM instance as it is started up, and one of the ways that i figured i can do this is pass IP address into the KVM in the command line arguments. However, i can't seem to do that for some reason. I used the following command:

kvm -smp 1 -vnc :3 -net net= -daemonize -drive file="master.qcow2" "$@"

Where it gives me an error:

No type specified for -net

Anyone have any solution for this problem or the more general problem of identifying kvm instances?

thanks a lot!


share|improve this question
What do you mean by "identify"? – sciurus May 12 '11 at 2:05

-net nic[,model=<adapter_model>][,macaddr=<mac>][...] This is the actual code, no IP address can be specified here. a VM is actually a standalone machine, which behaves like a physical host. If you absolutely need to specify IPs per VM, you can specify the MAC, and set up your DHCP to assign the right IP to the assigned MAC

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.