git clone https://github.com/jack9603301/vyos-on-lxd
mkdir vyos && cd vyos
wget https://downloads.vyos.io/release/1.1.8/vyos-1.1.8-amd64.iso
mkdir rootfs
sudo mount -o loop vyos-1.1.8-amd64.iso rootfs
cp rootfs/live/filesystem.squashfs ../vyos-on-lxd/vyos.squashfs
cd ../vyos-on-lxd/
Check the yaml file in the project directory and replace it with the squashfs directory.
If necessary, you can modify other parts of the file, but only when you are clear about the LXD image build process and its meaning.
Please choose the appropriate method for your operating system to install the following dependencies:
- squashfs-tools
- distrobuilder(LXC/LXD image build tool)
make pack-lxc
make pack-lxd
Must run in physical NIC pass-through mode It is recommended to execute the container in privileged mode This is currently only an initial implementation!