Discussion:
[ovirt-users] Clone and export VM by ovirt-shell
v***@MegaFon.ru
2016-09-29 11:38:47 UTC
Permalink
I use ovirt 3.6.
How can I clone vm from snapshot.
I want to do it by ovirt-shell.
And after this I want to export VM.

I can't get information help for vm clone.
And I don't understand help action export.

Give me please example for this command's.

help action vm clone

============================================================================ ERROR ==========================================================================
vm clone does not exist.
=============================================================================================================================================================


ìÁÍÙËÉÎ ÷ÁÓÉÌÉÊ
óÔÁÒÛÉÊ ÉÎÖÅÎÅÒ ÐÏ ÜËÓÐÌÕÁÔÁÃÉÉ ÓÅÒ×ÉÓÎÙÈ ÐÌÁÔÆÏÒÍ
óÔÏÌÉÞÎÙÊ Æ-ÁÌ ðáï "íÅÇÁæÏÎ

+7 (926) 500-3308
[íÅÇÁæÏÎ ÌÏÇÏ+ÚÎÁË òõó B2C]


________________________________

éÎÆÏÒÍÁÃÉÑ × ÜÔÏÍ ÓÏÏÂÝÅÎÉÉ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÉÓËÌÀÞÉÔÅÌØÎÏ ÄÌÑ ËÏÎËÒÅÔÎÙÈ ÌÉÃ, ËÏÔÏÒÙÍ ÏÎÁ ÁÄÒÅÓÏ×ÁÎÁ. ÷ ÓÏÏÂÝÅÎÉÉ ÍÏÖÅÔ ÓÏÄÅÒÖÁÔØÓÑ ËÏÎÆÉÄÅÎÃÉÁÌØÎÁÑ ÉÎÆÏÒÍÁÃÉÑ, ËÏÔÏÒÁÑ ÎÅ ÍÏÖÅÔ ÂÙÔØ ÒÁÓËÒÙÔÁ ÉÌÉ ÉÓÐÏÌØÚÏ×ÁÎÁ ËÅÍ-ÌÉÂÏ, ËÒÏÍÅ ÁÄÒÅÓÁÔÏ×. åÓÌÉ ×Ù ÎÅ ÁÄÒÅÓÁÔ ÜÔÏÇÏ ÓÏÏÂÝÅÎÉÑ, ÔÏ ÉÓÐÏÌØÚÏ×ÁÎÉÅ, ÐÅÒÅÁÄÒÅÓÁÃÉÑ, ËÏÐÉÒÏ×ÁÎÉÅ ÉÌÉ ÒÁÓÐÒÏÓÔÒÁÎÅÎÉÅ ÓÏÄÅÒÖÁÎÉÑ ÓÏÏÂÝÅÎÉÑ ÉÌÉ ÅÇÏ ÞÁÓÔÉ ÎÅÚÁËÏÎÎÏ É ÚÁÐÒÅÝÅÎÏ. åÓÌÉ ÷Ù ÐÏÌÕÞÉÌÉ ÜÔÏ ÓÏÏÂÝÅÎÉÅ ÏÛÉÂÏÞÎÏ, ÐÏÖÁÌÕÊÓÔÁ, ÎÅÚÁÍÅÄÌÉÔÅÌØÎÏ ÓÏÏÂÝÉÔÅ ÏÔÐÒÁ×ÉÔÅÌÀ Ï ÜÔÏÍ É ÕÄÁÌÉÔÅ ÓÏ ×ÓÅÍ ÓÏÄÅÒÖÉÍÙÍ ÓÁÍÏ ÓÏÏÂÝÅÎÉÅ É ÌÀÂÙÅ ×ÏÚÍÏÖÎÙÅ ÅÇÏ ËÏÐÉÉ É ÐÒÉÌÏÖÅÎÉÑ.

The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. The contents may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient(s), any use, disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you have received this communication in error please notify us immediately by responding to this email and then delete the e-mail and all attachments and any copies thereof.

