mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-12-18 02:50:54 +00:00
801 B
801 B
To use lxd vm's:
-
run
tests/bin/lx_setup.sh. This only needs to be run once. -
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:
-
It's helpful to have
vlxin your path. vlx is a tool that makeslxcact a little like vagrant. In bash, create an alias for it: `alias vlx="$(pwd)/tests/bin/vlx" -
set your working directory to the vm directory you'd like to start (eg.
cd "tests/lxd/vanilla"), then runvlx up -
to access the vm:
vlx shellorvlx 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 -
to destroy/delete the vm:
vlx destroy