1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00
mailinabox/tests/lxd
2024-09-02 17:17:02 -04:00
..
preloaded change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
remote-nextcloud-docker change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
remote-nextcloud-docker-ehdd change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
unsetvars change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
upgrade change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
upgrade-from-upstream change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
vanilla change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
.gitignore change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
.provision_defaults change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
parallel-boxlist.all change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
parallel-boxlist.default change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
parallel.sh change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00
README.md change from vagrant to lxd as the virtualization system 2024-09-02 17:17:02 -04:00

To use lxd vm's:

  1. run tests/bin/lx_setup.sh. This only needs to be run once.

  2. run tests/lxd/preloaded/create_preloaded.sh. Run this anytime a new base image is updated (usually when ubuntu updates would require a system reboot).

To bring up a vm:

  1. It's helpful to have vlx in your path. vlx is a tool that makes lxc act a little like vagrant. In bash, create an alias for it: `alias vlx="$(pwd)/tests/bin/vlx"

  2. set your working directory to the vm directory you'd like to start (eg. cd "tests/lxd/vanilla"), then run vlx up

  3. to access the vm: vlx shell or vlx ssh. all vm's have the source root mounted at /cloudinabox or /mailinabox, so you can change files locally and they'll be available on the vm for testing

  4. to destroy/delete the vm: vlx destroy