stratovirt-img is an offline tool for virtual disks.
Usage:
stratovirt-img command [command options]
Command parameters:
Following commands are supported now:
Create virtual disk with different format. Command syntax:
create [-f fmt] [-o options] img_path img_size
Sample Configuration:
stratovirt-img create -f raw img_path img_size
stratovirt-img create -f qcow2 -o cluster-size=65536 img_path img_size
Note: 1. The cluster size can be only be set for qcow2
or default to 65536. 2. Disk format is default to raw.
Check if there are some mistakes on the image and choose to fix. Command syntax:
check [-r {leaks|all}] [-no_print_error] [-f fmt] img_path
leaks
means only the leaked cluster will be fixed, all
means all repairable mistake will be fixed.Sample Configuration:
stratovirt-img check img_path
Note: The command of check is not supported by raw format.
Change the virtual size of the disk.
+size
means increase from old size, while size
means resize to new size.Command syntax:
resize [-f fmt] img_path [+]size
Sample Configuration:
stratovirt-img resize -f qcow2 img_path +size
stratovirt-img resize -f raw img_path +size
Note: Shrink operation is not supported now.
Operating internal snapshot for disk, it is only supported by qcow2. Command syntax:
snapshot [-l | -a snapshot_name | -c snapshot_name | -d snapshot_name] img_path
Sample Configuration:
stratovirt-img snapshot -c snapshot_name img_path
stratovirt-img snapshot -a snapshot_name img_path
stratovirt-img snapshot -d snapshot_name img_path
stratovirt-img snapshot -l img_path
Note: The internal snapshot is not supported by raw.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарий ( 0 )