Add note about config file to README
This commit is contained in:
parent
e88bf31634
commit
6ccb983f10
1 changed files with 16 additions and 7 deletions
23
README.md
23
README.md
|
@ -8,11 +8,20 @@ Usage:
|
||||||
mkvm name [name [name]] [flags]
|
mkvm name [name [name]] [flags]
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-c, --cpu int the number of vCPU cores to assign to the VM (default 2)
|
-c, --cpu int the number of vCPU cores to assign to the VM (default 2)
|
||||||
-d, --disk int disk size (in GB) (default 25)
|
-d, --disk int disk size (in GB) (default 25)
|
||||||
-h, --help help for mkvm
|
-h, --help help for mkvm
|
||||||
--image string URL of the image to download (default "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2")
|
--image string URL of the image to download (default "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2")
|
||||||
-m, --memory int amount of memory (in MB) to assign to the VM (default 1024)
|
-m, --memory int amount of memory (in MB) to assign to the VM (default 1024)
|
||||||
-p, --packages stringArray packages to install on the VM
|
-p, --packages stringArray packages to install on the VM
|
||||||
-s, --ssh-keys stringArray SSH key(s) authorzed to access the VM
|
-s, --ssh-key-urls stringArray URL(s) to SSH key(s) authorzed to access the VM. Expected in authorized_keys format.
|
||||||
|
--ssh-keys stringArray SSH key(s) authorzed to access the VM
|
||||||
|
```
|
||||||
|
|
||||||
|
The default storage pool and network are used, unless overwridden by a config file at `~/.config/mkvm.yaml`. The following options are available:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
storage_pool: default # must match an active libvirt storage pool
|
||||||
|
network: default # the libvirt network to use
|
||||||
|
bridge: br0 # bridge interface to configure VMs to use instead of a libvirt network. Ignored if network is set.
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue