Wrappers between old lxc-xx commands and lxc client command?

Are there wrappers to simulate old lxc-xxx commands from lxc /lxd client command? Lot of third party apps use old lxc-commands, not new lxc/lxd ones.

1 Like

It could be possible to write some shell aliases for that purpose.
However, is there such a need for that (compared to adapting to LXD)? Can you name a few of those third-party apps that use old LXC commands?

saltstack and other configuration managers use lxc commands, not lxd 's one.

jcloud too (apache cloudstack etc…). Of course it would be far better to use lxd client but too long to adapt. wrappers could be sufficient, to begin with.

We need a proper list here.

  1. Saltstack can be found at https://github.com/saltstack/salt Searching through the documentation, it shows there is (at least) some support for LXD, https://docs.saltstack.com/en/develop/ref/modules/all/salt.modules.lxd.html It would be nice to have a standalone howto/tutorial on using the LXD mode with Saltstack.
  2. jclouds is at https://github.com/jclouds/jclouds There is no reference about LXD. What we need here is some link that shows the LXC support in the source code. Having such a link (easy task) would be a starting point.

salt lxd module is in develop branch only.

for production environment, there are lxc module for salt-cloud (https://docs.saltstack.com/en/latest/topics/cloud/lxc.html) and a salt formulas : lxc and lxd. lxc module / formula use external lxc-xx client commands.

for jclouds sorry it is apache cloudstack which uses jclouds too but for lxc it uses libvirt.