1.0.0-alpha.4 • Published 4 months ago

@nikitajs/lxd v1.0.0-alpha.4

Weekly downloads
73
License
MIT
Repository
github
Last release
4 months ago

Nikita "lxd" package

The "lxd" package provides Nikita actions for various LXD operations.

Running the test

The tests require a local LXD client. On a Linux hosts, you can follow the installation instructions. On non Linux hosts, you can setup the client to communicate with a remote LXD server hosted on a virtual machine. You will however have to mount the project directory into the "/nikita" folder of the virtual machine. The provided Vagrantfile definition inside "@nikitajs/core/env/cluster/assets" will set you up.

# For windows and MacOS users
./bin/cluster start
npm test

Usage

import "@nikitajs/lxd/register";
import nikita from "@nikitajs/core";

const {$status} = await nikita.lxc.init({
  image: "images:alpine/latest",
  container: "nikita-list-vm1",
  vm: true,
});
console.info("Machine was created:", $status);

Notes

Windows and MacOS users

LXD is only available on Linux. To work around this limitation, we run LXD in a virtual machine.

We provide a script to run LXD inside Multipass which also run on MacOS ARM architecture:

./assets/multipass.sh

Networks

The LXD tests create two bridge networks:

  • Nikita LXD public: nktlxdpub, 192.0.2.1/30 (reserved IP subnet ssigned as TEST-NET-1)
  • Nikita LXD private: nktlxdprv, 192.0.2.5/30 (reserved IP subnet ssigned as TEST-NET-1)

To avoid collision, other tests must create and use their own bridge.

1.0.0-alpha.4

4 months ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago

1.0.0-alpha.0

3 years ago

0.9.7

3 years ago

0.9.7-alpha.0

4 years ago

0.9.5

4 years ago

0.9.4

5 years ago

0.9.3

5 years ago

0.9.3-alpha.9

5 years ago

0.9.3-alpha.8

5 years ago

0.9.3-alpha.7

5 years ago

0.9.3-alpha.6

5 years ago

0.9.3-alpha.5

5 years ago

0.9.3-alpha.4

5 years ago

0.9.3-alpha.3

5 years ago

0.9.3-alpha.2

5 years ago

0.9.3-alpha.1

5 years ago