5.2.5. Starting QEMU in User-Space NFS Mode

To start the QEMU emulator from within Eclipse, follow these steps:

Note

See the "Using the Quick EMUlator (QEMU)" chapter in the Yocto Project Development Tasks Manual for more information on using QEMU.

  1. Expose and select "External Tools Configurations ..." from the "Run -> External Tools" menu.

  2. Locate and select your image in the navigation panel to the left (e.g. qemu_i586-poky-linux).

  3. Click "Run" to launch QEMU.

    Note

    The host on which you are running QEMU must have the rpcbind utility running to be able to make RPC calls on a server on that machine. If QEMU does not invoke and you receive error messages involving rpcbind, follow the suggestions to get the service running. As an example, on a new Ubuntu 16.04 LTS installation, you must do the following in a new shell in order to get QEMU to launch:
         $ sudo apt-get install rpcbind
                                
    After installing rpcbind, you need to edit the /etc/init.d/rpcbind file to include the following line:
         OPTIONS="-i -w"
                                
    After modifying the file, you need to start the service:
         $ sudo service portmap restart
                                

  4. If needed, enter your host root password in the shell window at the prompt. This sets up a Tap 0 connection needed for running in user-space NFS mode.

  5. Wait for QEMU to launch.

  6. Once QEMU launches, you can begin operating within that environment. One useful task at this point would be to determine the IP Address for the user-space NFS by using the ifconfig command. The IP address of the QEMU machine appears in the xterm window. You can use this address to help you see which particular IP address the instance of QEMU is using.