All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket
@ 2020-11-09  1:57 Mark Karpeles
  2020-11-18  8:46 ` [Bug 1903470] " elmarco
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Mark Karpeles @ 2020-11-09  1:57 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Note: this is a feature request.

qemu has a way to connect instances using a socket:

-netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

This can also be used to connect a qemu instance to something else using
a socket connection, however there is no authentication or security to
the connection, so rather than using a port which can be accessed by any
user on the machine, having the ability to use or connect to UNIX
sockets would be helpful, and adding this option should be fairly
trivial.

UNIX sockets can be found in various parts of qemu (monitor, etc) so I
believe having this on network would make sense.

** Affects: qemu
     Importance: Undecided
         Status: New

** Description changed:

+ Note: this is a feature request.
+ 
  qemu has a way to connect instances using a socket:
  
  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]
  
  This can also be used to connect a qemu instance to something else using
  a socket connection, however there is no authentication or security to
  the connection, so rather than using a port which can be accessed by any
  user on the machine, having the ability to use or connect to UNIX
  sockets would be helpful, and adding this option should be fairly
  trivial.
  
  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  New

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
@ 2020-11-18  8:46 ` elmarco
  2020-11-18 10:32 ` Thomas Huth
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: elmarco @ 2020-11-18  8:46 UTC (permalink / raw)
  To: qemu-devel

With the fd= argument/property, you can setup a private socketpair
connection already. Is this enough?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  New

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
  2020-11-18  8:46 ` [Bug 1903470] " elmarco
@ 2020-11-18 10:32 ` Thomas Huth
  2020-11-18 11:49 ` Mark Karpelès
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Thomas Huth @ 2020-11-18 10:32 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  Incomplete

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
  2020-11-18  8:46 ` [Bug 1903470] " elmarco
  2020-11-18 10:32 ` Thomas Huth
@ 2020-11-18 11:49 ` Mark Karpelès
  2021-01-18  4:17 ` Launchpad Bug Tracker
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Karpelès @ 2020-11-18 11:49 UTC (permalink / raw)
  To: qemu-devel

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= ?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  Incomplete

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
                   ` (2 preceding siblings ...)
  2020-11-18 11:49 ` Mark Karpelès
@ 2021-01-18  4:17 ` Launchpad Bug Tracker
  2022-12-06 16:33 ` Yury Bushmelev
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Launchpad Bug Tracker @ 2021-01-18  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  Expired

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
                   ` (3 preceding siblings ...)
  2021-01-18  4:17 ` Launchpad Bug Tracker
@ 2022-12-06 16:33 ` Yury Bushmelev
  2022-12-06 17:27 ` Laurent Vivier
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Yury Bushmelev @ 2022-12-06 16:33 UTC (permalink / raw)
  To: qemu-devel

JFYI I miss the ability to use Unix socket right now.. I'm trying to use
vagrant + vagrant-qemu + socket_vmnet on Macbook m1. It'd be MUCH easier
to connect QEMU to the socket_vmnet' Unix socket directly w/o any
wrappers..

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  Expired

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
                   ` (4 preceding siblings ...)
  2022-12-06 16:33 ` Yury Bushmelev
@ 2022-12-06 17:27 ` Laurent Vivier
  2022-12-06 17:34 ` Laurent Vivier
  2023-04-15  6:37 ` Mark Karpelès
  7 siblings, 0 replies; 9+ messages in thread
From: Laurent Vivier @ 2022-12-06 17:27 UTC (permalink / raw)
  To: qemu-devel

This will be available in the next QEMU release (7.2) under a sligthly
different form:

"-netdev stream" for TCP socket and "-netdev dgram" for UDP socket.

Both support inet and unix sockets. See qemu(1).

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  Expired

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
                   ` (5 preceding siblings ...)
  2022-12-06 17:27 ` Laurent Vivier
@ 2022-12-06 17:34 ` Laurent Vivier
  2023-04-15  6:37 ` Mark Karpelès
  7 siblings, 0 replies; 9+ messages in thread
From: Laurent Vivier @ 2022-12-06 17:34 UTC (permalink / raw)
  To: qemu-devel

This was added to support passt:

https://passt.top

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  Expired

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 1903470] Re: qemu 5.1.0: Add UNIX socket support for netdev socket
  2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
                   ` (6 preceding siblings ...)
  2022-12-06 17:34 ` Laurent Vivier
@ 2023-04-15  6:37 ` Mark Karpelès
  7 siblings, 0 replies; 9+ messages in thread
From: Mark Karpelès @ 2023-04-15  6:37 UTC (permalink / raw)
  To: qemu-devel

Despite what is said in an earlier comment, qemu(1) has no information
on -netdev stream or -netdev dgram.

The best help I could find comes from the patch description:

https://patchew.org/QEMU/20221021090922.170074-1-lvivier@redhat.com/

Example use:

-netdev stream,id=socket0,server=off,addr.type=unix,addr.path=/tmp/qemu0

Also useful to note that the reconnect argument is only going to be
available in qemu 8.0.0 (not released yet)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1903470

Title:
  qemu 5.1.0: Add UNIX socket support for netdev socket

Status in QEMU:
  Expired

Bug description:
  Note: this is a feature request.

  qemu has a way to connect instances using a socket:

  -netdev socket,id=str[,fd=h][,listen=[host]:port][,connect=host:port]

  This can also be used to connect a qemu instance to something else
  using a socket connection, however there is no authentication or
  security to the connection, so rather than using a port which can be
  accessed by any user on the machine, having the ability to use or
  connect to UNIX sockets would be helpful, and adding this option
  should be fairly trivial.

  UNIX sockets can be found in various parts of qemu (monitor, etc) so I
  believe having this on network would make sense.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1903470/+subscriptions



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-04-15  6:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09  1:57 [Bug 1903470] [NEW] qemu 5.1.0: Add UNIX socket support for netdev socket Mark Karpeles
2020-11-18  8:46 ` [Bug 1903470] " elmarco
2020-11-18 10:32 ` Thomas Huth
2020-11-18 11:49 ` Mark Karpelès
2021-01-18  4:17 ` Launchpad Bug Tracker
2022-12-06 16:33 ` Yury Bushmelev
2022-12-06 17:27 ` Laurent Vivier
2022-12-06 17:34 ` Laurent Vivier
2023-04-15  6:37 ` Mark Karpelès

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.