Commit 52f9750a authored by Heinz N. Gies's avatar Heinz N. Gies

Update README

parent c578083a
......@@ -61,16 +61,19 @@ Some of the steps above require a reboot, there is however no reason not just do
3. Build the binary `cargo build --release`
4. Copy the executable `cp target/release/vmadm /usr/local/sbin`
5. Create the jails folder: `mkdir /etc/jails`
6. Create the main config file: `echo 'pool = "zroot/jails"\n[networks]\nadmin = "bridge0"' > /etc/vmadm.toml`
7. Download a/the datase `curl -O https://s3.amazonaws.com/datasets.project-fifo.net/freebsd/e022d0f8-5630-11e7-b660-9b2d243d4404.xz`
8. Extract the dataset `xzcat e022d0f8-5630-11e7-b660-9b2d243d4404.xz | zfs receive zroot/jails/e022d0f8-5630-11e7-b660-9b2d243d4404`
9. Create a jail: cat example.json | vmadm create
6. Create the images folder `mkdir -p /var/imgadm/images`
7. Create the main config file: `echo 'pool = "zroot/jails"\n[networks]\nadmin = "bridge0"' > /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
The devfs ruleset to used can be adjusted in the `/etc/vmadm.toml` by adding `devfs_ruleset = <rule number>`.
## usage
```
vmadm 0.1.0
Heinz N. Gies <heinz@project-fifo.net>
vmadm compatible jail manager
USAGE:
......@@ -88,6 +91,8 @@ SUBCOMMANDS:
delete deletes a jail
get gets a jails configuration
help Prints this message or the help of the given subcommand(s)
images image subcommands
info gets a info for a hardware virtualized vm
list lists jails
reboot reboot a jail
start starts a jail
......
use std::io::Read;
use std::error::Error;
use std::fs::File;
......
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