LINUX.ORG.RU

История изменений

Исправление Pinkbyte, (текущая версия) :

ЕМНИП NAT на хостовой системе для -netdev user настраивать не надо, об этом и в документации сказано:

User Networking is implemented using "slirp", which provides a full TCP/IP stack within QEMU and uses that stack to implement a virtual NAT'd network.

By default, QEMU uses the 10.0.2.X/24 network and runs a gateway at 10.0.2.2. All traffic intended for the host network has to travel through this gateway, which will filter out packets based on the QEMU command line parameters. This gateway also functions as a DHCP server for all GOS, allowing them to be automatically assigned with an IP address starting from 10.0.2.15.

Натом заведует сам slirp. В этом и смысл - в возможности сделать сеть запуская qemu из под непривилигерованного пользователя, у которого нет доступа к изменению sysctl и/или файрвола на хостовой системе.

Исходная версия Pinkbyte, :

ЕМНИП NAT на хостовой системе для -netdev user настраивать не надо, об этом и в документации сказано:

User Networking is implemented using "slirp", which provides a full TCP/IP stack within QEMU and uses that stack to implement a virtual NAT'd network.

By default, QEMU uses the 10.0.2.X/24 network and runs a gateway at 10.0.2.2. All traffic intended for the host network has to travel through this gateway, which will filter out packets based on the QEMU command line parameters. This gateway also functions as a DHCP server for all GOS, allowing them to be automatically assigned with an IP address starting from 10.0.2.15.

Натом заведует сам slirp