cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
645 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
Highlighted
Observer
Observer
641 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
Highlighted
Moderator
Moderator
585 Views
Registered: ‎09-12-2007

Re: Failed to fwd host port to qemu

Here is an old doc that might help others

0 Kudos