Qemu Networking

less than 1 minute read

Qemu Network Documentation

There are two parts to networking within QEMU:

  • the virtual network device that is provided to the guest (e.g. a PCI network card).
  • the network backend that interacts with the emulated NIC (e.g. puts packets onto the host’s network).

There are a range of options for each part. By default QEMU will create a SLiRP user network backend and an appropriate virtual network device for the guest (eg an E1000 PCI card for most x86 PC guests), as if you had typed -net nic -net user on your command line.

qemu start raspberry

refer tutorial

qemu-system-arm -M versatilepb \
  -cpu arm1176 \
  -m 256 \
  -serial stdio \
  -hda 2017-04-10-raspbian-jessie.img \
  -net nic \
  -net "user,hostfwd=tcp::5022-:22" \
  -kernel kernel-qemu-4.4.34-jessie \
  -append 'root=/dev/sda2 panic=1' \