Virsh Vol: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
| + | =List a Volume Pool= | ||
| + | *virsh vol-list default | ||
| + | <pre> | ||
| + | Name Path | ||
| + | ------------------------------------------------------------------------------ | ||
| + | elan.foreman.lan-disk1 /var/lib/libvirt/images/elan.foreman.lan-disk1 | ||
| + | vol-new /var/lib/libvirt/images/vol-new | ||
| + | vol-new.qcow2 /var/lib/libvirt/images/vol-new.qcow2 | ||
| + | </pre> | ||
=Create a qcow2 image= | =Create a qcow2 image= | ||
*virsh vol-create-as default vol-new.qcow2 10G --format qcow2 | *virsh vol-create-as default vol-new.qcow2 10G --format qcow2 | ||
Version vom 18. Oktober 2017, 05:12 Uhr
List a Volume Pool
- virsh vol-list default
Name Path ------------------------------------------------------------------------------ elan.foreman.lan-disk1 /var/lib/libvirt/images/elan.foreman.lan-disk1 vol-new /var/lib/libvirt/images/vol-new vol-new.qcow2 /var/lib/libvirt/images/vol-new.qcow2
Create a qcow2 image
- virsh vol-create-as default vol-new.qcow2 10G --format qcow2
Create a raw image
- virsh vol-create-as default vol-new.raw 10G --format raw
Clone a Volume
- virsh vol-clone vol-new vol-clone