(c)20mf50
Juan Hernández
2016-09-29 12:33:29 UTC
Permalink
Post by v***@MegaFon.ru
I use ovirt 3.6.
How can I clone vm from snapshot.
I want to do it by ovirt-shell.
And after this I want to export VM.
I can’t get information help for vm clone.
And I don’t understand help action export.
Give me please example for this command’s.
In the oVirt API what you intend to do is achieved adding a virtual
machine, and specifying the identifier of the snapshot that you want to use:

add vm --name myvm --cluster-name mycluster --snapshots-snapshot
"snapshot.id=935d92a0-2f04-4ab6-ab71-f578a22ca788"

Once you have created that virtual machine you can export it like this:

action vm myvm export --storage_domain-name myexport
Post by v***@MegaFon.ru
help action vm clone
============================================================================
ERROR
==========================================================================
vm
clone does not exist.
=============================================================================================================================================================
*Ламыкин Василий*
Старший инженер по эксплуатации сервисных платформ
Столичный ф-ал ПАО "МегаФон
+7 (926) 500-3308
МегаФон лого+знак РУС B2C
------------------------------------------------------------------------
Информация в этом сообщении предназначена исключительно для конкретных
лиц, которым она адресована. В сообщении может содержаться
конфиденциальная информация, которая не может быть раскрыта или
использована кем-либо, кроме адресатов. Если вы не адресат этого
сообщения, то использование, переадресация, копирование или
распространение содержания сообщения или его части незаконно и
запрещено. Если Вы получили это сообщение ошибочно, пожалуйста,
незамедлительно сообщите отправителю об этом и удалите со всем
содержимым само сообщение и любые возможные его копии и приложения.
The information contained in this communication is intended solely for
the use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally
privileged information. The contents may not be disclosed or used by
anyone other than the addressee. If you are not the intended
recipient(s), any use, disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it is prohibited and may be
unlawful. If you have received this communication in error please notify
us immediately by responding to this email and then delete the e-mail
and all attachments and any copies thereof.
(c)20mf50
_______________________________________________
Users mailing list
http://lists.ovirt.org/mailman/listinfo/users
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
v***@MegaFon.ru
2016-09-29 13:17:05 UTC
Permalink
THANK'S
And next question:
How can I remove snapshot from ovirt-shell?
I try
remove snapshot {snapshot-name} --parent-vm-name {vm-name}
remove snapshot snapshot.id={snapshot.id} --parent-vm-name {vm-name}
but result is
============================================================================ ERROR ==========================================================================
snapshot {snapshot-name} does not exist.
=============================================================================================================================================================

And

============================================================================ ERROR ==========================================================================
snapshot snapshot.id={snapshot.id} does not exist.
=============================================================================================================================================================

I see my snapshot's in list snapshots --parent-vm {vm-name}

Ламыкин Василий
Старший инженер по эксплуатации сервисных платформ
Столичный ф-ал ПАО "МегаФон

+7 (926) 500-3308



-----Original Message-----
From: Juan Hernández [mailto:***@redhat.com]
Sent: Thursday, September 29, 2016 3:33 PM
To: Vasily Lamykin (MSK) <***@MegaFon.ru>; ***@ovirt.org
Subject: Re: [ovirt-users] Clone and export VM by ovirt-shell
Post by v***@MegaFon.ru
I use ovirt 3.6.
How can I clone vm from snapshot.
I want to do it by ovirt-shell.
And after this I want to export VM.
I can’t get information help for vm clone.
And I don’t understand help action export.
Give me please example for this command’s.
In the oVirt API what you intend to do is achieved adding a virtual machine, and specifying the identifier of the snapshot that you want to use:

add vm --name myvm --cluster-name mycluster --snapshots-snapshot "snapshot.id=935d92a0-2f04-4ab6-ab71-f578a22ca788"

