Commit 0cac771d authored by Bartek Rutkowski's avatar Bartek Rutkowski Committed by Heinz N. Gies

Fix documentation instructions on building vmadm (#39)

parent 0487e767
......@@ -58,16 +58,15 @@ Some of the steps above require a reboot, there is however no reason not just do
## installation
1. Install rust (https://rustup.rs/)
2. Clone this repository
3. Build the binary `cargo build --release`
4. Copy the executable `cp target/release/vmadm /usr/local/sbin`
1. Install rust (https://rustup.rs/) and cargo: `pkg install rust cargo`
2. Clone this repository using Git or download it as a Zip archive
3. Build the vmadm binary: `cargo build --release`
4. Copy the executable: `cp target/release/vmadm /usr/local/sbin`
5. Create the jails folder: `mkdir /usr/local/etc/vmadm`
6. Create the images folder `mkdir -p /var/imgadm/images`
6. Create the images folder: `mkdir -p /var/imgadm/images`
7. Create the main config file: `echo 'pool = "zroot/jails"\n[networks]\nadmin = "bridge0"' > /usr/local/etc/vmadm.toml`
8. Download a/the datase `curl -O https://s3.amazonaws.com/datasets.project-fifo.net/freebsd/e022d0f8-5630-11e7-b660-9b2d243d4404.xz`
9. Extract the dataset `xzcat e022d0f8-5630-11e7-b660-9b2d243d4404.xz | zfs receive zroot/jails/e022d0f8-5630-11e7-b660-9b2d243d4404`
10. Create a jail: cat example.json | vmadm create
8. Import a dataset using `vmadm images avail` and `vmadm images import`.
9. Create a jail: `cat example.json | vmadm create`
The devfs ruleset to used can be adjusted in the `/usr/local/etc/vmadm.toml` by adding `devfs_ruleset = <rule number>`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment