I am trying to boot a virtual machine with my a custom IP address using qemu-system-x86_64
. Referring to qemu-system-x86_64
's tutorials, I found this:
-net nic[,vlan=n][,macaddr=mac][,model=type] [,name=name][,addr=addr][,vectors=v] Create a new Network Interface Card and connect it to VLAN n (n = 0 is the default). The NIC is an e1000 by default on the PC target. -netdev user,id=id[,option][,option][,...]
-net user[,option][,option][,...]
Use the user mode network stack which requires no administrator privilege to run.
I am not able to understand the difference between these two options.
- What is a user mode network stack?
- And why do I need it?
- What is the difference between the
nic
anduser
parameters?