Once you have created that virtual machine you can export it like this:

action vm myvm export --storage_domain-name myexport
Post by v***@MegaFon.ru
help action vm clone
======================================================================
======
ERROR
======================================================================
====
vm
clone does not exist.
======================================================================
======================================================================
=================
*Ламыкин Василий*
Старший инженер по эксплуатации сервисных платформ
Столичный ф-ал ПАО "МегаФон
+7 (926) 500-3308
МегаФон лого+знак РУС B2C
----------------------------------------------------------------------
--
Информация в этом сообщении предназначена исключительно для конкретных
лиц, которым она адресована. В сообщении может содержаться
конфиденциальная информация, которая не может быть раскрыта или
использована кем-либо, кроме адресатов. Если вы не адресат этого
сообщения, то использование, переадресация, копирование или
распространение содержания сообщения или его части незаконно и
запрещено. Если Вы получили это сообщение ошибочно, пожалуйста,
незамедлительно сообщите отправителю об этом и удалите со всем
содержимым само сообщение и любые возможные его копии и приложения.
The information contained in this communication is intended solely for
the use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally
privileged information. The contents may not be disclosed or used by
anyone other than the addressee. If you are not the intended
recipient(s), any use, disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it is prohibited and may
be unlawful. If you have received this communication in error please
notify us immediately by responding to this email and then delete the
e-mail and all attachments and any copies thereof.
(c)20mf50
_______________________________________________
Users mailing list
http://lists.ovirt.org/mailman/listinfo/users
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

________________________________

Информация в этом сообщении предназначена исключительно для конкретных лиц, которым она адресована. В сообщении может содержаться конфиденциальная информация, которая не может быть раскрыта или использована кем-либо, кроме адресатов. Если вы не адресат этого сообщения, то использование, переадресация, копирование или распространение содержания сообщения или его части незаконно и запрещено. Если Вы получили это сообщение ошибочно, пожалуйста, незамедлительно сообщите отправителю об этом и удалите со всем содержимым само сообщение и любые возможные его копии и приложения.

The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. The contents may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient(s), any use, disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you have received this communication in error please notify us immediately by responding to this email and then delete the e-mail and all attachments and any copies thereof.

(c)20mf50
Juan Hernández
2016-09-29 16:28:40 UTC
Permalink
Post by v***@MegaFon.ru
THANK'S
How can I remove snapshot from ovirt-shell?
I try
remove snapshot {snapshot-name} --parent-vm-name {vm-name}
remove snapshot snapshot.id={snapshot.id} --parent-vm-name {vm-name}
but result is
============================================================================ ERROR ==========================================================================
snapshot {snapshot-name} does not exist.
=============================================================================================================================================================
And
============================================================================ ERROR ==========================================================================
snapshot snapshot.id={snapshot.id} does not exist.
=============================================================================================================================================================
I see my snapshot's in list snapshots --parent-vm {vm-name}
Should be something like this:

remove snapshot 935d92a0-2f04-4ab6-ab71-f578a22ca788 --parent-vm-name myvm
Post by v***@MegaFon.ru
-----Original Message-----
Sent: Thursday, September 29, 2016 3:33 PM
Subject: Re: [ovirt-users] Clone and export VM by ovirt-shell
Post by v***@MegaFon.ru
I use ovirt 3.6.
How can I clone vm from snapshot.
I want to do it by ovirt-shell.
And after this I want to export VM.
I can’t get information help for vm clone.
And I don’t understand help action export.
Give me please example for this command’s.
add vm --name myvm --cluster-name mycluster --snapshots-snapshot "snapshot.id=935d92a0-2f04-4ab6-ab71-f578a22ca788"
action vm myvm export --storage_domain-name myexport
Post by v***@MegaFon.ru
help action vm clone
======================================================================
======
ERROR
======================================================================
====
vm
clone does not exist.
======================================================================
======================================================================
=================
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
Loading...