You are not logged in.
Hello,
my virtual machine does not have any network devices, when I explicitly give a netdev user,id=... (which is the default, when I remember correctly). This is the commandline which I tried:
qemu-system-x86_64 -enable-kvm -smp 2 -m 384 -netdev user,id=guestnet,restrict=off,net=192.168.1.0/24,dhcpstart=192.168.1.5,hostfwd=tcp::12345-:22 serverBut lspci and ip link don't show any devices. This commandline has exactly the same effect (and this should be the default, when no option is given):
qemu-system-x86_64 -enable-kvm -smp 2 -m 384 -netdev user,id=guestnet serverMy guest only finds a network device when there are no netdev user,id=... arguments.
What is wrong with the command lines above?
Thanks for your help.
Last edited by Rachus (2013-06-02 10:45:07)
Offline
add
-net nicOffline
IIRC each -netdev argument needs a corresponding -device argument. Here's an example.. This seems to be the newer, preffered method compared to -net and is used by libvirt. There may be no difference for user mode networking though.
Offline
add
-net nic
Well, then I have a device, but the dhcp server of qemu does not work anymore.
IIRC each -netdev argument needs a corresponding -device argument. Here's an example.. This seems to be the newer, preffered method compared to -net and is used by libvirt. There may be no difference for user mode networking though.
Thanks, works perfectly. Sometimes it is hard to find something in the documentation.
Offline