tldr/pages/common/virsh-pool-define-as.md

10 lines
545 B
Markdown
Raw Normal View History

2021-05-27 20:21:39 +01:00
# virsh-pool-define-as
> Create a configuration file in `/etc/libvirt/storage` for a persistent virtual machine storage pool from the provided arguments.
> See also: `virsh`.
> More information: <https://manned.org/virsh>.
2021-05-27 20:34:09 +01:00
- Create the configuration file for a storage pool called pool_name using `/var/vms` as the underlying storage system (use `virsh pool-build` to create the underlying storage system and use `virsh pool-start` to start the inactive pool):
2021-05-27 20:21:39 +01:00
`virsh pool-define-as --name {{pool_name}} --type {{dir}} --target {{/var/vms}}`