[ovirt-users] Clone and export VM by ovirt-shell

Juan Hernández jhernand at redhat.com
Thu Sep 29 16:28:40 UTC 2016


On 09/29/2016 03:17 PM, vasily.lamykin at MegaFon.ru wrote:
> 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}
> 

Should be something like this:

remove snapshot 935d92a0-2f04-4ab6-ab71-f578a22ca788 --parent-vm-name myvm

> 
> 
> 
> -----Original Message-----
> From: Juan Hernández [mailto:jhernand at redhat.com]
> Sent: Thursday, September 29, 2016 3:33 PM
> To: Vasily Lamykin (MSK) <vasily.lamykin at MegaFon.ru>; users at ovirt.org
> Subject: Re: [ovirt-users] Clone and export VM by ovirt-shell
> 
> On 09/29/2016 01:38 PM, vasily.lamykin at MegaFon.ru wrote:
>> 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
> 
>>
>>
>> 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.



More information about the Users mailing list