Manually update IP address of machine in LXD database

, ,

I’m running a Windows HVM under LXD. Since the LXD agent doesn’t operate on Windows, does anybody know if it’s possible to update/set the IP address of an HVM machine in the LXD database so when I issue lxc list the IP shows up in the IPV4 column?

Thanks!

Nope.

LXD considers two sources for that field:

  • Live running data from the agent (not available for Windows yet)
  • DHCP lease on a LXD managed network

If you’re using static addressing or an external DHCP server, then LXD indeed would not show anything.

(The address information is never stored in the LXD database, it’s always fetched live from either of those two sources, so you can’t really cheat and inject the address anywhere :))

Ok cool, this makes sense.

You mentioned a Windows agent isn’t available “yet”. Is that in the works?

Yeah, we fully intend to have the agent work on Windows.

The main blocker at this time is vsock driver availability on Windows.
Initial code has landed in the Windows drivers on Github but we haven’t yet seen a working build of those. Once we have vsock working on Windows, we should be able to port the agent easily enough.

2 Likes