qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting host forwarding information using QMP or other means


From: Alex Bennée
Subject: Re: Getting host forwarding information using QMP or other means
Date: Wed, 19 Oct 2022 17:03:36 +0100
User-agent: mu4e 1.9.1; emacs 28.2.50

jochen@seeber.me writes:

> Hi,
>
> I am running QEMU with a user network and hostfwd, but without
> specifying a host port. QEMU therefor picks a random port, and I would
> now like to query what port it picked.
>
> The preferred way would be to use QMP, is this possible? I only found
> "netdev_add" and "netdev_del", but no "query-netdevs" or something
> like that in the docs.
>
> If QMP does not allow this, is there another way to get the port?

The HMP offers "info usernet" which is used by the tests. It doesn't
look like you can get that via QMP.

>
> Regards,
> Jochen


-- 
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]