Use Vsock with Libzmq

(blog.remijouan.net)

45 points | by remijouannet 2 days ago

4 comments

  • dwrodri 10 hours ago
    I could see this being really useful for people who need VM-Sandboxed software, but also need quick and dirty bridges between host/guest. Great contribution!
  • zoobab 3 hours ago
    Preparing for the 10 years anniversary of Pieter Hintjens's disseapearance, the main author of Zeromq:

    http://hintjens.com/blog:125

  • remijouannet 2 days ago
    hi, i’ve recently contributed to libzmq by adding AF_VSOCK. if anyone is playing around with it
    • touisteur 3 hours ago
      Been hoping for some time someone would write it better than my local ugly hack. This immediately useful. Thanks a bunch.
  • sthustfo 8 hours ago
    What are the typical use cases for the Guest VM to talk to Hypervisor? I see 2 use cases mentioned on the Proxmox link (https://pve.proxmox.com/wiki/Qemu-guest-agent)

    1. shutdown the guest 2. freeze the guest system during backup/snapshot

    Just curious about other possible use cases.

    • donmcronald 4 hours ago
      I think it would be useful for backup testing. Lots of VM backup software will boot a restored VM and screenshot the login screen. That’s useless IMO because you could be screenshotting an outdated restore without realizing.

      I think you could boot a network disconnected VM and communicate over vsock to assess the guest health. You’d need an agent in the VM, but I think it'd be worth it.

    • touisteur 3 hours ago
      Building micromvs with no network support helps with isolation and (more) kernel surface reduction.
    • teravor 4 hours ago
      some VMMs just straight up translate vsock from the guest to UDS on the host.
    • orielhaim 1 hour ago
      [dead]