| Crates.io | verne |
| lib.rs | verne |
| version | 0.1.0 |
| created_at | 2017-05-27 11:14:43.616169+00 |
| updated_at | 2017-08-02 14:52:22.704919+00 |
| description | A human virtual resources creator from templates |
| homepage | |
| repository | |
| max_upload_size | |
| id | 16489 |
| size | 27,496 |
Currently only libvirt is supported as driver. It provided ability
create resource with QEMU, LXC and much more (see:
http://libvirt.org).
Make sure to have libvirt-dev or libvirt-devel package (or the
development files otherwise somewhere in your include path).
For using LXC, please consider to build libvirt with LXC or install the related packages.
# cat > ~/simple.yaml <<EOF
guest:
- name: myguest
memory: 2048 # KiB
vcpus: 1
- name: yourguest
memory: 2048 # KiB
vcpus: 2
EOF
# verne create ~/simple.yaml
# verne clean ~/simple.yaml
In this example Verne is using the default driver libvirt and
default template parser Yaml.
The default connection used by libvirt is generally qemu:///system,
it will be possible to use an other connection by using the argument
uri.
# verne create ~/simple.yaml --uri test:///default
# verne clean ~/simple.yaml --uri test:///default
An other solution to set the default uri is to use the environement
variable LIBVIRT_DEFAULT_URI.
Because Verne is using libvirt it will be possible to create LXC
containers.
# export LIBVIRT_DEFAULT_URI=lxc:///
# verne create ~/simple.yaml
# verne clean ~/simple.yaml