UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer nenghan
Observer
355 Views
Registered: ‎06-07-2018

Failed to fwd host port to qemu

Hi,

I booted up qemu and used the following command to expose the host port to qemu.
Petalinux-boot --qemu --kernel --qemu-args "-netdev user,id=n0,hostfwd=tcp::1534-:1534,hostfwd=tcp::5555-:22"

The qemu booted up and when I issue the ifconfig in qemu, I get the eth0 that was set to 10.0.2.15.

I was able to connect from the qemu to host via SSH (SSH admin@10.0.2.15)

However from the host, I can't connect to qemu through tcf-agent or SSH.

When I use xsdk and configure the Linux tcfagent with IP of localhost and port of 1534, it does not work

When I use terminal and attempt SSH to qemu (SSH localhost -p 5555) , it also can't connect.

Anyone have any inputs? Thanks

I'm using petalinux 2017.4 and project template of zynqmp.
Tags (2)
0 Kudos
2 Replies
Observer nenghan
Observer
351 Views
Registered: ‎06-07-2018

Re: Failed to fwd host port to qemu

Correction, should be 10.0.2.2 which is the gateway

I was able to connect from the qemu to host via SSH (SSH admin@10.0.2.2)

0 Kudos
Moderator
Moderator
295 Views
Registered: ‎09-12-2007

Re: Failed to fwd host port to qemu

Here is an old doc that might help others

0 Kudos