Specifying the QEMU Virtual Subnet - 2022.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
Release Date
2022.2 English

By default, PetaLinux uses 192.168.10.* as the QEMU virtual subnet in --root mode. If it has been used by your local network or other virtual subnet, you may wish to use another subnet. You can configure PetaLinux to use other subnet settings for QEMU by running petalinux-boot as follows on the command console:

Note: This feature requires sudo access on the local machine, and must be used with the --root option.
$ petalinux-boot --qemu --root --u-boot --subnet <subnet gateway IP>/
<number of the bits of the subnet mask>

For example, to use subnet 192.168.20.*:

$ petalinux-boot --qemu --root --u-boot --subnet