Comment 2 for bug 1903470

Revision history for this message
Mark Karpelès (magicaltux) wrote :

Thanks for the response. I'm not sure, how would I run qemu with a fd= socketpair on the command line?

The wiki (https://wiki.qemu.org/index.php/Documentation/Networking) suggests for example to use:

-netdev socket,id=mynet0,listen=:1234
-netdev socket,id=mynet0,connect=:1234

This would allow however anyone on the same network (or in the world if run on a server) to connect to this network and possibly do bad things. Using localhost binding helps but is still risky if there is more than one user on a given machine. Using something like:

-netdev socket,id=mynet0,listen=~/.qemu-netsocket
-netdev socket,id=mynet0,connect=~/.qemu-netsocket

How would one do that with fd= ?