Re: [ovirt-users] Ovirt + Citrix Xenserver support?

2017-05-16 Thread Shahar Havivi
Please note that the Xen that you can import are Xen VMs on RHEL5.x

On Thu, May 11, 2017 at 6:14 PM, Sandro Bonazzola 
wrote:

>
>
> On Tue, May 9, 2017 at 12:29 PM, santosh bhabal 
> wrote:
>
>> Hello Experts,
>>
>> I am new to Ovirt community.
>>
>
> Hi, welcome to the oVirt community!
>
>
>
>> Apology if this question has asked earlier.
>> I just wanted to know that does Ovirt support Citrix Xenserver or not?
>>
>
> Sadly oVirt doesn't support Xen. There was an attempt in the past to
> support it, see http://www.ovirt.org/documentation/how-to/xen/ but it has
> been abanoned.
>
> However, we support conversion of VMs from Xen to oVirt (see
> http://www.ovirt.org/develop/release-management/features/
> virt/virt-v2v-integration/ )  so you can setup an oVirt datacenter next
> to the Xen one and move VMs to oVirt / KVM.
>
>
>
>>
>> Reagrds
>> Santosh.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R
>
> Red Hat EMEA 
> 
> TRIED. TESTED. TRUSTED. 
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Template Error

2017-05-07 Thread Shahar Havivi
Adding Allon,

How did you remove the storage domain while having VMs?

On Thu, May 4, 2017 at 4:57 PM, Bryan Sockel <bryan.soc...@altn.com> wrote:

> I have been moving around my storage setup, and this storage domain does
> not exist in my environment anymore.  Not sure if this if this VM was
> created on this storage domain and then moved.
>
> I am attempting to create a template on a storage domain that does
> currently exist in my environment.  How would i remove the reference to
> this storage domain so it is not used?
>
>
>
> -----Original Message-
> From: Shahar Havivi <shav...@redhat.com>
> To: Michal Skrivanek <michal.skriva...@redhat.com>
> Cc: Bryan Sockel <bryan.soc...@altn.com>, users <users@ovirt.org>
> Date: Thu, 4 May 2017 08:19:34 +0300
> Subject: Re: [ovirt-users] VM Template Error
>
> According to the log the the storage domain (where the disk is stored is
> not exists)
> StorageDomainDoesNotExist: Storage domain does not exist:
> (u'2de6ad97-1f33-41e5-b021-bacec14ce6e4',)
>
> Does all the storage domain active in your data center?
> Did you move the disk or remove and added a different storage domain?
>
> On Wed, May 3, 2017 at 8:30 PM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
>>
>>
>>
>> On 3 May 2017, at 16:09, Bryan Sockel <bryan.soc...@altn.com> wrote:
>>
>> Hi.  the vm does exist and is bootable.  The vm only has one disk and it
>> is enabled.
>>
>>
>> yes, but the template’s copy of that disk somehow can’t be created.
>> Perhaps share more of the vdsm logs to see why the image copy failed
>>
>> Thanks,
>> michal
>>
>>
>>
>>
>> Thanks
>>
>>
>>
>> -Original Message-
>> From: Shahar Havivi <shav...@redhat.com>
>> To: Bryan Sockel <bryan.soc...@altn.com>
>> Cc: "users@ovirt.org" <users@ovirt.org>
>> Date: Wed, 3 May 2017 09:05:34 +0300
>> Subject: Re: [ovirt-users] VM Template Error
>>
>> its looks like vdsm complain that the image is not exists.
>> can you run the VM with no errors? (if the VM have more then one disk
>> make sure that its exists and accessible).
>>
>> if all good please attach the full vdsm and engine log.
>>
>>  Shahar.
>>
>> On Tue, May 2, 2017 at 6:29 PM, Bryan Sockel <bryan.soc...@altn.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> Having an issue a template from a VM's.
>>>
>>> I am getting the following errors:
>>> engine.log
>>> 2017-05-02 09:40:10,059-05 INFO  [org.ovirt.engine.core.dal.db
>>> broker.auditloghandling.AuditLogDirector] (default task-24) [2ef2fce]
>>> EVENT_ID: USER_ADD_VM_TEMPLATE(48), Correlation ID:
>>> 176fdfa7-0467-48f5-9ecc-901e86768c28, Job ID:
>>> fed9a848-1971-495a-a391-be1fa4a67908, Call Stack: null, Custom Event
>>> ID: -1, Message: Creation of Template test from VM Windows-10-Template was
>>> initiated by admin@internal-authz.
>>>
>>> 2017-05-02 09:48:43,059-05 ERROR [org.ovirt.engine.core.dal.dbb
>>> roker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-7-thread-20)
>>> [] EVENT_ID: USER_ADD_VM_TEMPLATE_FINISHED_FAILURE(52), Correlation ID:
>>> 176fdfa7-0467-48f5-9ecc-901e86768c28, Job ID:
>>> fed9a848-1971-495a-a391-be1fa4a67908, Call Stack: null, Custom Event
>>> ID: -1, Message: Failed to complete creation of Template test from VM
>>> Windows-10-Template.
>>>
>>> Events Log
>>> ID 10803 - VDSM command DeleteImageGroupVDS failed: Image does not exist
>>> in domain: u'image=6aa525ad-e7f1-432b-959a-2223f7e77083,
>>> domain=e371d380-7194-4950-b901-5f2aed5dfb35'
>>> ID 10802 - VDSM vm-host-colo-2 command HSMGetAllTasksStatusesVDS failed:
>>> low level Image copy failed
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Template Error

2017-05-03 Thread Shahar Havivi
According to the log the the storage domain (where the disk is stored is
not exists)
StorageDomainDoesNotExist: Storage domain does not exist:
(u'2de6ad97-1f33-41e5-b021-bacec14ce6e4',)

Does all the storage domain active in your data center?
Did you move the disk or remove and added a different storage domain?

On Wed, May 3, 2017 at 8:30 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On 3 May 2017, at 16:09, Bryan Sockel <bryan.soc...@altn.com> wrote:
>
> Hi.  the vm does exist and is bootable.  The vm only has one disk and it
> is enabled.
>
>
> yes, but the template’s copy of that disk somehow can’t be created.
> Perhaps share more of the vdsm logs to see why the image copy failed
>
> Thanks,
> michal
>
>
>
> Thanks
>
>
>
> -Original Message-
> From: Shahar Havivi <shav...@redhat.com>
> To: Bryan Sockel <bryan.soc...@altn.com>
> Cc: "users@ovirt.org" <users@ovirt.org>
> Date: Wed, 3 May 2017 09:05:34 +0300
> Subject: Re: [ovirt-users] VM Template Error
>
> its looks like vdsm complain that the image is not exists.
> can you run the VM with no errors? (if the VM have more then one disk make
> sure that its exists and accessible).
>
> if all good please attach the full vdsm and engine log.
>
>  Shahar.
>
> On Tue, May 2, 2017 at 6:29 PM, Bryan Sockel <bryan.soc...@altn.com>
> wrote:
>>
>> Hi,
>>
>> Having an issue a template from a VM's.
>>
>> I am getting the following errors:
>> engine.log
>> 2017-05-02 09:40:10,059-05 INFO  [org.ovirt.engine.core.dal.db
>> broker.auditloghandling.AuditLogDirector] (default task-24) [2ef2fce]
>> EVENT_ID: USER_ADD_VM_TEMPLATE(48), Correlation ID:
>> 176fdfa7-0467-48f5-9ecc-901e86768c28, Job ID:
>> fed9a848-1971-495a-a391-be1fa4a67908, Call Stack: null, Custom Event ID:
>> -1, Message: Creation of Template test from VM Windows-10-Template was
>> initiated by admin@internal-authz.
>>
>> 2017-05-02 09:48:43,059-05 ERROR [org.ovirt.engine.core.dal.dbb
>> roker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-7-thread-20)
>> [] EVENT_ID: USER_ADD_VM_TEMPLATE_FINISHED_FAILURE(52), Correlation ID:
>> 176fdfa7-0467-48f5-9ecc-901e86768c28, Job ID:
>> fed9a848-1971-495a-a391-be1fa4a67908, Call Stack: null, Custom Event ID:
>> -1, Message: Failed to complete creation of Template test from VM
>> Windows-10-Template.
>>
>> Events Log
>> ID 10803 - VDSM command DeleteImageGroupVDS failed: Image does not exist
>> in domain: u'image=6aa525ad-e7f1-432b-959a-2223f7e77083,
>> domain=e371d380-7194-4950-b901-5f2aed5dfb35'
>> ID 10802 - VDSM vm-host-colo-2 command HSMGetAllTasksStatusesVDS failed:
>> low level Image copy failed
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Template Error

2017-05-03 Thread Shahar Havivi
its looks like vdsm complain that the image is not exists.
can you run the VM with no errors? (if the VM have more then one disk make
sure that its exists and accessible).

if all good please attach the full vdsm and engine log.

 Shahar.

On Tue, May 2, 2017 at 6:29 PM, Bryan Sockel  wrote:

> Hi,
>
> Having an issue a template from a VM's.
>
> I am getting the following errors:
> engine.log
> 2017-05-02 09:40:10,059-05 INFO  [org.ovirt.engine.core.dal.
> dbbroker.auditloghandling.AuditLogDirector] (default task-24) [2ef2fce]
> EVENT_ID: USER_ADD_VM_TEMPLATE(48), Correlation ID: 
> 176fdfa7-0467-48f5-9ecc-901e86768c28,
> Job ID: fed9a848-1971-495a-a391-be1fa4a67908, Call Stack: null, Custom
> Event ID: -1, Message: Creation of Template test from VM
> Windows-10-Template was initiated by admin@internal-authz.
>
> 2017-05-02 09:48:43,059-05 ERROR [org.ovirt.engine.core.dal.
> dbbroker.auditloghandling.AuditLogDirector] 
> (org.ovirt.thread.pool-7-thread-20)
> [] EVENT_ID: USER_ADD_VM_TEMPLATE_FINISHED_FAILURE(52), Correlation ID:
> 176fdfa7-0467-48f5-9ecc-901e86768c28, Job ID: 
> fed9a848-1971-495a-a391-be1fa4a67908,
> Call Stack: null, Custom Event ID: -1, Message: Failed to complete creation
> of Template test from VM Windows-10-Template.
>
> Events Log
> ID 10803 - VDSM command DeleteImageGroupVDS failed: Image does not exist
> in domain: u'image=6aa525ad-e7f1-432b-959a-2223f7e77083,
> domain=e371d380-7194-4950-b901-5f2aed5dfb35'
> ID 10802 - VDSM vm-host-colo-2 command HSMGetAllTasksStatusesVDS failed:
> low level Image copy failed
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing existing KVM hosts to Ovirt

2017-04-18 Thread Shahar Havivi
I am glad its works.
btw the vdsm user is exists you can see it in /etc/passwd but it have no
shell login so the ssh key generation will be in /var/ (which mean it may
not survive reboot).
the instruction for the ssh are for Xen but the instruction in the section
"importing-vm" are working for kvm as well.

 Shahar.

On Wed, Apr 19, 2017 at 12:56 AM, Konstantin Raskoshnyi <konra...@gmail.com>
wrote:

> So eventually it worked fine! Thanks
>
> On Tue, Apr 18, 2017 at 2:28 AM, Shahar Havivi <shav...@redhat.com> wrote:
>
>> for more info about setting the vdsm user you can see this section:
>> https://www.ovirt.org/develop/release-management/features/vi
>> rt/XenToOvirt/#importing-vm
>> its for importing from Xen hypervisiors but the ssh generation for vdsm
>> user is the same.
>>
>>  Shahar.
>>
>> On Tue, Apr 18, 2017 at 12:20 PM, Michal Skrivanek <
>> michal.skriva...@redhat.com> wrote:
>>
>>>
>>> On 18 Apr 2017, at 09:25, Konstantin Raskoshnyi <konra...@gmail.com>
>>> wrote:
>>>
>>> Hi Shahar,
>>> That's for the info,
>>> I'm getting this errors when trying to do with ssh method, even though I
>>> can run virsh -c qemu+ssh://user@tank4/system list without any problems
>>>
>>>
>>> can you run that as a “vdsm” user? You need to exchange keys for “vdsm”
>>> (note it has disabled login, so you need to use "runuser" or something)
>>>
>>> Thanks,
>>> michal
>>>
>>>
>>> Here's the error,
>>>
>>> 2017-04-18 07:24:06,152Z ERROR [org.ovirt.engine.core.vdsbrok
>>> er.vdsbroker.GetVmsNamesFromExternalProviderVDSCommand] (default
>>> task-20) [69b6998b-e451-4a9b-8112-d57c8b9e88ec] Command
>>> 'GetVmsNamesFromExternalProviderVDSCommand(HostName = tank5,
>>> GetVmsFromExternalProviderParameters:{runAsync='true',
>>> hostId='aa9ef44e-04e4-4a63-b982-e0ead9a8d497', url='
>>> qemu+ssh://test@tank4/system', username='test', originType='KVM',
>>> namesOfVms='null'})' execution failed: VDSGenericException:
>>> VDSErrorException: Failed to GetVmsNamesFromExternalProviderVDS, error
>>> = Cannot recv data: Host key verification failed.: Connection reset by
>>> peer, code = 65
>>>
>>> 2017-04-18 07:18:05,381Z ERROR 
>>> [org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery]
>>> (default task-52) [bb2db0e0-d0f8-4619-b6a0-8a7efdd06a6c] Exception:
>>> org.ovirt.engine.core.common.errors.EngineException: EngineException:
>>> org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
>>> VDSGenericException: VDSErrorException: Failed to
>>> GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host key
>>> verification failed.: Connection reset by peer, code = 65 (Failed with
>>> error unexpected and code 16)
>>> at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:118)
>>> [bll.jar:]
>>> at org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.runVdsComman
>>> d(VDSBrokerFrontendImpl.java:33) [bll.jar:]
>>> at 
>>> org.ovirt.engine.core.bll.QueriesCommandBase.runVdsCommand(QueriesCommandBase.java:242)
>>> [bll.jar:]
>>> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.ge
>>> tVmsFromExternalProvider(GetVmsFromExternalProviderQuery.java:46)
>>> [bll.jar:]
>>> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.ex
>>> ecuteQueryCommand(GetVmsFromExternalProviderQuery.java:40) [bll.jar:]
>>> at 
>>> org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:110)
>>> [bll.jar:]
>>> at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
>>> [dal.jar:]
>>> at org.ovirt.engine.core.bll.executor.DefaultBackendQueryExecut
>>> or.execute(DefaultBackendQueryExecutor.java:14) [bll.jar:]
>>> at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:579)
>>> [bll.jar:]
>>> at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:547)
>>> [bll.jar:]
>>> at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
>>> [:1.8.0_121]
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> [rt.jar:1.8.0_121]
>>> at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_121]
>>>
>>> On Mon, Apr 17, 2017 at 11:12 PM, Shahar Havivi <shav...@redhat.com>
>>> wrote:
>>>
>>>> Hi,
>>>> There is a wiki page for

Re: [ovirt-users] Importing existing KVM hosts to Ovirt

2017-04-18 Thread Shahar Havivi
for more info about setting the vdsm user you can see this section:
https://www.ovirt.org/develop/release-management/features/virt/XenToOvirt/#importing-vm
its for importing from Xen hypervisiors but the ssh generation for vdsm
user is the same.

 Shahar.

On Tue, Apr 18, 2017 at 12:20 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On 18 Apr 2017, at 09:25, Konstantin Raskoshnyi <konra...@gmail.com>
> wrote:
>
> Hi Shahar,
> That's for the info,
> I'm getting this errors when trying to do with ssh method, even though I
> can run virsh -c qemu+ssh://user@tank4/system list without any problems
>
>
> can you run that as a “vdsm” user? You need to exchange keys for “vdsm”
> (note it has disabled login, so you need to use "runuser" or something)
>
> Thanks,
> michal
>
>
> Here's the error,
>
> 2017-04-18 07:24:06,152Z ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.
> GetVmsNamesFromExternalProviderVDSCommand] (default task-20)
> [69b6998b-e451-4a9b-8112-d57c8b9e88ec] Command '
> GetVmsNamesFromExternalProviderVDSCommand(HostName = tank5,
> GetVmsFromExternalProviderParameters:{runAsync='true',
> hostId='aa9ef44e-04e4-4a63-b982-e0ead9a8d497', url='qemu+ssh://test@tank4/
> system', username='test', originType='KVM', namesOfVms='null'})'
> execution failed: VDSGenericException: VDSErrorException: Failed to
> GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host key
> verification failed.: Connection reset by peer, code = 65
>
> 2017-04-18 07:18:05,381Z ERROR [org.ovirt.engine.core.bll.
> GetVmsFromExternalProviderQuery] (default task-52)
> [bb2db0e0-d0f8-4619-b6a0-8a7efdd06a6c] Exception:
> org.ovirt.engine.core.common.errors.EngineException: EngineException:
> org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
> VDSGenericException: VDSErrorException: Failed to
> GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host key
> verification failed.: Connection reset by peer, code = 65 (Failed with
> error unexpected and code 16)
> at org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:118)
> [bll.jar:]
> at 
> org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.runVdsCommand(VDSBrokerFrontendImpl.java:33)
> [bll.jar:]
> at 
> org.ovirt.engine.core.bll.QueriesCommandBase.runVdsCommand(QueriesCommandBase.java:242)
> [bll.jar:]
> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuer
> y.getVmsFromExternalProvider(GetVmsFromExternalProviderQuery.java:46)
> [bll.jar:]
> at org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuer
> y.executeQueryCommand(GetVmsFromExternalProviderQuery.java:40) [bll.jar:]
> at 
> org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:110)
> [bll.jar:]
> at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
> [dal.jar:]
> at org.ovirt.engine.core.bll.executor.DefaultBackendQueryExecutor.execute(
> DefaultBackendQueryExecutor.java:14) [bll.jar:]
> at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:579)
> [bll.jar:]
> at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:547) [bll.jar:]
> at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
> [:1.8.0_121]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_121]
> at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_121]
>
> On Mon, Apr 17, 2017 at 11:12 PM, Shahar Havivi <shav...@redhat.com>
> wrote:
>
>> Hi,
>> There is a wiki page for importing VMs from other hypervisors here:
>> https://www.ovirt.org/develop/release-management/features/vi
>> rt/virt-v2v-integration/
>>
>> and specific for KVM from Libvirt the wiki page is in progress but you
>> can read about it here:
>> https://github.com/oVirt/ovirt-site/pull/876/files
>>
>> On Fri, Apr 14, 2017 at 9:05 PM, Michal Skrivanek <
>> michal.skriva...@redhat.com> wrote:
>>
>>>
>>> > On 14 Apr 2017, at 19:48, Konstantin Raskoshnyi <konra...@gmail.com>
>>> wrote:
>>> >
>>> > Hi guys, I just installed oVirt 4.1 - works great!
>>> >
>>> > But the questing is, we have around 50 existing  kvm hosts, is it
>>> really possible during adding them to oVirt add all VMs from them to oVirt?
>>>
>>> you can try GUI Import VM via libvirt, unless you use some exotic
>>> options/storage it should work just fine
>>>
>>> >
>>> > Second options I see - import disks to oVirts and re-create machines
>>>
>>> that’s possible as well, disk by disk.
>>>
>>> Thanks,
>>> michal
>>>
>>> >
>>> > Thanks for the help.
>>> > ___
>>> > Users mailing list
>>> > Users@ovirt.org
>>> > http://lists.ovirt.org/mailman/listinfo/users
>>>
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing existing KVM hosts to Ovirt

2017-04-18 Thread Shahar Havivi
Hi,
There is a wiki page for importing VMs from other hypervisors here:
https://www.ovirt.org/develop/release-management/features/virt/virt-v2v-integration/

and specific for KVM from Libvirt the wiki page is in progress but you can
read about it here:
https://github.com/oVirt/ovirt-site/pull/876/files

On Fri, Apr 14, 2017 at 9:05 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> > On 14 Apr 2017, at 19:48, Konstantin Raskoshnyi 
> wrote:
> >
> > Hi guys, I just installed oVirt 4.1 - works great!
> >
> > But the questing is, we have around 50 existing  kvm hosts, is it really
> possible during adding them to oVirt add all VMs from them to oVirt?
>
> you can try GUI Import VM via libvirt, unless you use some exotic
> options/storage it should work just fine
>
> >
> > Second options I see - import disks to oVirts and re-create machines
>
> that’s possible as well, disk by disk.
>
> Thanks,
> michal
>
> >
> > Thanks for the help.
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import KVM/libvirt VMs to oVirt 4.1 with External Provider

2017-03-30 Thread Shahar Havivi
When we try to do:
vol = conn.storageVolLookupByPath(disk['alias'])
e.g:
vol = conn.storageVolLookupByPath('/opt/wiki-uat/mediawiki-uat.img')
Libvirt raise an error:
"libvirtError: Storage volume not found: no storage vol with matching path"

e.g.: '/opt/wiki-uat/mediawiki-uat.img' is not exists
Please look if the path exists (via the host that the Libvirt Domains
exists).

 Shahar.

On Thu, Mar 30, 2017 at 10:19 AM, Pradeep Antil <pradeepan...@gmail.com>
wrote:

> Hi Shahar ,
>
> vdsm shows the following errors.
>
> Just giving the background how do we created VMs in KVM,  All the VMs are
> created on separate Luns of 100 GB and before creating VMs in KVM we
> usually format the LUN and then we create VMs on the formatted Lun.In this
> case we have mount the formatted Lun under "/opt/wiki-uat".
>
> I am just curious to know , will this type of VMs can be imported in Ovirt.
>
>
> 2017-03-30 12:30:17,999+0530 INFO  (jsonrpc/7) [jsonrpc.JsonRpcServer] RPC
> call Host.getStats succeeded in 0.02 seconds (__init__:515)
> 2017-03-30 12:30:19,366+0530 INFO  (jsonrpc/4) [throttled] Current
> getAllVmStats: {} (throttledlog:105)
> 2017-03-30 12:30:19,367+0530 INFO  (jsonrpc/4) [jsonrpc.JsonRpcServer] RPC
> call Host.getAllVmStats succeeded in 0.00 seconds (__init__:515)
> 2017-03-30 12:30:20,028+0530 ERROR (jsonrpc/6) [root] Error getting disk
> size (v2v:1084)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1073, in
> _get_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770, in
> storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath()
> failed', conn=self)
> libvirtError: Storage volume not found: no storage vol with matching path
> 2017-03-30 12:30:20,029+0530 WARN  (jsonrpc/6) [root] Cannot add VM
> wiki-uat due to disk storage error (v2v:1015)
> 2017-03-30 12:30:20,034+0530 INFO  (jsonrpc/6) [jsonrpc.JsonRpcServer] RPC
> call Host.getExternalVMs succeeded in 0.48 seconds (__init__:515)
>
> Below are the contents of VM libvirt xml file
>
>
>  9e2f7338-9f13-32db-ea50-d6d9467e1345
>   2097152
>   2097152
>   2
>   
> hvm
> 
>   
>   
> 
> 
> 
>   
>   
>   destroy
>   restart
>   restart
>   
> /usr/libexec/qemu-kvm
> 
>   
>   
>   
>   
> 
> 
>function='0x2'/>
> 
> 
>function='0x1'/>
> 
> 
>   
>   
>   
>    function='0x0'/>
> 
> 
>   
> 
> 
>   
> 
> 
> 
> 
>function='0x0'/>
> 
> 
>   
>function='0x0'/>
> 
> 
>function='0x0'/>
> 
>   
>
>
>
>
>
>
> On Thu, Mar 30, 2017 at 12:16 PM, Shahar Havivi <shav...@redhat.com>
> wrote:
>
>> Sorry for the miss leading message, its suppose to say that some of the
>> selected VMs cannot be imported.
>> This can be due to broken storage disk path or any other Libvirt parsing
>> error.
>> For more details you can look at the vdsm log (/var/log/vdsm/vdsm.log)
>> and see why we failed to parse Libvirt xml for each VM that is not in the
>> right list.
>>
>> On Thu, Mar 30, 2017 at 9:34 AM, Pradeep Antil <pradeepan...@gmail.com>
>> wrote:
>>
>>> Hi Team,
>>>
>>> While importing VMs with external Provider KVM on my oVirt setup, i am
>>> getting the below error:
>>>
>>> "All chosen VMs couldn't be retrieved by the external system and
>>> therefore have been filtered. Please see log for details.
>>>
>>> As per Shahar suggestion yesterday i was able to view the virtual
>>> machine of my KVM hypervisior in oVirt Portal.I have also created the
>>> export domain in my DC as well.
>>>
>>> Any idea how to resolve this issue and so that i can start importing VMs
>>>
>>>
>>> [image: Inline image 1]
>>>
>>> Thanks in Advance
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Mar 29, 2017 at 6:17 PM, Pradeep Antil <pradeepan...@gmail.com>
>>> wrote:
>>>
>>>> Hi Shahar,
>>>>
>>>> Thanks for the quick response. Issue is resolved now with your
>>>> suggested steps.
>>>>
>>>> Thank you very much 
>>>>
>>>>
>>>>
>>>> On Wed, Mar 29, 2017 at 5:38 PM, Shahar Havivi

Re: [ovirt-users] Import KVM/libvirt VMs to oVirt 4.1 with External Provider

2017-03-30 Thread Shahar Havivi
Sorry for the miss leading message, its suppose to say that some of the
selected VMs cannot be imported.
This can be due to broken storage disk path or any other Libvirt parsing
error.
For more details you can look at the vdsm log (/var/log/vdsm/vdsm.log) and
see why we failed to parse Libvirt xml for each VM that is not in the right
list.

On Thu, Mar 30, 2017 at 9:34 AM, Pradeep Antil <pradeepan...@gmail.com>
wrote:

> Hi Team,
>
> While importing VMs with external Provider KVM on my oVirt setup, i am
> getting the below error:
>
> "All chosen VMs couldn't be retrieved by the external system and
> therefore have been filtered. Please see log for details.
>
> As per Shahar suggestion yesterday i was able to view the virtual machine
> of my KVM hypervisior in oVirt Portal.I have also created the export domain
> in my DC as well.
>
> Any idea how to resolve this issue and so that i can start importing VMs
>
>
> [image: Inline image 1]
>
> Thanks in Advance
>
>
>
>
>
> On Wed, Mar 29, 2017 at 6:17 PM, Pradeep Antil <pradeepan...@gmail.com>
> wrote:
>
>> Hi Shahar,
>>
>> Thanks for the quick response. Issue is resolved now with your suggested
>> steps.
>>
>> Thank you very much 
>>
>>
>>
>> On Wed, Mar 29, 2017 at 5:38 PM, Shahar Havivi <shav...@redhat.com>
>> wrote:
>>
>>> when you run virsh you where logged in as root user,
>>> the user that oVirt is running is vdsm
>>>
>>> you need to run:
>>> $ sudo -u vdsm ssh-keygen
>>> $ sudo -u vdsm ssh-copy-id user@kvmhost
>>>
>>> you can look at wiki we have for Xen to generate the ssh keys but its
>>> the same for kvm.
>>> https://www.ovirt.org/develop/release-management/features/vi
>>> rt/XenToOvirt/
>>>
>>>  Shahar.
>>>
>>> On Wed, Mar 29, 2017 at 12:34 PM, Pradeep Antil <pradeepan...@gmail.com>
>>> wrote:
>>>
>>>>
>>>> Hello Folks,
>>>>
>>>> I am trying to import KVM guest VMs to my oVirt Server using external
>>>> Provider. But when i add external provider with type KVM and do the testing
>>>> that time i am getting below error
>>>>
>>>> Caused by: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException:
>>>> VDSGenericException: VDSErrorException: Failed to
>>>> GetVmsNamesFromExternalProviderVDS, error = Cannot recv data: Host key
>>>> verification failed.: Connection reset by peer, code = 65
>>>> at org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.c
>>>> reateDefaultConcreteException(VdsBrokerCommand.java:76)
>>>> [vdsbroker.jar:]
>>>> at org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase.
>>>> createException(BrokerCommandBase.java:222) [vdsbroker.jar:]
>>>>
>>>>
>>>> [image: Inline image 2]
>>>>
>>>> I have already configure password less authentication with ssh keys
>>>> between proxy host to my KVM hypervisor. Though i can reach to kvm
>>>> hypervisor with virsh connect.
>>>>
>>>> [root@lplinnd1hypov13 ~]# virsh -c qemu+ssh://root@
>>>> /system
>>>> Welcome to virsh, the virtualization interactive terminal.
>>>>
>>>> Type:  'help' for help with commands
>>>>'quit' to quit
>>>>
>>>> virsh #
>>>>
>>>> Any idea how to resolve this issue, so that i can add KVM as external
>>>> provider and  start importing my KVM guest VMs in ovirt setup
>>>>
>>>>
>>>> Thanks in Advance
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards
>>>> Pradeep Kumar
>>>>
>>>> ___
>>>> Users mailing list
>>>> Users@ovirt.org
>>>> http://lists.ovirt.org/mailman/listinfo/users
>>>>
>>>>
>>>
>>
>>
>> --
>> Best Regards
>> Pradeep Kumar
>>
>
>
>
> --
> Best Regards
> Pradeep Kumar
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Any simple way of migrating KVM machines to oVirt instances

2017-03-20 Thread Shahar Havivi
The best and easiest way is via the Import dialog as you saw in
'virt-v2v-integration' wiki page.
another way to do it and only for VMware (not KVM-Libvirt) is via the
virt-v2v utility with the option '-o rhev' which export the VM to oVirt
export domain and then you can import the VM to a data domain.


On Mon, Mar 20, 2017 at 9:46 AM, John Joseph  wrote:

> Thanks Arik
>
> On Monday, 20 March 2017 11:41 AM, Arik Hadas  wrote:
>
>
>
>
> On Mon, Mar 20, 2017 at 9:15 AM, Yedidyah Bar David 
> wrote:
>
> On Mon, Mar 20, 2017 at 9:07 AM, John Joseph  wrote:
> > Hi All,
> > Like to know is there any other simple way of migrating from KVM
> machines to
> > oVirt instance, it will be great if I can get a url for the how to do
>
> Searching for: site:ovirt.org kvm dd
> I found e.g.: http://lists.ovirt.org/ pipermail/users/2014-June/
> 058827.html 
>
>
> It sounds far more complicated than the integrated process in oVirt for
> importing kvm virtual machines using libvirt.
> John, can you please share why do you seek for an alternative way?
> Thanks Arik
> I am exploring, trying to see, what all procedures are there which is
> simple to do .
>
>
>
>
>
> Best,
>
> >
> > Advice and support requested
> > Thanks
> > Joseph John
> >
> > __ _
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/ mailman/listinfo/users
> 
> >
>
>
>
> --
> Didi
>
> __ _
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/ mailman/listinfo/users
> 
>
>
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cannot exceed maximum memory size

2017-03-09 Thread Shahar Havivi
its not related to bug 1425089 (which is upgrading cluster issue) but its
the same feature that cause this issue,
Jakub what do we have bug on that issue?

as for the default RAM limit you can find it via the engine-config tool:
$ engine-config -g VM32BitMaxMemorySizeInMB
$ engine-config -g VM64BitMaxMemorySizeInMB

On Thu, Mar 9, 2017 at 2:44 PM, Maton, Brett 
wrote:

> I have a similar problem creating VM's with the API, but no solution.
>
>   It seems that by default oVirt uses custom 'Instance Type' ( you can see
> it if you use the UI to create a VM ).
>   The default RAM limit for custom Instance Type is 4096MB.
>
>   I haven't found where you can change the settnigs for the custom
> instance type though.
>
>
>
> On 9 March 2017 at 11:52, Marcelo Leandro  wrote:
>
>> can someone help me?
>>
>> 2017-03-07 16:25 GMT-03:00 Marcelo Leandro :
>>
>>> Hello ,
>>>
>>> I am have an script that create VM , after upgrade to 4.1 I have this
>>> erro when trying create a new VM:
>>>
>>> detail: Cannot add VM. Memory size (20480MB) cannot exceed maximum
>>> memory size (4096MB).
>>>
>>> my commando fore create VM :
>>>
>>> api.vms.add(params.VM(name="teste", memory=memo , cpu=cpu,
>>> cluster=api.clusters.get(cluster), template=api.templates.get('Blank'),
>>> type_="server"))
>>>
>>> I dont how specific  the maximum memory size.
>>>
>>> Thanks
>>>
>>> Marcelo Leandro
>>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ova conversion errors: where to search?

2017-02-21 Thread Shahar Havivi
Adding Richard.

On Mon, Feb 20, 2017 at 5:34 PM, Gianluca Cecchi 
wrote:

> On Sat, Feb 18, 2017 at 12:42 AM, Tomáš Golembiovský 
> wrote:
>
>>
>> >
>> > where to find more details regarding reasons for failure? Other files on
>> > engine or should I see at host side?
>>
>> There are two places you should look. One is vdsm.log on the host
>> performing the import. And if you have oVirt 4.1 another place to look
>> at is /var/log/vdsm/import where the import logs are stored.
>>
>>
> Thanks.
> BTW: the permissions of the ova were ok.
>
> I see this text near the end of the file generated into
> /var/log/vdsm/import
>
> libguestfs: trace: v2v: vfs_type = "ext4"
> [   8.6] Checking for sufficient free disk space in the guest
> [   8.6] Estimating space required on target for each disk
> mpstats:
> mountpoint statvfs /dev/sda2 / (ext4):
>   bsize=4096 blocks=3650143 bfree=3324165 bavail=3132985
> estimate_target_size: fs_total_size = 14950985728 [13.9G]
> estimate_target_size: source_total_size = 19327352832 [18.0G]
> estimate_target_size: ratio = 0.774
> estimate_target_size: fs_free = 13615779840 <(361)%20577-9840> [12.7G]
> estimate_target_size: scaled_saving = 10532706254 [9.8G]
> estimate_target_size: sda: 8794646578 [8.2G]
> [   8.6] Converting Ubuntu precise (12.04.5 LTS) to run on KVM
> virt-v2v: error: virt-v2v is unable to convert this guest type
> (linux/ubuntu)
> rm -rf '/var/tmp/ova.vUHL91'
> rm -rf '/var/tmp/null.LZo6Xr'
> libguestfs: trace: v2v: close
> libguestfs: closing guestfs handle 0x1b79170 (state 2)
>
> Can we take a sort of generic linux in case? I don't think there could be
> anything special in Ubuntu... or at least let the admin fix anything trying
> some resuce operation after the VM has been created.
>
>
>>
>> > In case I have to import a windows VM ova, which iso should I attach
>> near
>> > the "Attach VirtIO-Drivers" checkbox? Any "official" iso? I
>> > downloaded oVirt-toolsSetup-4.1-3.fc24.iso but I don't know if it is
>> the
>> > right iso for this.
>>
>> Install virtio-win package somewhere. In it, inside
>> /usr/share/virtio-win directory, you will find virtio-win-*.iso file.
>>
>>
> Is virtio-win package still current? In case from where to download it?
> I read here:
> https://www.ovirt.org/develop/release-management/features/
> engine/windows-guest-tools/
> and installied ovirt-guest-tools-iso package that gives:
>
> [g.cecchi@ovmsrv05 ~]$ ll /usr/share/ovirt-guest-tools-iso/
> total 215316
> -rw-r--r--. 1 root root 220481536 Jan 26 16:13 oVirt-toolsSetup_4.1-3.fc24.
> iso
> lrwxrwxrwx. 1 root root31 Feb 20 16:13 ovirt-tools-setup.iso ->
> oVirt-toolsSetup_4.1-3.fc24.iso
> [g.cecchi@ovmsrv05 ~]$
>
> and mounting as a loop device the iso I have inside it:
>
> -r--r--r--.  1 root root  290 Jan 12 17:59 default.ini
> -r--r--r--.  1 root root  667 Jan 12 17:59 default-logger.ini
> -r--r--r--.  1 root root 1006 Jan 12 17:59 ovirt-guest-agent.ini
> -r-xr-xr-x.  1 root root 11659498 Jan 12 17:59 OVirtGuestService.exe
> -r--r--r--.  1 root root 30836592 Jan 26 16:13 ovirt-guest-tools-setup.exe
> -r--r--r--.  1 root root  4216840 Aug  2  2016 vcredist_x86.exe
> dr-xr-xr-x.  2 root root 2048 Jan 26 16:12 vdagent_x64
> dr-xr-xr-x.  2 root root 2048 Jan 26 16:12 vdagent_x86
> dr-xr-xr-x. 15 root root 4096 Jan 26 16:12 virtio
>
> [g.cecchi@ovmsrv05 ~]$ ll /isomount/virtio/vioscsi/
> total 18
> dr-xr-xr-x. 3 root root 2048 Jan 16 14:45 2k12
> dr-xr-xr-x. 3 root root 2048 Jan 16 14:45 2k12R2
> dr-xr-xr-x. 3 root root 2048 Jan 16 14:45 2k16
> dr-xr-xr-x. 4 root root 2048 Jan 16 14:45 2k8
> dr-xr-xr-x. 3 root root 2048 Jan 16 14:45 2k8R2
> dr-xr-xr-x. 4 root root 2048 Jan 16 14:45 w10
> dr-xr-xr-x. 4 root root 2048 Jan 16 14:45 w7
> dr-xr-xr-x. 4 root root 2048 Jan 16 14:45 w8
> dr-xr-xr-x. 4 root root 2048 Jan 16 14:45 w8.1
> [g.cecchi@ovmsrv05 ~]$
>
> Gianluca
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ova conversion errors: where to search?

2017-02-18 Thread Shahar Havivi
also make sure that the ova have permission to vdsm:kvm (36:36)

On Sat, Feb 18, 2017 at 1:42 AM, Tomáš Golembiovský 
wrote:

> Hi,
>
> On Fri, 17 Feb 2017 17:54:28 +0100
> Gianluca Cecchi  wrote:
>
> > Hello,
> > testing some VMware ova imports.
> > In a test that I'm doing I get failure in conversion; in engine.log
> >
> > 2017-02-17 17:39:02,992+01 INFO
> >  [org.ovirt.engine.core.bll.exportimport.ConvertVmCallback]
> > (DefaultQuartzScheduler4) [59adde47] Conversion of VM from external
> > environment failed: Job u'cdb31877-3ebb-400d-88da-1f645b1261ae' process
> > failed exit-code: 1
> >
> > where to find more details regarding reasons for failure? Other files on
> > engine or should I see at host side?
>
> There are two places you should look. One is vdsm.log on the host
> performing the import. And if you have oVirt 4.1 another place to look
> at is /var/log/vdsm/import where the import logs are stored.
>
>
> > In case I have to import a windows VM ova, which iso should I attach near
> > the "Attach VirtIO-Drivers" checkbox? Any "official" iso? I
> > downloaded oVirt-toolsSetup-4.1-3.fc24.iso but I don't know if it is the
> > right iso for this.
>
> Install virtio-win package somewhere. In it, inside
> /usr/share/virtio-win directory, you will find virtio-win-*.iso file.
>
>
> > Thanks,
> > Gianluca
>
>
> --
> Tomáš Golembiovský 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Exporting VM as ova

2017-02-12 Thread Shahar Havivi
They must have written it - as we did,
OVA is representation of current hypervisor virtual machine, it contains
OVF which is xml representation of the VM and binary disk files, the files
are the format of the specific hypervisor (Xen, VMWare or KVM).
We currently convert from VMWare and Xen on Rhel (not Citrix).
The main issue is to convert the disk from one hypervisor to another, we
use qemu-img to convert to qcow2 or raw disk format.

 Shahar.

On Mon, Feb 13, 2017 at 3:46 AM, Anantha Raghava <
rag...@exzatechconsulting.com> wrote:

> Hello Arik,
>
> Interesting..
>
> I was thinking that, by converting to OVA appliance, we can release our
> product as appliance that will work on Xen, VMWare or KVM. Now OVA works
> both on Xen and VMWare and both can be interchanged with each other.
>
> Do you mean to say that both Xen and VMWare have written specific parsers
> to convert the disk formats amongst each other.
>
> Xen, I am talking about Citrix Xen.
>
> --
>
> Thanks & Regards,
>
>
> Anantha Raghava eXzaTech Consulting And Services Pvt. Ltd.
>
> Do not print this e-mail unless required. Save Paper & trees.
> On Sunday 12 February 2017 06:27 PM, Arik Hadas wrote:
>
>
>
> On Sun, Feb 12, 2017 at 2:37 PM, Anantha Raghava <
> rag...@exzatechconsulting.com> wrote:
>
>> Hello Arik,
>>
>> Converting to an appliance (OVA) makes the VM portable. Works on multiple
>> hypervisor. VM migration and interoperability becomes uncomplicated.
>>
>
> Thanks Anantha.
> That's true only to some extent.
> For example, without converting OVA that was generated by VMware using
> virt-v2v oVirt cannot consume it since the VMDK disks format is not
> supported in oVirt. Another example is the OVF representation that differs
> among various virtualization management platforms.
> So if you are trying to migrate a VM from oVirt to another platform and
> assume you'll get this out-of-the-box by having an OVA that is generated by
> oVirt, I'm afraid you'll be disappointed in case the target platform
> doesn't support the format of the disks or doesn't know how to parse the
> OVF that is generated by oVirt.
> And there may be more use cases for exporting the VM as OVA, that's why
> I'm interested to know what's the goal in this case :)
>
>
>> --
>>
>> Thanks & Regards,
>>
>>
>> Anantha Raghava eXzaTech Consulting And Services Pvt. Ltd.
>>
>> Do not print this e-mail unless required. Save Paper & trees.
>> On Sunday 12 February 2017 06:04 PM, Arik Hadas wrote:
>>
>> Hi Benjamin,
>>
>> Unfortunately not.
>> We intend to make more use of the OVA format soon, we design this these
>> days.
>> May I ask what is the motivation in your case to export the VM as OVA?
>>
>> Regards,
>> Arik
>>
>>
>>
>> On Fri, Feb 10, 2017 at 11:41 AM, Benjamin Alfery <
>> benjamin.alf...@linforge.com> wrote:
>>
>>> Hi,
>>>
>>> I'm using ovirt 4.0 and was wondering if it is possible to export an
>>> existing VM to ova format (via the gui). If it's not possible via GUI,
>>> is that possible at all?
>>>
>>>
>>> Best Regards
>>> Benjamin
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>>>
>>
>>
>>
>> ___
>> Users mailing 
>> listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users
>>
>>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing an OVA appliance

2017-02-12 Thread Shahar Havivi
it should be in the vdsm host that you are trying to import from. (you have
the box to select host, the same host)


On Sun, Feb 12, 2017 at 2:28 PM, Anantha Raghava <
rag...@exzatechconsulting.com> wrote:

> Hello Shahar,
>
> Thanks for your response. Only one question I have.
>
> Should the OVA appliance be copied to some folder on oVirt Engine to work
> or to EXPORT Domain? I can't get the Import routine to read my location on
> my laptop, from where I am accessing Engine.
>
> --
>
> Thanks & Regards,
>
>
> Anantha Raghava eXzaTech Consulting And Services Pvt. Ltd. Ph:
> +91-9538849179 <+91%2095388%2049179>, E-mail:
> rag...@exzatechconsulting.com URL: http://www.exzatechconsulting.com
>
>
>
> DISCLAIMER:
> This e-mail communication and any attachments may be privileged and
> confidential to eXza Technology Consulting & Services, and are intended
> only for the use of the recipients named above If you are not the addressee
> you may not copy, forward, disclose or use any part of it. If you have
> received this message in error, please delete it and all copies from your
> system and notify the sender immediately by return e-mail. Internet
> communications cannot be guaranteed to be timely, secure, error or
> virus-free. The sender does not accept liability for any errors or
> omissions.
>
>
> Do not print this e-mail unless required. Save Paper & trees.
> On Sunday 12 February 2017 01:21 PM, Shahar Havivi wrote:
>
> Importing OVA to ovirt currently works only from VMWara OVA,
> use VMs-Import-Import OVA
> make sure that the OVA permissions are vdsm:kvm (36:36),
> as for exporting to OVA its in progress.
>
> On Fri, Feb 10, 2017 at 5:00 AM, Anantha Raghava <
> rag...@exzatechconsulting.com> wrote:
>
>> Hi,
>>
>> Has any one tried and documented the process of importing an appliance
>> (OVA or qcow2) into oVirt? Also, need to have a procedure to eexport the VM
>> into an appliance from oVirt.
>> --
>>
>> Thanks & Regards,
>>
>>
>> Anantha Raghava eXzaTech Consulting And Services Pvt. Ltd.
>> Do not print this e-mail unless required. Save Paper & trees.
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing an OVA appliance

2017-02-11 Thread Shahar Havivi
Importing OVA to ovirt currently works only from VMWara OVA,
use VMs-Import-Import OVA
make sure that the OVA permissions are vdsm:kvm (36:36),
as for exporting to OVA its in progress.

On Fri, Feb 10, 2017 at 5:00 AM, Anantha Raghava <
rag...@exzatechconsulting.com> wrote:

> Hi,
>
> Has any one tried and documented the process of importing an appliance
> (OVA or qcow2) into oVirt? Also, need to have a procedure to eexport the VM
> into an appliance from oVirt.
> --
>
> Thanks & Regards,
>
>
> Anantha Raghava eXzaTech Consulting And Services Pvt. Ltd.
> Do not print this e-mail unless required. Save Paper & trees.
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Export/Import Virtual Machcines

2017-02-04 Thread Shahar Havivi
Detach data-domain or using export domain is a good solution,
another one is to use "import" button from the VMs tab and use "Kvm (via
Libvirt)" as the source.
you will need to open Libvirt ports as described here:
http://wiki.libvirt.org/page/Libvirt_daemon_is_not_listening_on_tcp_ports_although_configured_to

On Thu, Feb 2, 2017 at 11:26 PM, Nir Soffer  wrote:

> On Thu, Feb 2, 2017 at 10:38 PM, Fernando Frediani
>  wrote:
> > Hi.
> >
> > I found that it is possible to import Virtual Machines from a VMware
> > environment,  XEN or even Libvirt/KVM but it is not directly from another
> > oVirt environment. Is this expected ?
>
> Yes, but I agree that having *one* import UI for any kind of virtualization
> solution would be cool.
>
> > I have two environments where I need to transfer VMs from one to another
> and
> > the only way I see is Export it to a Export Domain, copy it over to
> another
> > Export Domain in the other side then Import.
>
> No, you can export the vm to the export domain, and then detach the export
> domain from one environment and attach to another, where you can import
> the vm.
>
> Another way is to detach entire data domain from one environment, and
> attach
> it to another environment, where you can import the vms without copying
> anything, assuming that you can leave the domain attached to the new
> environment.
>
> We support upload/download of disk snapshots. If you have a vm with one
> disk
> without snapshots, you can download the disk from one environment, and
> upload
> it to the new environment, and then attach it to existing or new vm. We
> plan to
> support upload/download of entire vms in the future.
>
> Can you share more details why do you need to move vms from one environment
> to another regularly?
>
> Nir
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import guest at rhv4.0.6 failed after convert a regular ova file by virt-v2v

2017-01-05 Thread Shahar Havivi
I think the OVA will be better,
we can test all the scenarios with that

On Thu, Jan 5, 2017 at 12:37 PM, Yevgeny Zaspitsky <yzasp...@redhat.com>
wrote:

> Seems like engines tries to validate a vNic with an empty MAC address and
> fails on that. The fact that in the direct flow it works sounds weird to
> me: either we loose the MAC in one flow or we do not validate it in the
> other one.
>
> Kun, could you please send (in private if you like) the OVF file from the
> input tarball you've used, so we'd be able to debug the case more
> thoroughly?
>
> Regards,
> Yevgeny
>
> On Thu, Jan 5, 2017 at 10:03 AM, Kun Wei <ku...@redhat.com> wrote:
>
>>
>> Hi,shavivi.
>>
>> Thank you .Yes,as you know i can import ova directly and it can be import
>> successful.
>>
>> But  i am testing v2v now  and  i want to confirm if it is a new bug.
>>
>>
>>
>> - Original Message -
>> From: "Shahar Havivi" <shav...@redhat.com>
>> To: "Kun Wei" <ku...@redhat.com>, "Yevgeny Zaspitsky" <
>> yzasp...@redhat.com>
>> Cc: "users" <users@ovirt.org>, "Tingting Zheng" <tzh...@redhat.com>,
>> "Ming Xie" <m...@redhat.com>
>> Sent: Thursday, January 5, 2017 3:05:45 PM
>> Subject: Re: Import guest at rhv4.0.6 failed after convert a regular ova
>> file by virt-v2v
>>
>> Yevgeny, please look why it fails on "isMacInRange"
>>
>> Kun, you know that you can import ova directly instead of using virt-v2v
>> to
>> export domain and then import to data domain,
>> you can do that from the VMs tab->Import-> and change the source to OVA.
>>
>> On Thu, Jan 5, 2017 at 4:35 AM, Kun Wei <ku...@redhat.com> wrote:
>>
>> >
>> > Hi,  I want to confirm a questions if it is a bug,or if something wrong
>> > with me.Thanks
>> >
>> > When i convert a ova guest file to rhv4.0.6 by virt-v2v,but import is
>> > failed.The attachment are engine.log and vdsm.log.
>> >
>> >
>> >
>> > Version:
>> > libguestfs-1.32.7-3.el7_3.2.x86_64
>> > virt-v2v-1.32.7-3.el7_3.2.x86_64
>> > qemu-img-rhev-2.6.0-28.el7_3.2.x86_64
>> > libvirt-2.0.0-10.el7_3.3.x86_64
>> > rhv4.0: 4.0.6.3
>> >
>> > Steps :
>> > 1:Prepare a regular ova file guest .
>> > 2:Use virt-v2v to convert the ova file to rhv4.0.
>> > # virt-v2v -i ova esx-rhel6.8-vmdkgz.tar -o rhev -os 10.73.131.93:
>> /home/nfs_export
>> > -of qcow2
>> > [   0.0] Opening the source -i ova esx-rhel6.8-vmdkgz.tar
>> > [  44.1] Creating an overlay to protect the source from being modified
>> > [  45.0] Initializing the target -o rhev -os 10.73.131.93:
>> /home/nfs_export
>> > [  45.3] Opening the overlay
>> > [  53.1] Inspecting the overlay
>> > [  70.2] Checking for sufficient free disk space in the guest
>> > [  70.2] Estimating space required on target for each disk
>> > [  70.2] Converting Red Hat Enterprise Linux Server release 6.8
>> (Santiago)
>> > to run on KVM
>> > virt-v2v: This guest has virtio drivers installed.
>> > [ 215.6] Mapping filesystem data to avoid copying unused and blank areas
>> > [ 216.0] Closing the overlay
>> > [ 217.2] Checking if the guest needs BIOS or UEFI to boot
>> > [ 217.2] Assigning disks to buses
>> > [ 217.2] Copying disk 1/1 to /tmp/v2v.8kDoXb/908b80fa-09a6-
>> > 4827-8e0a-a6a54520f685/images/47a1919e-1914-44b4-920f-
>> > b8e208fa4bc1/da74f1c3-8f43-4a15-934a-bb9d380615c3 (qcow2)
>> > (100.00/100%)
>> > [ 254.6] Creating output metadata
>> > [ 254.7] Finishing off
>> > 3.Then login rhv4.0 and try to import the guest from export domain to
>> data
>> > domain after finishing the conversion.But it is failed with the
>> > error:"Failed to import Vm rhel6u8 to Data Center Default, Cluster
>> Default"
>> > as appendix picture.
>> >
>> > -Additional info :
>> > I can import a guest from kvm or vmware.Only can not import this way.
>> >
>> >
>> > -
>> > Best Regards,
>> > Kun Wei
>> >
>> >
>> >
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import guest at rhv4.0.6 failed after convert a regular ova file by virt-v2v

2017-01-04 Thread Shahar Havivi
Yevgeny, please look why it fails on "isMacInRange"

Kun, you know that you can import ova directly instead of using virt-v2v to
export domain and then import to data domain,
you can do that from the VMs tab->Import-> and change the source to OVA.

On Thu, Jan 5, 2017 at 4:35 AM, Kun Wei  wrote:

>
> Hi,  I want to confirm a questions if it is a bug,or if something wrong
> with me.Thanks
>
> When i convert a ova guest file to rhv4.0.6 by virt-v2v,but import is
> failed.The attachment are engine.log and vdsm.log.
>
>
>
> Version:
> libguestfs-1.32.7-3.el7_3.2.x86_64
> virt-v2v-1.32.7-3.el7_3.2.x86_64
> qemu-img-rhev-2.6.0-28.el7_3.2.x86_64
> libvirt-2.0.0-10.el7_3.3.x86_64
> rhv4.0: 4.0.6.3
>
> Steps :
> 1:Prepare a regular ova file guest .
> 2:Use virt-v2v to convert the ova file to rhv4.0.
> # virt-v2v -i ova esx-rhel6.8-vmdkgz.tar -o rhev -os 
> 10.73.131.93:/home/nfs_export
> -of qcow2
> [   0.0] Opening the source -i ova esx-rhel6.8-vmdkgz.tar
> [  44.1] Creating an overlay to protect the source from being modified
> [  45.0] Initializing the target -o rhev -os 10.73.131.93:/home/nfs_export
> [  45.3] Opening the overlay
> [  53.1] Inspecting the overlay
> [  70.2] Checking for sufficient free disk space in the guest
> [  70.2] Estimating space required on target for each disk
> [  70.2] Converting Red Hat Enterprise Linux Server release 6.8 (Santiago)
> to run on KVM
> virt-v2v: This guest has virtio drivers installed.
> [ 215.6] Mapping filesystem data to avoid copying unused and blank areas
> [ 216.0] Closing the overlay
> [ 217.2] Checking if the guest needs BIOS or UEFI to boot
> [ 217.2] Assigning disks to buses
> [ 217.2] Copying disk 1/1 to /tmp/v2v.8kDoXb/908b80fa-09a6-
> 4827-8e0a-a6a54520f685/images/47a1919e-1914-44b4-920f-
> b8e208fa4bc1/da74f1c3-8f43-4a15-934a-bb9d380615c3 (qcow2)
> (100.00/100%)
> [ 254.6] Creating output metadata
> [ 254.7] Finishing off
> 3.Then login rhv4.0 and try to import the guest from export domain to data
> domain after finishing the conversion.But it is failed with the
> error:"Failed to import Vm rhel6u8 to Data Center Default, Cluster Default"
> as appendix picture.
>
> -Additional info :
> I can import a guest from kvm or vmware.Only can not import this way.
>
>
> -
> Best Regards,
> Kun Wei
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import Virtual Machines From Web Admin GUI

2017-01-04 Thread Shahar Havivi
Hi,
you can try to exchange the keys shown here:
https://www.ovirt.org/develop/release-management/features/virt/XenToOvirt/

if you want to use tcp without ssh look here:
http://wiki.libvirt.org/page/Libvirt_daemon_is_not_listening_on_tcp_ports_although_configured_to
basically you need to set
 * /etc/libvirtd.conf:
listen_tls = 1
listen_tcp = 1
listen_addr = "0.0.0.0"
 *  /etc/sysconfig/libvirtd:
LIBVIRTD_ARGS="--listen"
and restart libvirt but the no_verify you did works as well.

On Wed, Jan 4, 2017 at 12:07 AM, Beckman, Daniel <
daniel.beck...@ingramcontent.com> wrote:

> To answer my own question: as is often the case, perusing the commercial
> (RHV 4.0) documentation proved useful.
>
>
>
> The documentation is here:
>
> https://access.redhat.com/documentation/en/red-hat-
> virtualization/4.0/paged/virtual-machine-management-
> guide/612-exporting-and-importing-virtual-machines-and-templates
>
>
>
> However, I kept getting the error “Host key verification failed.:
> Connection reset by peer”. This despite having followed the official
> documentation on generating and copying keys, under *Procedure 6.2.6
> Importing a Virtual Machine from KVM*.
>
>
>
> Then I found this article from July 2012 about a different (but similar)
> scenario:
>
>
>
> https://access.redhat.com/solutions/136463
>
>
>
> What helped was the “alternative test” suggestion. Here is the URI I ended
> up using with success:
>
>
>
> qemu+ssh://root@MY_KVM_HOST/system?no_verify=1
>
>
>
> Appending “no_verify=1” did the trick. It’s possible that adding hostnames
> and IPs to /etc/hosts would have also resolved this, but for something
> performed infrequently (importing a VM from another environment), modifying
> the URI is easier.
>
>
>
> Best,
>
> Daniel
>
>
>
> *From: * on behalf of "Beckman, Daniel" <
> daniel.beck...@ingramcontent.com>
> *Date: *Tuesday, January 3, 2017 at 9:58 AM
> *To: *"users@ovirt.org" 
> *Subject: *[ovirt-users] Import Virtual Machines From Web Admin GUI
>
>
>
> Can anyone point me to a step-by-step guide on getting an import (say,
> from KVM) to work? I gather it involves some sharing of SSH keys but I
> haven’t seen it explained in detail. Specifically, what user needs to trust
> what keys on which machines? The hypervisor hosts? The machine running the
> engine? Also, some examples of URI paths would be much appreciated.
>
>
>
> Thanks,
>
> Daniel
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-14 Thread Shahar Havivi
Another workaround can import to NFS storage domain as thin-provision and
then copy the VM to your FC or SCSI domain and delete the VM from the NFS
domain.

On Wed, Dec 14, 2016 at 7:30 PM, <aleksey.maksi...@it-kb.ru> wrote:

> Derek, thank you for participating.
>
> In the end, I completed the task (OVA imported).
> The root of the problem is that I tried to use the import with thin
> provision.
> But there is a known issue https://bugzilla.redhat.com/
> show_bug.cgi?id=1382404
> Workaround: Import VM from OVA as preallocated
> It's not a very good solution, but it is better than nothing
>
> 14.12.2016, 17:50, "Derek Atkins" <de...@ihtfp.com>:
> > Hi Aleksey,
> >
> > One more question for debugging purposes: How long does the import go
> > before it dies? Do you have enough time to run:
> >
> >   ps aux | grep virt-v2v
> >
> > On the import host while it's running? This might help us determine
> > where it's trying to store the data. It should be storing it in the
> > target storage, but it's possible that it's using temp space and then
> > running out.
> >
> > -derek
> >
> > aleksey.maksi...@it-kb.ru writes:
> >
> >>  Hi Shahar.
> >>
> >>  Look at the attached screenshot
> >>
> >>  14.12.2016, 12:15, "Shahar Havivi" <shav...@redhat.com>:
> >>
> >>  Hi,
> >>  I was able to import your VMs with storage domain that had 350GB
> free.
> >>  Your ova have a disk with 1GB actual size and 256 virtual size -
> when I
> >>  try to import to a storage with 50G I got the error that you had.
> >>
> >>  if you will look at /var/log/vdsm/import/... you will see the logs
> of each
> >>  import,
> >>  In the one that fail I found this line:
> >>  qemu-img: error while writing sector 423174528: No space left on
> device
> >>
> >>  virt-v2v try to convert via qemu-img the img from vmdk to qcow and
> >>  encountered free space issue in the storage domain.
> >>
> >>  Please consider asking the mailing list  libgues...@redhat.com
> about this
> >>  issue or try to increase your storage domain if you want a quick
> fix.
> >>
> >>  The reason that I think you where able to import via the virt-v2v
> command
> >>  is the usage of 'virt-v2v -o null' which is not writing to the
> disk.
> >>
> >>  Shahar.
> >>
> >>  On Tue, Dec 13, 2016 at 12:54 PM, <aleksey.maksi...@it-kb.ru>
> wrote:
> >>
> >>  Engine - oVirt Engine Version: 4.0.5.5-1.el7.centos (CentOS
> 7.2)
> >>
> >>  All Hosts:
> >>  OS Version:RHEL - 7 - 2.1511.el7.centos.2.10
> >>  OS Description:CentOS Linux 7 (Core)
> >>  Kernel Version:3.10.0 - 327.36.3.el7.x86_64
> >>  KVM Version:2.3.0 - 31.el7.16.1
> >>  LIBVIRT Version:libvirt-2.0.0-10.el7_3.2
> >>  VDSM Version:vdsm-4.18.15.3-1.el7.centos
> >>  SPICE Version:0.12.4 - 15.el7_2.2
> >>  GlusterFS Version:[N/A]
> >>  CEPH Version:librbd1-0.80.7-3.el7
> >>
> >>  [root@KOM-AD01-VM31 ~]# virt-v2v -V
> >>  virt-v2v 1.28.1
> >>
> >>  13.12.2016, 13:20, "Shahar Havivi" <shav...@redhat.com>:
> >>
> >>  version of Engine and Host and virt-v2v (which is running
> on your
> >>  host)
> >>  and are you running on Fedora, Centos ext?
> >>
> >>  On Tue, Dec 13, 2016 at 12:08 PM, <
> aleksey.maksi...@it-kb.ru>
> >>  wrote:
> >>
> >>  1. No. This is an unacceptable option for me
> >>  2. No. This is my first experience
> >>  3. Versions where? On Engine or on Host ?
> >>  4. Yes.
> >>
> >>  13.12.2016, 13:03, "Shahar Havivi" <shav...@redhat.com
> >:
> >>
> >>  Thanks you,
> >>  Several questions:
> >>  1. did you try to import the disk target as
> preallocate?
> >>  2. did you try to import other ova files?
> >>  3. can you please send us version of virt-v2v,
> vdsm and
> >>  engine and the os that you are running with.
> >>  4

Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-14 Thread Shahar Havivi
Hi,
I was able to import your VMs with storage domain that had 350GB free.
Your ova have a disk with 1GB actual size and 256 virtual size - when I try
to import to a storage with 50G I got the error that you had.

if you will look at /var/log/vdsm/import/... you will see the logs of each
import,
In the one that fail I found this line:
qemu-img: error while writing sector 423174528: No space left on device

virt-v2v try to convert via qemu-img the img from vmdk to qcow and
encountered free space issue in the storage domain.

Please consider asking the mailing list  libgues...@redhat.com about this
issue or try to increase your storage domain if you want a quick fix.

The reason that I think you where able to import via the virt-v2v command
is the usage of 'virt-v2v -o null' which is not writing to the disk.

Shahar.

On Tue, Dec 13, 2016 at 12:54 PM, <aleksey.maksi...@it-kb.ru> wrote:

> Engine - oVirt Engine Version: 4.0.5.5-1.el7.centos (CentOS 7.2)
>
> All Hosts:
> OS Version:RHEL - 7 - 2.1511.el7.centos.2.10
> OS Description:CentOS Linux 7 (Core)
> Kernel Version:3.10.0 - 327.36.3.el7.x86_64
> KVM Version:2.3.0 - 31.el7.16.1
> LIBVIRT Version:libvirt-2.0.0-10.el7_3.2
> VDSM Version:vdsm-4.18.15.3-1.el7.centos
> SPICE Version:0.12.4 - 15.el7_2.2
> GlusterFS Version:[N/A]
> CEPH Version:librbd1-0.80.7-3.el7
>
> [root@KOM-AD01-VM31 ~]# virt-v2v -V
> virt-v2v 1.28.1
>
>
> 13.12.2016, 13:20, "Shahar Havivi" <shav...@redhat.com>:
>
> version of Engine and Host and virt-v2v (which is running on your host)
> and are you running on Fedora, Centos ext?
>
>
> On Tue, Dec 13, 2016 at 12:08 PM, <aleksey.maksi...@it-kb.ru> wrote:
>
> 1. No. This is an unacceptable option for me
> 2. No. This is my first experience
> 3. Versions where? On Engine or on Host ?
> 4. Yes.
>
>
> 13.12.2016, 13:03, "Shahar Havivi" <shav...@redhat.com>:
>
> Thanks you,
> Several questions:
> 1. did you try to import the disk target as preallocate?
> 2. did you try to import other ova files?
> 3. can you please send us version of virt-v2v, vdsm and engine and the os
> that you are running with.
> 4. Is it possible for you to share the ova file?
>
> Thank you,
>  Shahar.
>
> On Tue, Dec 13, 2016 at 11:23 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Log attached
>
> 13.12.2016, 11:32, "Shahar Havivi" <shav...@redhat.com>:
>
> Thank you,
> We need the vdsm log as well please - its the host that you try to import
> the ova from under /var/log/vdsm/vdsm.log
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 9:58 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Log attached
>
> 13.12.2016, 10:04, "Shahar Havivi" <shav...@redhat.com>:
>
> Please attach the log and will see what the error is.
>
> On Tue, Dec 13, 2016 at 9:01 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Preallocated ?
> I'm trying to import image of virtual appliance "HP 3PAR Virtual Service
> Processor"
> This virtual machine has drive 256GB. But really, this is a 40GB disk
> never grows. I don't want to waste that much disk space.
>
> There is no other way ?
>
> 13.12.2016, 09:53, "Shahar Havivi" <shav...@redhat.com>:
>
> Ok
> so try to import as preallocated and attach the log if you have any errors.
>
> Shahar.
>
> On Tue, Dec 13, 2016 at 8:47 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
>
> All my Data-Domains - FC SAN. Not ISCSI.
>
>
> 13.12.2016, 09:41, "Shahar Havivi" <shav...@redhat.com>:
>
> What is the type of the target storage domain that you try to import
> to?(nfs or iscsi)
> if its iscsi try to change it to preallocate instead of thin-provision,
> also please attach the engine log if you have more problems.
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 7:08 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> # LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i ova
> /tmp/rhel_Vsp-4.4.0.GA-53.ova -of raw -o null
>
> 
> fsync /dev/sda
> guestfsd: main_loop: proc 282 (internal_autosync) took 0.01 seconds
> libguestfs: trace: internal_autosync = 0
> libguestfs: sending SIGTERM to process 3338
> libguestfs: trace: shutdown = 0
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x2880a10 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsrxuByo
> [  99.0] Checking if the guest needs BIOS or UEFI to boot
> [  99.0] Copying disk 1/1 to /var/tmp/null.lP6vGa/sda (raw)
> target_file = /var/tmp/null.lP6vGa/sda
> target_format = raw
> target_estimated_size = 13480052354
> target_overlay = /var/tmp/v2vovle81937.qcow2
> target_overlay.ov_source = /var/tmp/ova.zJ6ks8/rhel_Vsp

Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-13 Thread Shahar Havivi
version of Engine and Host and virt-v2v (which is running on your host)
and are you running on Fedora, Centos ext?


On Tue, Dec 13, 2016 at 12:08 PM, <aleksey.maksi...@it-kb.ru> wrote:

> 1. No. This is an unacceptable option for me
> 2. No. This is my first experience
> 3. Versions where? On Engine or on Host ?
> 4. Yes.
>
>
> 13.12.2016, 13:03, "Shahar Havivi" <shav...@redhat.com>:
>
> Thanks you,
> Several questions:
> 1. did you try to import the disk target as preallocate?
> 2. did you try to import other ova files?
> 3. can you please send us version of virt-v2v, vdsm and engine and the os
> that you are running with.
> 4. Is it possible for you to share the ova file?
>
> Thank you,
>  Shahar.
>
> On Tue, Dec 13, 2016 at 11:23 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Log attached
>
> 13.12.2016, 11:32, "Shahar Havivi" <shav...@redhat.com>:
>
> Thank you,
> We need the vdsm log as well please - its the host that you try to import
> the ova from under /var/log/vdsm/vdsm.log
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 9:58 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Log attached
>
> 13.12.2016, 10:04, "Shahar Havivi" <shav...@redhat.com>:
>
> Please attach the log and will see what the error is.
>
> On Tue, Dec 13, 2016 at 9:01 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Preallocated ?
> I'm trying to import image of virtual appliance "HP 3PAR Virtual Service
> Processor"
> This virtual machine has drive 256GB. But really, this is a 40GB disk
> never grows. I don't want to waste that much disk space.
>
> There is no other way ?
>
> 13.12.2016, 09:53, "Shahar Havivi" <shav...@redhat.com>:
>
> Ok
> so try to import as preallocated and attach the log if you have any errors.
>
> Shahar.
>
> On Tue, Dec 13, 2016 at 8:47 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
>
> All my Data-Domains - FC SAN. Not ISCSI.
>
>
> 13.12.2016, 09:41, "Shahar Havivi" <shav...@redhat.com>:
>
> What is the type of the target storage domain that you try to import
> to?(nfs or iscsi)
> if its iscsi try to change it to preallocate instead of thin-provision,
> also please attach the engine log if you have more problems.
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 7:08 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> # LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i ova
> /tmp/rhel_Vsp-4.4.0.GA-53.ova -of raw -o null
>
> 
> fsync /dev/sda
> guestfsd: main_loop: proc 282 (internal_autosync) took 0.01 seconds
> libguestfs: trace: internal_autosync = 0
> libguestfs: sending SIGTERM to process 3338
> libguestfs: trace: shutdown = 0
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x2880a10 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsrxuByo
> [  99.0] Checking if the guest needs BIOS or UEFI to boot
> [  99.0] Copying disk 1/1 to /var/tmp/null.lP6vGa/sda (raw)
> target_file = /var/tmp/null.lP6vGa/sda
> target_format = raw
> target_estimated_size = 13480052354
> target_overlay = /var/tmp/v2vovle81937.qcow2
> target_overlay.ov_source = /var/tmp/ova.zJ6ks8/rhel_Vsp-
> 4.4.0.GA-53-disk1.vmdk
> qemu-img convert -p -n -f qcow2 -O 'raw' '/var/tmp/v2vovle81937.qcow2'
> '/var/tmp/null.lP6vGa/sda'
> (100.00/100%)
> virtual copying rate: 95364.1 M bits/sec
> real copying rate: 811.7 M bits/sec
> sda: estimate 13480052354 (12.6G) versus actual 2339610624 (2.2G): 476.2%
> [ 126.0] Creating output metadata
> [ 126.0] Finishing off
>
>
> The output is very voluminous. Errors are seen.
>
>
>
> 13.12.2016, 07:59, "aleksey.maksi...@it-kb.ru" <aleksey.maksi...@it-kb.ru
> >:
> > -bash: annotate-output: command not found
> >
> > 12.12.2016, 21:26, "Derek Atkins" <de...@ihtfp.com>:
> >>  Hi,
> >>
> >>  What happened when you ran the virt-v2v command I suggested?
> >>
> >>  -derek
> >>
> >>  On Mon, December 12, 2016 12:32 pm, aleksey.maksi...@it-kb.ru wrote:
> >>>   I mount 5TB nfs-share to my host and tried to import OVA from this
> >>>   mount-point.
> >>>   Exact same error.
> >>>
> >>>   Do the import process attempts to use 256G inside the Engine virtual
> >>>   machine ???
> >>>
> >>>   12.12.2016, 18:01, "aleksey.maksi...@it-kb.ru"
> >>>   <aleksey.maksi...@it-kb.ru>:
> >>>>   1.2G is real OVA image size.
> >>>>   256G is virtual disk size.
> >>>>   Could this be a problem?
>

Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-13 Thread Shahar Havivi
Thanks you,
Several questions:
1. did you try to import the disk target as preallocate?
2. did you try to import other ova files?
3. can you please send us version of virt-v2v, vdsm and engine and the os
that you are running with.
4. Is it possible for you to share the ova file?

Thank you,
 Shahar.

On Tue, Dec 13, 2016 at 11:23 AM, <aleksey.maksi...@it-kb.ru> wrote:

> Log attached
>
> 13.12.2016, 11:32, "Shahar Havivi" <shav...@redhat.com>:
>
> Thank you,
> We need the vdsm log as well please - its the host that you try to import
> the ova from under /var/log/vdsm/vdsm.log
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 9:58 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Log attached
>
> 13.12.2016, 10:04, "Shahar Havivi" <shav...@redhat.com>:
>
> Please attach the log and will see what the error is.
>
> On Tue, Dec 13, 2016 at 9:01 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Preallocated ?
> I'm trying to import image of virtual appliance "HP 3PAR Virtual Service
> Processor"
> This virtual machine has drive 256GB. But really, this is a 40GB disk
> never grows. I don't want to waste that much disk space.
>
> There is no other way ?
>
> 13.12.2016, 09:53, "Shahar Havivi" <shav...@redhat.com>:
>
> Ok
> so try to import as preallocated and attach the log if you have any errors.
>
> Shahar.
>
> On Tue, Dec 13, 2016 at 8:47 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
>
> All my Data-Domains - FC SAN. Not ISCSI.
>
>
> 13.12.2016, 09:41, "Shahar Havivi" <shav...@redhat.com>:
>
> What is the type of the target storage domain that you try to import
> to?(nfs or iscsi)
> if its iscsi try to change it to preallocate instead of thin-provision,
> also please attach the engine log if you have more problems.
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 7:08 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> # LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i ova
> /tmp/rhel_Vsp-4.4.0.GA-53.ova -of raw -o null
>
> 
> fsync /dev/sda
> guestfsd: main_loop: proc 282 (internal_autosync) took 0.01 seconds
> libguestfs: trace: internal_autosync = 0
> libguestfs: sending SIGTERM to process 3338
> libguestfs: trace: shutdown = 0
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x2880a10 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsrxuByo
> [  99.0] Checking if the guest needs BIOS or UEFI to boot
> [  99.0] Copying disk 1/1 to /var/tmp/null.lP6vGa/sda (raw)
> target_file = /var/tmp/null.lP6vGa/sda
> target_format = raw
> target_estimated_size = 13480052354
> target_overlay = /var/tmp/v2vovle81937.qcow2
> target_overlay.ov_source = /var/tmp/ova.zJ6ks8/rhel_Vsp-
> 4.4.0.GA-53-disk1.vmdk
> qemu-img convert -p -n -f qcow2 -O 'raw' '/var/tmp/v2vovle81937.qcow2'
> '/var/tmp/null.lP6vGa/sda'
> (100.00/100%)
> virtual copying rate: 95364.1 M bits/sec
> real copying rate: 811.7 M bits/sec
> sda: estimate 13480052354 (12.6G) versus actual 2339610624 (2.2G): 476.2%
> [ 126.0] Creating output metadata
> [ 126.0] Finishing off
>
>
> The output is very voluminous. Errors are seen.
>
>
>
> 13.12.2016, 07:59, "aleksey.maksi...@it-kb.ru" <aleksey.maksi...@it-kb.ru
> >:
> > -bash: annotate-output: command not found
> >
> > 12.12.2016, 21:26, "Derek Atkins" <de...@ihtfp.com>:
> >>  Hi,
> >>
> >>  What happened when you ran the virt-v2v command I suggested?
> >>
> >>  -derek
> >>
> >>  On Mon, December 12, 2016 12:32 pm, aleksey.maksi...@it-kb.ru wrote:
> >>>   I mount 5TB nfs-share to my host and tried to import OVA from this
> >>>   mount-point.
> >>>   Exact same error.
> >>>
> >>>   Do the import process attempts to use 256G inside the Engine virtual
> >>>   machine ???
> >>>
> >>>   12.12.2016, 18:01, "aleksey.maksi...@it-kb.ru"
> >>>   <aleksey.maksi...@it-kb.ru>:
> >>>>   1.2G is real OVA image size.
> >>>>   256G is virtual disk size.
> >>>>   Could this be a problem?
> >>>>
> >>>>   But before I start the import, in the settings I choose "Thin
> provision"
> >>>>   (see the attached screenshot)
> >>>>
> >>>>   12.12.2016, 17:47, "aleksey.maksi...@it-kb.ru"
> >>>>   <aleksey.maksi...@it-kb.ru>:
> >>>>>Hi Derek
> >>>>>
> >>>>># df -H /tmp/
> >>>>>
&

Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-13 Thread Shahar Havivi
Thank you,
We need the vdsm log as well please - its the host that you try to import
the ova from under /var/log/vdsm/vdsm.log

 Shahar.

On Tue, Dec 13, 2016 at 9:58 AM, <aleksey.maksi...@it-kb.ru> wrote:

> Log attached
>
> 13.12.2016, 10:04, "Shahar Havivi" <shav...@redhat.com>:
>
> Please attach the log and will see what the error is.
>
> On Tue, Dec 13, 2016 at 9:01 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> Preallocated ?
> I'm trying to import image of virtual appliance "HP 3PAR Virtual Service
> Processor"
> This virtual machine has drive 256GB. But really, this is a 40GB disk
> never grows. I don't want to waste that much disk space.
>
> There is no other way ?
>
> 13.12.2016, 09:53, "Shahar Havivi" <shav...@redhat.com>:
>
> Ok
> so try to import as preallocated and attach the log if you have any errors.
>
> Shahar.
>
> On Tue, Dec 13, 2016 at 8:47 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
>
> All my Data-Domains - FC SAN. Not ISCSI.
>
>
> 13.12.2016, 09:41, "Shahar Havivi" <shav...@redhat.com>:
>
> What is the type of the target storage domain that you try to import
> to?(nfs or iscsi)
> if its iscsi try to change it to preallocate instead of thin-provision,
> also please attach the engine log if you have more problems.
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 7:08 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> # LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i ova
> /tmp/rhel_Vsp-4.4.0.GA-53.ova -of raw -o null
>
> 
> fsync /dev/sda
> guestfsd: main_loop: proc 282 (internal_autosync) took 0.01 seconds
> libguestfs: trace: internal_autosync = 0
> libguestfs: sending SIGTERM to process 3338
> libguestfs: trace: shutdown = 0
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x2880a10 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsrxuByo
> [  99.0] Checking if the guest needs BIOS or UEFI to boot
> [  99.0] Copying disk 1/1 to /var/tmp/null.lP6vGa/sda (raw)
> target_file = /var/tmp/null.lP6vGa/sda
> target_format = raw
> target_estimated_size = 13480052354
> target_overlay = /var/tmp/v2vovle81937.qcow2
> target_overlay.ov_source = /var/tmp/ova.zJ6ks8/rhel_Vsp-
> 4.4.0.GA-53-disk1.vmdk
> qemu-img convert -p -n -f qcow2 -O 'raw' '/var/tmp/v2vovle81937.qcow2'
> '/var/tmp/null.lP6vGa/sda'
> (100.00/100%)
> virtual copying rate: 95364.1 M bits/sec
> real copying rate: 811.7 M bits/sec
> sda: estimate 13480052354 (12.6G) versus actual 2339610624 (2.2G): 476.2%
> [ 126.0] Creating output metadata
> [ 126.0] Finishing off
>
>
> The output is very voluminous. Errors are seen.
>
>
>
> 13.12.2016, 07:59, "aleksey.maksi...@it-kb.ru" <aleksey.maksi...@it-kb.ru
> >:
> > -bash: annotate-output: command not found
> >
> > 12.12.2016, 21:26, "Derek Atkins" <de...@ihtfp.com>:
> >>  Hi,
> >>
> >>  What happened when you ran the virt-v2v command I suggested?
> >>
> >>  -derek
> >>
> >>  On Mon, December 12, 2016 12:32 pm, aleksey.maksi...@it-kb.ru wrote:
> >>>   I mount 5TB nfs-share to my host and tried to import OVA from this
> >>>   mount-point.
> >>>   Exact same error.
> >>>
> >>>   Do the import process attempts to use 256G inside the Engine virtual
> >>>   machine ???
> >>>
> >>>   12.12.2016, 18:01, "aleksey.maksi...@it-kb.ru"
> >>>   <aleksey.maksi...@it-kb.ru>:
> >>>>   1.2G is real OVA image size.
> >>>>   256G is virtual disk size.
> >>>>   Could this be a problem?
> >>>>
> >>>>   But before I start the import, in the settings I choose "Thin
> provision"
> >>>>   (see the attached screenshot)
> >>>>
> >>>>   12.12.2016, 17:47, "aleksey.maksi...@it-kb.ru"
> >>>>   <aleksey.maksi...@it-kb.ru>:
> >>>>>Hi Derek
> >>>>>
> >>>>># df -H /tmp/
> >>>>>
> >>>>>Filesystem Size Used Avail Use% Mounted on
> >>>>>/dev/cciss/c0d0p2 53G 5.7G 45G 12% /
> >>>>>
> >>>>>But my OVA file size - 1.2G
> >>>>>
> >>>>>12.12.2016, 17:26, "Derek Atkins" <de...@ihtfp.com>:
> >>>>>> Hi,
> >>>>>>
> >>>>>> Did you perhaps run out of disk space in /tmp? I'm not sure
> where
> >>>>

Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-12 Thread Shahar Havivi
Please attach the log and will see what the error is.

On Tue, Dec 13, 2016 at 9:01 AM, <aleksey.maksi...@it-kb.ru> wrote:

> Preallocated ?
> I'm trying to import image of virtual appliance "HP 3PAR Virtual Service
> Processor"
> This virtual machine has drive 256GB. But really, this is a 40GB disk
> never grows. I don't want to waste that much disk space.
>
> There is no other way ?
>
> 13.12.2016, 09:53, "Shahar Havivi" <shav...@redhat.com>:
>
> Ok
> so try to import as preallocated and attach the log if you have any errors.
>
> Shahar.
>
> On Tue, Dec 13, 2016 at 8:47 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
>
> All my Data-Domains - FC SAN. Not ISCSI.
>
>
> 13.12.2016, 09:41, "Shahar Havivi" <shav...@redhat.com>:
>
> What is the type of the target storage domain that you try to import
> to?(nfs or iscsi)
> if its iscsi try to change it to preallocate instead of thin-provision,
> also please attach the engine log if you have more problems.
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 7:08 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> # LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i ova
> /tmp/rhel_Vsp-4.4.0.GA-53.ova -of raw -o null
>
> 
> fsync /dev/sda
> guestfsd: main_loop: proc 282 (internal_autosync) took 0.01 seconds
> libguestfs: trace: internal_autosync = 0
> libguestfs: sending SIGTERM to process 3338
> libguestfs: trace: shutdown = 0
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x2880a10 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsrxuByo
> [  99.0] Checking if the guest needs BIOS or UEFI to boot
> [  99.0] Copying disk 1/1 to /var/tmp/null.lP6vGa/sda (raw)
> target_file = /var/tmp/null.lP6vGa/sda
> target_format = raw
> target_estimated_size = 13480052354
> target_overlay = /var/tmp/v2vovle81937.qcow2
> target_overlay.ov_source = /var/tmp/ova.zJ6ks8/rhel_Vsp-
> 4.4.0.GA-53-disk1.vmdk
> qemu-img convert -p -n -f qcow2 -O 'raw' '/var/tmp/v2vovle81937.qcow2'
> '/var/tmp/null.lP6vGa/sda'
> (100.00/100%)
> virtual copying rate: 95364.1 M bits/sec
> real copying rate: 811.7 M bits/sec
> sda: estimate 13480052354 (12.6G) versus actual 2339610624 (2.2G): 476.2%
> [ 126.0] Creating output metadata
> [ 126.0] Finishing off
>
>
> The output is very voluminous. Errors are seen.
>
>
>
> 13.12.2016, 07:59, "aleksey.maksi...@it-kb.ru" <aleksey.maksi...@it-kb.ru
> >:
> > -bash: annotate-output: command not found
> >
> > 12.12.2016, 21:26, "Derek Atkins" <de...@ihtfp.com>:
> >>  Hi,
> >>
> >>  What happened when you ran the virt-v2v command I suggested?
> >>
> >>  -derek
> >>
> >>  On Mon, December 12, 2016 12:32 pm, aleksey.maksi...@it-kb.ru wrote:
> >>>   I mount 5TB nfs-share to my host and tried to import OVA from this
> >>>   mount-point.
> >>>   Exact same error.
> >>>
> >>>   Do the import process attempts to use 256G inside the Engine virtual
> >>>   machine ???
> >>>
> >>>   12.12.2016, 18:01, "aleksey.maksi...@it-kb.ru"
> >>>   <aleksey.maksi...@it-kb.ru>:
> >>>>   1.2G is real OVA image size.
> >>>>   256G is virtual disk size.
> >>>>   Could this be a problem?
> >>>>
> >>>>   But before I start the import, in the settings I choose "Thin
> provision"
> >>>>   (see the attached screenshot)
> >>>>
> >>>>   12.12.2016, 17:47, "aleksey.maksi...@it-kb.ru"
> >>>>   <aleksey.maksi...@it-kb.ru>:
> >>>>>Hi Derek
> >>>>>
> >>>>># df -H /tmp/
> >>>>>
> >>>>>Filesystem Size Used Avail Use% Mounted on
> >>>>>/dev/cciss/c0d0p2 53G 5.7G 45G 12% /
> >>>>>
> >>>>>But my OVA file size - 1.2G
> >>>>>
> >>>>>12.12.2016, 17:26, "Derek Atkins" <de...@ihtfp.com>:
> >>>>>> Hi,
> >>>>>>
> >>>>>> Did you perhaps run out of disk space in /tmp? I'm not sure
> where
> >>>>>>   the
> >>>>>> virt-v2v does it work, but the error "Conversion of VM from
> exteral
> >>>>>> enironment failed: copy-disk stream closed unexpectedly" seems
> to
> >>>>>>   imply an
> >>>>>> error t

Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-12 Thread Shahar Havivi
Ok
so try to import as preallocated and attach the log if you have any errors.

Shahar.

On Tue, Dec 13, 2016 at 8:47 AM, <aleksey.maksi...@it-kb.ru> wrote:

>
> All my Data-Domains - FC SAN. Not ISCSI.
>
>
> 13.12.2016, 09:41, "Shahar Havivi" <shav...@redhat.com>:
>
> What is the type of the target storage domain that you try to import
> to?(nfs or iscsi)
> if its iscsi try to change it to preallocate instead of thin-provision,
> also please attach the engine log if you have more problems.
>
>  Shahar.
>
> On Tue, Dec 13, 2016 at 7:08 AM, <aleksey.maksi...@it-kb.ru> wrote:
>
> # LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i ova
> /tmp/rhel_Vsp-4.4.0.GA-53.ova -of raw -o null
>
> 
> fsync /dev/sda
> guestfsd: main_loop: proc 282 (internal_autosync) took 0.01 seconds
> libguestfs: trace: internal_autosync = 0
> libguestfs: sending SIGTERM to process 3338
> libguestfs: trace: shutdown = 0
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x2880a10 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsrxuByo
> [  99.0] Checking if the guest needs BIOS or UEFI to boot
> [  99.0] Copying disk 1/1 to /var/tmp/null.lP6vGa/sda (raw)
> target_file = /var/tmp/null.lP6vGa/sda
> target_format = raw
> target_estimated_size = 13480052354
> target_overlay = /var/tmp/v2vovle81937.qcow2
> target_overlay.ov_source = /var/tmp/ova.zJ6ks8/rhel_Vsp-
> 4.4.0.GA-53-disk1.vmdk
> qemu-img convert -p -n -f qcow2 -O 'raw' '/var/tmp/v2vovle81937.qcow2'
> '/var/tmp/null.lP6vGa/sda'
> (100.00/100%)
> virtual copying rate: 95364.1 M bits/sec
> real copying rate: 811.7 M bits/sec
> sda: estimate 13480052354 (12.6G) versus actual 2339610624 (2.2G): 476.2%
> [ 126.0] Creating output metadata
> [ 126.0] Finishing off
>
>
> The output is very voluminous. Errors are seen.
>
>
>
> 13.12.2016, 07:59, "aleksey.maksi...@it-kb.ru" <aleksey.maksi...@it-kb.ru
> >:
> > -bash: annotate-output: command not found
> >
> > 12.12.2016, 21:26, "Derek Atkins" <de...@ihtfp.com>:
> >>  Hi,
> >>
> >>  What happened when you ran the virt-v2v command I suggested?
> >>
> >>  -derek
> >>
> >>  On Mon, December 12, 2016 12:32 pm, aleksey.maksi...@it-kb.ru wrote:
> >>>   I mount 5TB nfs-share to my host and tried to import OVA from this
> >>>   mount-point.
> >>>   Exact same error.
> >>>
> >>>   Do the import process attempts to use 256G inside the Engine virtual
> >>>   machine ???
> >>>
> >>>   12.12.2016, 18:01, "aleksey.maksi...@it-kb.ru"
> >>>   <aleksey.maksi...@it-kb.ru>:
> >>>>   1.2G is real OVA image size.
> >>>>   256G is virtual disk size.
> >>>>   Could this be a problem?
> >>>>
> >>>>   But before I start the import, in the settings I choose "Thin
> provision"
> >>>>   (see the attached screenshot)
> >>>>
> >>>>   12.12.2016, 17:47, "aleksey.maksi...@it-kb.ru"
> >>>>   <aleksey.maksi...@it-kb.ru>:
> >>>>>Hi Derek
> >>>>>
> >>>>># df -H /tmp/
> >>>>>
> >>>>>Filesystem Size Used Avail Use% Mounted on
> >>>>>/dev/cciss/c0d0p2 53G 5.7G 45G 12% /
> >>>>>
> >>>>>But my OVA file size - 1.2G
> >>>>>
> >>>>>12.12.2016, 17:26, "Derek Atkins" <de...@ihtfp.com>:
> >>>>>> Hi,
> >>>>>>
> >>>>>> Did you perhaps run out of disk space in /tmp? I'm not sure
> where
> >>>>>>   the
> >>>>>> virt-v2v does it work, but the error "Conversion of VM from
> exteral
> >>>>>> enironment failed: copy-disk stream closed unexpectedly" seems
> to
> >>>>>>   imply an
> >>>>>> error there.
> >>>>>>
> >>>>>> I had no issues myself on 4.0.5 (modulo setfiles taking a very
> long
> >>>>>>   time
> >>>>>> in a few cases).
> >>>>>>
> >>>>>> -derek
> >>>>>>
> >>>>>> On Mon, December 12, 2016 9:19 am, aleksey.maksi...@it-kb.ru
> wrote:
> >>>>>>>  Hello oVirt guru`s!
> >>>>>>>
> >>>>>>>

Re: [ovirt-users] How can I import VMWare OVA file to oVirt 4.0?

2016-12-12 Thread Shahar Havivi
What is the type of the target storage domain that you try to import
to?(nfs or iscsi)
if its iscsi try to change it to preallocate instead of thin-provision,
also please attach the engine log if you have more problems.

 Shahar.

On Tue, Dec 13, 2016 at 7:08 AM,  wrote:

> # LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i ova
> /tmp/rhel_Vsp-4.4.0.GA-53.ova -of raw -o null
>
> 
> fsync /dev/sda
> guestfsd: main_loop: proc 282 (internal_autosync) took 0.01 seconds
> libguestfs: trace: internal_autosync = 0
> libguestfs: sending SIGTERM to process 3338
> libguestfs: trace: shutdown = 0
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x2880a10 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsrxuByo
> [  99.0] Checking if the guest needs BIOS or UEFI to boot
> [  99.0] Copying disk 1/1 to /var/tmp/null.lP6vGa/sda (raw)
> target_file = /var/tmp/null.lP6vGa/sda
> target_format = raw
> target_estimated_size = 13480052354
> target_overlay = /var/tmp/v2vovle81937.qcow2
> target_overlay.ov_source = /var/tmp/ova.zJ6ks8/rhel_Vsp-
> 4.4.0.GA-53-disk1.vmdk
> qemu-img convert -p -n -f qcow2 -O 'raw' '/var/tmp/v2vovle81937.qcow2'
> '/var/tmp/null.lP6vGa/sda'
> (100.00/100%)
> virtual copying rate: 95364.1 M bits/sec
> real copying rate: 811.7 M bits/sec
> sda: estimate 13480052354 (12.6G) versus actual 2339610624 (2.2G): 476.2%
> [ 126.0] Creating output metadata
> [ 126.0] Finishing off
>
>
> The output is very voluminous. Errors are seen.
>
>
>
> 13.12.2016, 07:59, "aleksey.maksi...@it-kb.ru"  >:
> > -bash: annotate-output: command not found
> >
> > 12.12.2016, 21:26, "Derek Atkins" :
> >>  Hi,
> >>
> >>  What happened when you ran the virt-v2v command I suggested?
> >>
> >>  -derek
> >>
> >>  On Mon, December 12, 2016 12:32 pm, aleksey.maksi...@it-kb.ru wrote:
> >>>   I mount 5TB nfs-share to my host and tried to import OVA from this
> >>>   mount-point.
> >>>   Exact same error.
> >>>
> >>>   Do the import process attempts to use 256G inside the Engine virtual
> >>>   machine ???
> >>>
> >>>   12.12.2016, 18:01, "aleksey.maksi...@it-kb.ru"
> >>>   :
>    1.2G is real OVA image size.
>    256G is virtual disk size.
>    Could this be a problem?
> 
>    But before I start the import, in the settings I choose "Thin
> provision"
>    (see the attached screenshot)
> 
>    12.12.2016, 17:47, "aleksey.maksi...@it-kb.ru"
>    :
> >Hi Derek
> >
> ># df -H /tmp/
> >
> >Filesystem Size Used Avail Use% Mounted on
> >/dev/cciss/c0d0p2 53G 5.7G 45G 12% /
> >
> >But my OVA file size - 1.2G
> >
> >12.12.2016, 17:26, "Derek Atkins" :
> >> Hi,
> >>
> >> Did you perhaps run out of disk space in /tmp? I'm not sure
> where
> >>   the
> >> virt-v2v does it work, but the error "Conversion of VM from
> exteral
> >> enironment failed: copy-disk stream closed unexpectedly" seems
> to
> >>   imply an
> >> error there.
> >>
> >> I had no issues myself on 4.0.5 (modulo setfiles taking a very
> long
> >>   time
> >> in a few cases).
> >>
> >> -derek
> >>
> >> On Mon, December 12, 2016 9:19 am, aleksey.maksi...@it-kb.ru
> wrote:
> >>>  Hello oVirt guru`s!
> >>>
> >>>  In the process of importing from OVA file (from
> >>>  /tmp/rhel_Vsp-4.4.0.GA-53.ova in one of hosts) VM first
> appears in
> >>>   the web
> >>>  console, then disappears.
> >>>
> >>>  In the oVirt Engine log:
> >>>
> >>>  ...
> >>>  2016-12-12 16:55:20,209 INFO
> >>>  [org.ovirt.engine.core.bll.exportimport.
> ImportVmFromOvaCommand]
> >>>   (default
> >>>  task-28) [6179021a] Lock Acquired to object
> >>>  'EngineLock:{exclusiveLocks='[rhel_Vsp-4.4.0.GA-53= >>>  ACTION_TYPE_FAILED_NAME_ALREADY_USED>,
> >>>  2a3d20f9-502a-4c60-8c14-371456cd4c99= >>>  ACTION_TYPE_FAILED_VM_IS_BEING_IMPORTED$VmName
> >>>   rhel_Vsp-4.4.0.GA-53>]',
> >>>  sharedLocks='null'}'
> >>>  2016-12-12 16:55:20,326 WARN
> >>>  [org.ovirt.engine.core.dal.job.ExecutionMessageDirector]
> >>>  (org.ovirt.thread.pool-6-thread-35) [6179021a] The message
> key
> >>>  'ImportVmFromOva' is missing from 'bundles/ExecutionMessages'
> >>>  ...
> >>>  2016-12-12 16:57:34,758 INFO
> >>>  [org.ovirt.engine.core.bll.exportimport.ConvertVmCallback]
> >>>  (DefaultQuartzScheduler4) [27df05b8] Conversion of VM from
> exteral
> >>>  enironment failed: copy-disk stream closed unexpectedly
> >>>  2016-12-12 16:57:35,761 ERROR
> >>>  [org.ovirt.engine.core.bll.exportimport.ConvertOvaCommand]
> 

Re: [ovirt-users] OVA Import - Failed to convert VM

2016-12-06 Thread Shahar Havivi
Sure, glad it been solved.

 Shahar.

On Tue, Dec 6, 2016 at 10:41 PM, Nate T. Llaneza <nllan...@citsnc.com>
wrote:

> Hey Shahar,
>
>
>
> I have been doing even more “googling” today, and I stumbled upon this
> article: https://www.mail-archive.com/users@ovirt.org/msg36886.html. I
> was able to fix the issue by running a yum update –enablerepo=cr on one of
> my test hosts. It works now! Thank you for your help.
>
>
>
>
>
> *From: *Shahar Havivi <shav...@redhat.com>
> *Sent: *Tuesday, December 6, 2016 7:26 AM
> *To: *Nate T. Llaneza <nllan...@citsnc.com>; users@ovirt.org
>
> *Subject: *Re: [ovirt-users] OVA Import - Failed to convert VM
>
>
> Thanks Nate,
> The Engine log is correct but the vdsm one is without the error, it maybe
> the wrong host, the log that we expected is the one you named CTI04.
> If you try to import again please make sure you select the right host in
> the import dialog.
>
>  Shahar.
>
> On Tue, Dec 6, 2016 at 1:48 PM, Nate T. Llaneza <nllan...@citsnc.com>
> wrote:
>
>> I cleared the log files and re-attempted to import the ova. This should
>> be everything plus a little. Thanks again!
>>
>>
>>
>>
>>
>>
>>
>> *From: *Shahar Havivi <shav...@redhat.com>
>> *Sent: *Monday, December 5, 2016 4:26 AM
>> *To: *Nate T. Llaneza <nllan...@citsnc.com>
>> *Subject: *Re: [ovirt-users] OVA Import - Failed to convert VM
>>
>>
>>
>> HI,
>>
>> The log don't show the error.
>>
>> Please send the right part of the log and vdsm log as well.
>>
>>
>>
>> Thanks you,
>>
>>   Shahar.
>>
>>
>>
>> On Fri, Dec 2, 2016 at 6:55 PM, Nate T. Llaneza <nllan...@citsnc.com>
>> wrote:
>>
>> Hey All,
>>
>>
>>
>> I am trying to import a VM into oVirt. I am attempting to use the web
>> interface to do so. I started by exporting a ova file directly from VMware
>> Workstation. I uploaded the file to the local hard disk of a virtual host.
>> Changed the permissions on the file to 36:36. The last step from what I can
>> see was to go into the web interface and "import" the VM. I used the VMware
>> Virtual Appliance as the source and specified the local path to the ova. It
>> detected the ova, and I was able to move it into the "Virtual Machines to
>> Import" box. After oVirt starts the import of the VM it ends up failing
>> with the error "Failed to convert VM", and then shortly after it deletes
>> the VM.
>>
>>
>>
>> I am attaching a snippet of the engine.log, but I can't really make heads
>> or tails of the error messages in there. I am on oVirt 4.0.5. The virtual
>> host is running CentOS 7. Thanks in advance!
>>
>>
>>
>> Regards,
>>
>> Nathan Llaneza
>>
>> Systems Engineer
>>
>> Coastal IT Solutions of NC, LLC
>>
>>
>>
>>
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
>>
>>
>>
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] OVA Import - Failed to convert VM

2016-12-06 Thread Shahar Havivi
Thanks Nate,
The Engine log is correct but the vdsm one is without the error, it maybe
the wrong host, the log that we expected is the one you named CTI04.
If you try to import again please make sure you select the right host in
the import dialog.

 Shahar.

On Tue, Dec 6, 2016 at 1:48 PM, Nate T. Llaneza <nllan...@citsnc.com> wrote:

> I cleared the log files and re-attempted to import the ova. This should be
> everything plus a little. Thanks again!
>
>
>
>
>
>
>
> *From: *Shahar Havivi <shav...@redhat.com>
> *Sent: *Monday, December 5, 2016 4:26 AM
> *To: *Nate T. Llaneza <nllan...@citsnc.com>
> *Subject: *Re: [ovirt-users] OVA Import - Failed to convert VM
>
>
>
> HI,
>
> The log don't show the error.
>
> Please send the right part of the log and vdsm log as well.
>
>
>
> Thanks you,
>
>   Shahar.
>
>
>
> On Fri, Dec 2, 2016 at 6:55 PM, Nate T. Llaneza <nllan...@citsnc.com>
> wrote:
>
> Hey All,
>
>
>
> I am trying to import a VM into oVirt. I am attempting to use the web
> interface to do so. I started by exporting a ova file directly from VMware
> Workstation. I uploaded the file to the local hard disk of a virtual host.
> Changed the permissions on the file to 36:36. The last step from what I can
> see was to go into the web interface and "import" the VM. I used the VMware
> Virtual Appliance as the source and specified the local path to the ova. It
> detected the ova, and I was able to move it into the "Virtual Machines to
> Import" box. After oVirt starts the import of the VM it ends up failing
> with the error "Failed to convert VM", and then shortly after it deletes
> the VM.
>
>
>
> I am attaching a snippet of the engine.log, but I can't really make heads
> or tails of the error messages in there. I am on oVirt 4.0.5. The virtual
> host is running CentOS 7. Thanks in advance!
>
>
>
> Regards,
>
> Nathan Llaneza
>
> Systems Engineer
>
> Coastal IT Solutions of NC, LLC
>
>
>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] can't import vm from KVM host

2016-11-28 Thread Shahar Havivi
On 28.11.16 17:35, Nelson Lameiras wrote:
> Hello Shahar,
> 
> Actually, our production servers use pool storage (+block devices), so I 
> quickly tried to import from them and I have the same error : 0 disks 
> "declared" on each VM.
> 
> I tried the patch you advised last week, and eventhough it didn't work, 
> clearly the logs showed you are going in the right direction.
> I'm available to try other patches on my test setup. Do not hesitate to ask 
> me.
Thank you,
We are working now on new method to fetch block devices and hope soon there
will be patch.
Once you select a VM and press the "Next" button you don't see any disks?
If so please send me the libvirt dumpxml via virsh.

With the latest patch you suppose to see the disks data but it may fail for
block device when you start the import.
> 
> cordialement, regards, 
> Nelson LAMEIRAS 
> 
> Lyra Network 
> Service Projets et Processus 
> Tel : +33 (0) 5 32 09 09 70 
> 109 rue de l’innovation 
> 31670 Labège - France 
> www.lyra-network.com
> 
> - Original Message -
> From: "Shahar Havivi" <shav...@redhat.com>
> To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> Cc: "Tomas Golembiovsky" <tgole...@redhat.com>, "Michal Skrivanek" 
> <michal.skriva...@redhat.com>, users@ovirt.org
> Sent: Sunday, November 20, 2016 9:36:14 AM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 18.11.16 09:34, Nelson Lameiras wrote:
> > Hello Shahar,
> > 
> > I've rebuild my test system and installed recently released ovirt 4.0.5 + 
> > gerrit patch => still no luck. vdsm always gives me same error : 
> Hi,
> 
> yes once you have the alias you are half way there.
> but your alias path looks wrong, it starts with white-space:
> '/  var/lib/libvirt/images/rhel7.1.img'
> 
> check it via 'virsh -r dumpxml '
> and look if the white space are there two
> 
> regarding the pool you can check it too via virsh
> virsh pool-list
> and all pool-* commands (to create one), if you have problems building pool
> let me know.
> 
>  Shahar.
> > 
> > "
> > jsonrpc.Executor/6::ERROR::2016-11-17 
> > 16:38:56,320::v2v::934::root::(_add_disk_info) Error getting disk size
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 931, in 
> > _add_disk_info
> > vol = conn.storageVolLookupByPath(disk['alias'])
> >   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4596, in 
> > storageVolLookupByPath
> > if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
> > conn=self)
> > libvirtError: Volume de stockage introuvable : no storage vol with matching 
> > path '/dev/sdc'
> > jsonrpc.Executor/6::DEBUG::2016-11-17 
> > 16:38:56,325::__init__::555::jsonrpc.JsonRpcServer::(_handle_request) 
> > Return 'Host.getExternalVMs' in bridge with [{'status': 'Down', 'graphics': 
> > 'spice', 'arch': 'x86_64', 'disks': [ {'capacity': '8589934592', 'format': 
> > 'RAW', 'dev': 'hdd', 'allocation': '8589942784', 'alias': '/  
> > var/lib/libvirt/images/rhel7.1.img', 'type': 'disk'}, {'alias': '/dev/sdc', 
> > 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}], 'vmId': 
> > 'd0ddc4f6-a208-4286-a665-fb9e54d14bef', 'smp': 1, 'has_snapshots': False, 
> > 'video': 'qxl', 'memSize': 1  024, 'vmName': 'rhel7.1', 'networks': 
> > [{'model': 'virtio', 'macAddr': '52:54:00:00:d7:76', 'type': 'network'}]}]
> > "
> > 
> > FYI I added a normal disk (file based) to the VM ir order to try to 
> > understand what's happening. As expected, this disk is seen by the oVirt 
> > (without patch)
> > 
> > I do reckon something in the above log :
> > 
> >  'disks': [
> >{'capacity': '8589934592', 'format': 'RAW', 'dev': 'hdd', 'allocation': 
> > '8589942784', 'alias': '/  var/lib/libvirt/images/rhel7.1.img', 'type': 
> > 'disk'}, 
> >{'alias': '/dev/sdc', 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}
> >  ], 
> > 
> > the "alias" line is clearly new since it did not appear before de patch! 
> > something is working ;)
> > 
> > I confirm that when I created the test VM (via virt-manager), I gave 
> > directly the path to the device (/dev/sdc), so there is no "pool" to be 
> > addressed defined on libvirt! 
> > I read https://gerrit.ovirt.org/#/c/64272/4/ and I agree with Tomas 
> > findings : Currently the conversion process is expecting a volume on a pool 
> > and it's not able to use a block device directly.
> > 
> > So I'm

Re: [ovirt-users] can't import vm from KVM host

2016-11-21 Thread Shahar Havivi
Nelson, 
There is a new patch -
Please test it and if it fail can you send the vdsm error trace please.

 Shahar.
On 20.11.16 10:36, Shahar Havivi wrote:
> On 18.11.16 09:34, Nelson Lameiras wrote:
> > Hello Shahar,
> > 
> > I've rebuild my test system and installed recently released ovirt 4.0.5 + 
> > gerrit patch => still no luck. vdsm always gives me same error : 
> Hi,
> 
> yes once you have the alias you are half way there.
> but your alias path looks wrong, it starts with white-space:
> '/  var/lib/libvirt/images/rhel7.1.img'
> 
> check it via 'virsh -r dumpxml '
> and look if the white space are there two
> 
> regarding the pool you can check it too via virsh
> virsh pool-list
> and all pool-* commands (to create one), if you have problems building pool
> let me know.
> 
>  Shahar.
> > 
> > "
> > jsonrpc.Executor/6::ERROR::2016-11-17 
> > 16:38:56,320::v2v::934::root::(_add_disk_info) Error getting disk size
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 931, in 
> > _add_disk_info
> > vol = conn.storageVolLookupByPath(disk['alias'])
> >   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4596, in 
> > storageVolLookupByPath
> > if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
> > conn=self)
> > libvirtError: Volume de stockage introuvable : no storage vol with matching 
> > path '/dev/sdc'
> > jsonrpc.Executor/6::DEBUG::2016-11-17 
> > 16:38:56,325::__init__::555::jsonrpc.JsonRpcServer::(_handle_request) 
> > Return 'Host.getExternalVMs' in bridge with [{'status': 'Down', 'graphics': 
> > 'spice', 'arch': 'x86_64', 'disks': [ {'capacity': '8589934592', 'format': 
> > 'RAW', 'dev': 'hdd', 'allocation': '8589942784', 'alias': '/  
> > var/lib/libvirt/images/rhel7.1.img', 'type': 'disk'}, {'alias': '/dev/sdc', 
> > 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}], 'vmId': 
> > 'd0ddc4f6-a208-4286-a665-fb9e54d14bef', 'smp': 1, 'has_snapshots': False, 
> > 'video': 'qxl', 'memSize': 1  024, 'vmName': 'rhel7.1', 'networks': 
> > [{'model': 'virtio', 'macAddr': '52:54:00:00:d7:76', 'type': 'network'}]}]
> > "
> > 
> > FYI I added a normal disk (file based) to the VM ir order to try to 
> > understand what's happening. As expected, this disk is seen by the oVirt 
> > (without patch)
> > 
> > I do reckon something in the above log :
> > 
> >  'disks': [
> >{'capacity': '8589934592', 'format': 'RAW', 'dev': 'hdd', 'allocation': 
> > '8589942784', 'alias': '/  var/lib/libvirt/images/rhel7.1.img', 'type': 
> > 'disk'}, 
> >{'alias': '/dev/sdc', 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}
> >  ], 
> > 
> > the "alias" line is clearly new since it did not appear before de patch! 
> > something is working ;)
> > 
> > I confirm that when I created the test VM (via virt-manager), I gave 
> > directly the path to the device (/dev/sdc), so there is no "pool" to be 
> > addressed defined on libvirt! 
> > I read https://gerrit.ovirt.org/#/c/64272/4/ and I agree with Tomas 
> > findings : Currently the conversion process is expecting a volume on a pool 
> > and it's not able to use a block device directly.
> > 
> > So I'm hopping a solution can be found to this problem. We have a few 
> > hundreds VM waiting to be migrated in production and we don't have a NFS 
> > server, so this is our only option so far.
> > 
> > I'm able to test any patch quickly if needed, do not hesitate.
> > 
> > cordialement, regards, 
> > Nelson LAMEIRAS 
> > 
> > Lyra Network 
> > Service Projets et Processus 
> > Tel : +33 (0) 5 32 09 09 70 
> > 109 rue de l’innovation 
> > 31670 Labège - France 
> > www.lyra-network.com
> > 
> > - Original Message -
> > From: "Shahar Havivi" <shav...@redhat.com>
> > To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> > Cc: "Tomas Golembiovsky" <tgole...@redhat.com>, "Michal Skrivanek" 
> > <michal.skriva...@redhat.com>, users@ovirt.org
> > Sent: Tuesday, November 8, 2016 12:16:55 PM
> > Subject: Re: [ovirt-users] can't import vm from KVM host
> > 
> > On 08.11.16 10:58, Nelson Lameiras wrote:
> > > Hi Shahar,
> > > 
> > > We try to prioritise vm behaviour predictability over ressources 
> > > consumption, so "thin provisionning" is not a option for us. 
> > > "Preallocated" is always selected over d

Re: [ovirt-users] can't import vm from KVM host

2016-11-20 Thread Shahar Havivi
On 18.11.16 09:34, Nelson Lameiras wrote:
> Hello Shahar,
> 
> I've rebuild my test system and installed recently released ovirt 4.0.5 + 
> gerrit patch => still no luck. vdsm always gives me same error : 
Hi,

yes once you have the alias you are half way there.
but your alias path looks wrong, it starts with white-space:
'/  var/lib/libvirt/images/rhel7.1.img'

check it via 'virsh -r dumpxml '
and look if the white space are there two

regarding the pool you can check it too via virsh
virsh pool-list
and all pool-* commands (to create one), if you have problems building pool
let me know.

 Shahar.
> 
> "
> jsonrpc.Executor/6::ERROR::2016-11-17 
> 16:38:56,320::v2v::934::root::(_add_disk_info) Error getting disk size
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 931, in 
> _add_disk_info
> vol = conn.storageVolLookupByPath(disk['alias'])
>   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4596, in 
> storageVolLookupByPath
> if ret is None:raise libvirtError('virStorageVolLookupByPath() failed', 
> conn=self)
> libvirtError: Volume de stockage introuvable : no storage vol with matching 
> path '/dev/sdc'
> jsonrpc.Executor/6::DEBUG::2016-11-17 
> 16:38:56,325::__init__::555::jsonrpc.JsonRpcServer::(_handle_request) Return 
> 'Host.getExternalVMs' in bridge with [{'status': 'Down', 'graphics': 'spice', 
> 'arch': 'x86_64', 'disks': [ {'capacity': '8589934592', 'format': 'RAW', 
> 'dev': 'hdd', 'allocation': '8589942784', 'alias': '/  
> var/lib/libvirt/images/rhel7.1.img', 'type': 'disk'}, {'alias': '/dev/sdc', 
> 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}], 'vmId': 
> 'd0ddc4f6-a208-4286-a665-fb9e54d14bef', 'smp': 1, 'has_snapshots': False, 
> 'video': 'qxl', 'memSize': 1  024, 'vmName': 'rhel7.1', 'networks': 
> [{'model': 'virtio', 'macAddr': '52:54:00:00:d7:76', 'type': 'network'}]}]
> "
> 
> FYI I added a normal disk (file based) to the VM ir order to try to 
> understand what's happening. As expected, this disk is seen by the oVirt 
> (without patch)
> 
> I do reckon something in the above log :
> 
>  'disks': [
>{'capacity': '8589934592', 'format': 'RAW', 'dev': 'hdd', 'allocation': 
> '8589942784', 'alias': '/  var/lib/libvirt/images/rhel7.1.img', 'type': 
> 'disk'}, 
>{'alias': '/dev/sdc', 'type': 'disk', 'dev': 'hdb', 'format': 'RAW'}
>  ], 
> 
> the "alias" line is clearly new since it did not appear before de patch! 
> something is working ;)
> 
> I confirm that when I created the test VM (via virt-manager), I gave directly 
> the path to the device (/dev/sdc), so there is no "pool" to be addressed 
> defined on libvirt! 
> I read https://gerrit.ovirt.org/#/c/64272/4/ and I agree with Tomas findings 
> : Currently the conversion process is expecting a volume on a pool and it's 
> not able to use a block device directly.
> 
> So I'm hopping a solution can be found to this problem. We have a few 
> hundreds VM waiting to be migrated in production and we don't have a NFS 
> server, so this is our only option so far.
> 
> I'm able to test any patch quickly if needed, do not hesitate.
> 
> cordialement, regards, 
> Nelson LAMEIRAS 
> 
> Lyra Network 
> Service Projets et Processus 
> Tel : +33 (0) 5 32 09 09 70 
> 109 rue de l’innovation 
> 31670 Labège - France 
> www.lyra-network.com
> 
> - Original Message -
> From: "Shahar Havivi" <shav...@redhat.com>
> To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> Cc: "Tomas Golembiovsky" <tgole...@redhat.com>, "Michal Skrivanek" 
> <michal.skriva...@redhat.com>, users@ovirt.org
> Sent: Tuesday, November 8, 2016 12:16:55 PM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 08.11.16 10:58, Nelson Lameiras wrote:
> > Hi Shahar,
> > 
> > We try to prioritise vm behaviour predictability over ressources 
> > consumption, so "thin provisionning" is not a option for us. "Preallocated" 
> > is always selected over default behaviour.
> > 
> > Nevertheless, while trying to import a KVM vm (from another host), I get a 
> > 0 disk count on the VM, which means I do not event get to the point where I 
> > can chose allocation policy (usually next screen).
> > This is true with or without patch proposed below (assuming it has not 
> > changed since sept 29).
> 
> I assume that this line is failing:
> vol = conn.storageVolLookupByPath(disk['alias'])
> it may be the reason that the storage is not part of a pool.
> (look at pool-xxx commands via virsh)
> 
> If it doesn't work it may be related to a dif

Re: [ovirt-users] can't import vm from KVM host

2016-11-08 Thread Shahar Havivi
On 08.11.16 10:58, Nelson Lameiras wrote:
> Hi Shahar,
> 
> We try to prioritise vm behaviour predictability over ressources consumption, 
> so "thin provisionning" is not a option for us. "Preallocated" is always 
> selected over default behaviour.
> 
> Nevertheless, while trying to import a KVM vm (from another host), I get a 0 
> disk count on the VM, which means I do not event get to the point where I can 
> chose allocation policy (usually next screen).
> This is true with or without patch proposed below (assuming it has not 
> changed since sept 29).

I assume that this line is failing:
vol = conn.storageVolLookupByPath(disk['alias'])
it may be the reason that the storage is not part of a pool.
(look at pool-xxx commands via virsh)

If it doesn't work it may be related to a different API that we will need to
implement as Tomas suggested in the gerrit patch.

> 
> Can I give you any more information?
> 
> cordialement, regards, 
> Nelson LAMEIRAS 
> 
> Lyra Network 
> Service Projets et Processus 
> Tel : +33 (0) 5 32 09 09 70 
> 109 rue de l’innovation 
> 31670 Labège - France 
> www.lyra-network.com
> 
> - Original Message -
> From: "Shahar Havivi" <shav...@redhat.com>
> To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>, "Tomas 
> Golembiovsky" <tgole...@redhat.com>
> Cc: "Michal Skrivanek" <michal.skriva...@redhat.com>, users@ovirt.org
> Sent: Monday, November 7, 2016 1:58:34 PM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> Hi Nelson,
> 
> Sorry for the long wait (I was on PTO).
> I just test the patch with the following disk xml:
> 
> 
> 
> 
> 
>  slot='0x07' function='0x0'/>
> 
> 
> I did manage to see the disk with its actual size,
> I was able to import the VM as well when I choose:
> "Allocation Policy": "Preallocated"
> (not the "Thin Provision" as is the default.
> Currently we need to pre allocated kvm block disk and cannot use the thin
> provision (we may need to disable it in the UI).
> 
> Did you try that?
> It may related to the reason that the dev path you have is a /dev/mapper/ and
> this is the reason that libvirt not returning the disk size? (Tomas?)
> 
>  Shahar.
> 
> 
> On 20.10.16 14:10, Nelson Lameiras wrote:
> > Hello,
> > 
> > Any update on this issue?
> > Can I do anything to help?
> > 
> > cordialement, regards, 
> > Nelson LAMEIRAS 
> > 
> > Lyra Network 
> > Service Projets et Processus 
> > Tel : +33 (0) 5 32 09 09 70 
> > 109 rue de l’innovation 
> > 31670 Labège - France 
> > www.lyra-network.com
> > 
> > - Original Message -
> > From: "Michal Skrivanek" <michal.skriva...@redhat.com>
> > To: "Tomas Golembiovsky" <tgole...@redhat.com>
> > Cc: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>, users@ovirt.org
> > Sent: Tuesday, October 11, 2016 4:11:36 PM
> > Subject: Re: [ovirt-users] can't import vm from KVM host
> > 
> > > On 11 Oct 2016, at 16:01, Tomáš Golembiovský <tgole...@redhat.com> wrote:
> > > 
> > > Hi,
> > > 
> > > On Mon, 10 Oct 2016 12:21:47 +0200 (CEST)
> > > Nelson Lameiras <nelson.lamei...@lyra-network.com> wrote:
> > > 
> > >> hello michal,
> > >> 
> > >> Yes, both paths are correct and working on the source host since the VM 
> > >> starts and works correctly on source host. Nevertheless I have checked 
> > >> with fdisk and mount to assure that these devices are indeed reachable.
> > >> 
> > >> Please understand that my setup is the following:
> > >> source host : KVM (hosting the VM to migrate)
> > >> target host : oVirt 4.0.4 (patched)
> > >> 
> > >> The error "no storage vol with matching path '/dev/sdc'" is returned by 
> > >> the target host script /usr/lib/python2.7/site-packages/vdsm/v2v.py.
> > >> This almost seems normal since the device /dev/sdc is not mounted on 
> > >> target host (where script is running) but only on source host.
> > >> 
> > >> Can this be the source of the error ?
> > > 
> > > To me this looks more like a bug in the engine, not in VDSM.
> > > 
> > > The exception in the VDSM log is OK and it is not fatal. It is actually
> > > to be expected for block devices. VDSM is trying to find out the size of
> > > the disk, but the way it does that is tailored for volumes in 

Re: [ovirt-users] can't import vm from KVM host

2016-11-07 Thread Shahar Havivi
Hi Nelson,

Sorry for the long wait (I was on PTO).
I just test the patch with the following disk xml:








I did manage to see the disk with its actual size,
I was able to import the VM as well when I choose:
"Allocation Policy": "Preallocated"
(not the "Thin Provision" as is the default.
Currently we need to pre allocated kvm block disk and cannot use the thin
provision (we may need to disable it in the UI).

Did you try that?
It may related to the reason that the dev path you have is a /dev/mapper/ and
this is the reason that libvirt not returning the disk size? (Tomas?)

 Shahar.


On 20.10.16 14:10, Nelson Lameiras wrote:
> Hello,
> 
> Any update on this issue?
> Can I do anything to help?
> 
> cordialement, regards, 
> Nelson LAMEIRAS 
> 
> Lyra Network 
> Service Projets et Processus 
> Tel : +33 (0) 5 32 09 09 70 
> 109 rue de l’innovation 
> 31670 Labège - France 
> www.lyra-network.com
> 
> - Original Message -
> From: "Michal Skrivanek" 
> To: "Tomas Golembiovsky" 
> Cc: "Nelson Lameiras" , users@ovirt.org
> Sent: Tuesday, October 11, 2016 4:11:36 PM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> > On 11 Oct 2016, at 16:01, Tomáš Golembiovský  wrote:
> > 
> > Hi,
> > 
> > On Mon, 10 Oct 2016 12:21:47 +0200 (CEST)
> > Nelson Lameiras  wrote:
> > 
> >> hello michal,
> >> 
> >> Yes, both paths are correct and working on the source host since the VM 
> >> starts and works correctly on source host. Nevertheless I have checked 
> >> with fdisk and mount to assure that these devices are indeed reachable.
> >> 
> >> Please understand that my setup is the following:
> >> source host : KVM (hosting the VM to migrate)
> >> target host : oVirt 4.0.4 (patched)
> >> 
> >> The error "no storage vol with matching path '/dev/sdc'" is returned by 
> >> the target host script /usr/lib/python2.7/site-packages/vdsm/v2v.py.
> >> This almost seems normal since the device /dev/sdc is not mounted on 
> >> target host (where script is running) but only on source host.
> >> 
> >> Can this be the source of the error ?
> > 
> > To me this looks more like a bug in the engine, not in VDSM.
> > 
> > The exception in the VDSM log is OK and it is not fatal. It is actually
> > to be expected for block devices. VDSM is trying to find out the size of
> > the disk, but the way it does that is tailored for volumes in storage
> > pool. But the block device is not a volume in a storage pool and that is
> > why libvirt complains. We can potentially skip the check for block
> > devices to avoid error in the log, or provide some other logic of
> > getting the size.
> > 
> > 
> > But the real problem is this error in engine.log:
> > 
> >> 2016-09-29 14:13:48,637 ERROR 
> >> [org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery] (default 
> >> task-30) [] Exception: 
> >> org.ovirt.engine.core.common.errors.EngineException: EngineException: 
> >> java.lang.NumberFormatException: null (Failed with error ENGINE and code 
> >> 5001)
> > 
> > We don't send the size (or rather send null value) for the disk and
> > engine does not like that. I assume engine does not really consider all
> > the optional VM properties as optional.
> 
> is it really optional in schema?
> even if it is, indeed it’s wrong:)
> 
> the best would be to handle it on v2v.py side first to avoid libvirt err, but 
> i don’t know if we can get that info via libvirt in any other way:/
> 
> > 
> > 
> > 
> >Tomas
> > 
> > -- 
> > Tomáš Golembiovský 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] can't import vm from KVM host

2016-09-29 Thread Shahar Havivi
On 29.09.16 14:22, Nelson Lameiras wrote:
> Shahar,
> 
> I took the liberty to try to patch our test setup with the fix I took from 
> https://gerrit.ovirt.org/#/c/64272/4/ (lib/vdsm/v2v.py)
> I restarted vdsm afterwards
> 
> Result :
> In the GUI import page, now when clicking on "load" button (just before 
> guetting the list of vm to import on source), an error occurs : "Failed to 
> communicate with the external provider, see log for additional details."
> 
> Error on engine log :
> 
> "
> 2016-09-29 14:13:48,637 ERROR 
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmsFromExternalProviderVDSCommand]
>  (default task-30) [] Failed in 'GetVmsFromExternalProviderVDS' method, for 
> vds: 'virtintelan01.lbg.office.lyra'; host: 'virtintelan01.lbg.office.lyra': 
> null
> 2016-09-29 14:13:48,637 ERROR 
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmsFromExternalProviderVDSCommand]
>  (default task-30) [] Command 'GetVmsFromExternalProviderVDSCommand(HostName 
> = virtintelan01.lbg.office.lyra, 
> GetVmsFromExternalProviderParameters:{runAsync='true', 
> hostId='20b59a24-0098-461a-b4a3-7d6213b96c52', 
> url='qemu+ssh://root@192.168.210.140/system', username='null', 
> originType='KVM'})' execution failed: null
> 2016-09-29 14:13:48,637 INFO  
> [org.ovirt.engine.core.vdsbroker.vdsbroker.GetVmsFromExternalProviderVDSCommand]
>  (default task-30) [] FINISH, GetVmsFromExternalProviderVDSCommand, log id: 
> 6e062276
> 2016-09-29 14:13:48,637 ERROR 
> [org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery] (default task-30) 
> [] Query 'GetVmsFromExternalProviderQuery' failed: EngineException: 
> java.lang.NumberFormatException: null (Failed with error ENGINE and code 5001)
> 2016-09-29 14:13:48,637 ERROR 
> [org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery] (default task-30) 
> [] Exception: org.ovirt.engine.core.common.errors.EngineException: 
> EngineException: java.lang.NumberFormatException: null (Failed with error 
> ENGINE and code 5001)
> at 
> org.ovirt.engine.core.bll.VdsHandler.handleVdsResult(VdsHandler.java:114) 
> [bll.jar:]
> at 
> org.ovirt.engine.core.bll.VDSBrokerFrontendImpl.runVdsCommand(VDSBrokerFrontendImpl.java:33)
>  [bll.jar:]
> at 
> org.ovirt.engine.core.bll.QueriesCommandBase.runVdsCommand(QueriesCommandBase.java:257)
>  [bll.jar:]
> ...
> "
> 
> In the host, I can see the following errors on /var/log/messages : 
> 
> "
> Sep 29 14:11:39 virtintelan01 journal: vdsm root ERROR Error getting disk 
> size#012Traceback (most recent call last):#012  File 
> "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 931, in 
> _add_disk_info#012vol = conn.storageVolLookupByPath(disk['alias'])#012  
> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4596, in 
> storageVolLookupByPath#012if ret is None:raise 
> libvirtError('virStorageVolLookupByPath() failed', 
> conn=self)#012libvirtError: Volume de stockage introuvable : no storage vol 
> with matching path '/dev/mapper/vg_00-lv_sys'
> Sep 29 14:11:39 virtintelan01 journal: vdsm root ERROR Error getting disk 
> size#012Traceback (most recent call last):#012  File 
> "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 931, in 
> _add_disk_info#012vol = conn.storageVolLookupByPath(disk['alias'])#012  
> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4596, in 
> storageVolLookupByPath#012if ret is None:raise 
> libvirtError('virStorageVolLookupByPath() failed', 
> conn=self)#012libvirtError: Volume de stockage introuvable : no storage vol 
> with matching path '/dev/sdc'
> "
> 
> FYI "Volume de stockage introuvable" (french) = "storage volume not found" 
> 
> This error did not appear before patching with the fix.
> 
> I repeated the operation 2 times with a clean setup + patch. Same behaviour. 
> Maybe I'm doing something wrong?
I need to check,
Thanks for the info.

> 
> my setup :
> ovirt-engine : centos 7.2 + ovirt 4.0.4
> hosts : centos 7.2 + ovirt 4.0.4 + fix
> 
> cordialement, regards, 
> Nelson LAMEIRAS 
> 
> Lyra Network 
> Service Projets et Processus 
> Tel : +33 (0) 5 32 09 09 70 
> 109 rue de l’innovation 
> 31670 Labège - France 
> www.lyra-network.com
> 
> - Original Message -
> From: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> To: "Shahar Havivi" <shav...@redhat.com>
> Cc: users@ovirt.org
> Sent: Friday, September 23, 2016 11:55:08 AM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> Shahar,
> 
> Thanks!
> I'll keep an eye on this bug and try to be helpfull when testing

Re: [ovirt-users] can't import vm from KVM host

2016-09-22 Thread Shahar Havivi
Nelson,
I opened a bug regarding your issue
https://bugzilla.redhat.com/show_bug.cgi?id=1378340

And send a fix:
https://gerrit.ovirt.org/#/c/64272/

Thank you for your help!

 Shahar.

On 21.09.16 10:57, Shahar Havivi wrote:
> On 20.09.16 10:24, Nelson Lameiras wrote:
> > Here is the disk section of my vm,
> > 
> > ...
> > 
> >   
> >   
> >   
> >> function='0x0'/>
> > 
> > 
> >   
> >   
> >   
> >> function='0x0'/>
> > 
> > ...
> > 
> > nelson
> Thanks Nelson,
> bz 1362525 will not solve your issue.
> We will start work on that block device issue shortly and I hope that it will
> make it to the next release.
> 
> Thank you,
>  Shahar.
> 
> > 
> > 
> > - Original Message -
> > From: "Shahar Havivi" <shav...@redhat.com>
> > To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> > Cc: "Nisim Simsolo" <nsims...@redhat.com>, users@ovirt.org
> > Sent: Tuesday, September 20, 2016 8:04:41 AM
> > Subject: Re: [ovirt-users] can't import vm from KVM host
> > 
> > On 19.09.16 18:11, Nelson Lameiras wrote:
> > > Well I think I have a rather "classical" environment :
> > > 
> > > This is the test setup I created (from scratch) in order to simulate 
> > > future migrations (which will be used to migrate our hundreds of vm in 
> > > production)
> > > 
> > > On one side, I have a x86_64 centos7.2+KVM hosting one VM with 2 iscsi 
> > > disks : 
> > >   1 LVM block device /dev/mapper/vg_01-lv_sys, using virtio
> > >   1 block device /dev/sdc, using virtio
> > > 
> > > on the other side, I have a x86_64 centos 7.2 oVirt cluster (2 hosts, 
> > > same hardware as KVM hosts) installed with 4.0.3 oVirt (hosts and engine) 
> > > fully upgraded to 4.0.4RC1 (hosts and engine)
> > > Target would be oVirt iscsi Data Domain disk (which is irrelevant because 
> > > the problem I'm describing arises before selecting oVirt target)
> > > 
> > > I'm using the GUI to test the native import capabilities of oVirt "Import 
> > > VM"
> > > When selecting KVM import, putting correct URL data (using either tcp or 
> > > ssh transport), I get a list of VM machines running in the KVM cluster 
> > > (for this exemple, only the one VM described above), but the disk count 
> > > is always 0. Which makes it impossible to import the VM.
> > > 
> > > I should add that I made the same VM import using "local hard drives" 
> > > (ie. local raw file) and it works as expected, I can see one or multiple 
> > > disks and import them easily to oVirt. The problem seems to manifest 
> > > itself only when importing disks using block devices directly.
> > > 
> > > Do you need more information from me, or make more tests?
> > > 
> > > thanks a lot,
> > > nelson
> > Can you post the libvirt xml as attachment here (at least the disks 
> > sections):
> > 
> > $ virsh -r dumpxml 
> > 
> >  Shahar.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] can't import vm from KVM host

2016-09-21 Thread Shahar Havivi
On 20.09.16 10:24, Nelson Lameiras wrote:
> Here is the disk section of my vm,
> 
> ...
> 
>   
>   
>   
>function='0x0'/>
> 
> 
>   
>   
>   
>function='0x0'/>
> 
> ...
> 
> nelson
Thanks Nelson,
bz 1362525 will not solve your issue.
We will start work on that block device issue shortly and I hope that it will
make it to the next release.

Thank you,
 Shahar.

> 
> 
> - Original Message -
> From: "Shahar Havivi" <shav...@redhat.com>
> To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> Cc: "Nisim Simsolo" <nsims...@redhat.com>, users@ovirt.org
> Sent: Tuesday, September 20, 2016 8:04:41 AM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 19.09.16 18:11, Nelson Lameiras wrote:
> > Well I think I have a rather "classical" environment :
> > 
> > This is the test setup I created (from scratch) in order to simulate future 
> > migrations (which will be used to migrate our hundreds of vm in production)
> > 
> > On one side, I have a x86_64 centos7.2+KVM hosting one VM with 2 iscsi 
> > disks : 
> >   1 LVM block device /dev/mapper/vg_01-lv_sys, using virtio
> >   1 block device /dev/sdc, using virtio
> > 
> > on the other side, I have a x86_64 centos 7.2 oVirt cluster (2 hosts, same 
> > hardware as KVM hosts) installed with 4.0.3 oVirt (hosts and engine) fully 
> > upgraded to 4.0.4RC1 (hosts and engine)
> > Target would be oVirt iscsi Data Domain disk (which is irrelevant because 
> > the problem I'm describing arises before selecting oVirt target)
> > 
> > I'm using the GUI to test the native import capabilities of oVirt "Import 
> > VM"
> > When selecting KVM import, putting correct URL data (using either tcp or 
> > ssh transport), I get a list of VM machines running in the KVM cluster (for 
> > this exemple, only the one VM described above), but the disk count is 
> > always 0. Which makes it impossible to import the VM.
> > 
> > I should add that I made the same VM import using "local hard drives" (ie. 
> > local raw file) and it works as expected, I can see one or multiple disks 
> > and import them easily to oVirt. The problem seems to manifest itself only 
> > when importing disks using block devices directly.
> > 
> > Do you need more information from me, or make more tests?
> > 
> > thanks a lot,
> > nelson
> Can you post the libvirt xml as attachment here (at least the disks sections):
> 
> $ virsh -r dumpxml 
> 
>  Shahar.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] can't import vm from KVM host

2016-09-20 Thread Shahar Havivi
On 19.09.16 18:11, Nelson Lameiras wrote:
> Well I think I have a rather "classical" environment :
> 
> This is the test setup I created (from scratch) in order to simulate future 
> migrations (which will be used to migrate our hundreds of vm in production)
> 
> On one side, I have a x86_64 centos7.2+KVM hosting one VM with 2 iscsi disks 
> : 
>   1 LVM block device /dev/mapper/vg_01-lv_sys, using virtio
>   1 block device /dev/sdc, using virtio
> 
> on the other side, I have a x86_64 centos 7.2 oVirt cluster (2 hosts, same 
> hardware as KVM hosts) installed with 4.0.3 oVirt (hosts and engine) fully 
> upgraded to 4.0.4RC1 (hosts and engine)
> Target would be oVirt iscsi Data Domain disk (which is irrelevant because the 
> problem I'm describing arises before selecting oVirt target)
> 
> I'm using the GUI to test the native import capabilities of oVirt "Import VM"
> When selecting KVM import, putting correct URL data (using either tcp or ssh 
> transport), I get a list of VM machines running in the KVM cluster (for this 
> exemple, only the one VM described above), but the disk count is always 0. 
> Which makes it impossible to import the VM.
> 
> I should add that I made the same VM import using "local hard drives" (ie. 
> local raw file) and it works as expected, I can see one or multiple disks and 
> import them easily to oVirt. The problem seems to manifest itself only when 
> importing disks using block devices directly.
> 
> Do you need more information from me, or make more tests?
> 
> thanks a lot,
> nelson
Can you post the libvirt xml as attachment here (at least the disks sections):

$ virsh -r dumpxml 

 Shahar.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] can't import vm from KVM host

2016-09-18 Thread Shahar Havivi
On 16.09.16 10:14, Nelson Lameiras wrote:
> I upgraded to oVirt 4.0.4 RC1 to test this issue (engine and hosts) and I 
> still have the same problem.
> 
> Migration GUI still shows zero disks when the source VM had block disk 
> devices.
Yes...
I was verify and merged to 4.0.4

Is your source and target block device (tested as well...)
What else can you tell us about your environment?

Nisim Any idea?

> 
> Can you confirm that the issue 1362525 has been integrated in this RC?
> Should I do some additional actions in order to see/make it work?
> 
> Thanks,
> Nelson
> 
> - Original Message -
> From: "Shahar Havivi" <shav...@redhat.com>
> To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>, "Nisim Simsolo" 
> <nsims...@redhat.com>
> Cc: users@ovirt.org
> Sent: Sunday, August 28, 2016 8:45:48 AM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 25.08.16 11:32, Nelson Lameiras wrote:
> > Thanks for your answer. I do not think that I'm experiencing that same bug 
> > exactly.
> > 
> > The issue 1362525 (below) concerns a KVM VM with iSCSI disk being importend 
> > to RHEV that does not perform well.
> > 
> > In my case, when oVirt GUI proposes me the list of machines on KVM host to 
> > import, each machine as a "disk count" next to it.
> > - This "disk count" is correct if the VM has it's storage on a raw/qcow 
> > file (local) - and import goes well
> > - But "disk count" is 0 (always) if the VM has it's storage on a block 
> > device (ie iscsi) - and import is not possible at all!
> > 
> > It seems to me that current oVirt migration tool is unable to read/analyse 
> > distant VM machines with block device storage... Maybe I'm analysing this 
> > issue wrongly.
> Yes,
> This was the issue as well - seeing zero disks when the source VM had block 
> disk devices.
> 
> Adding Nisim to verify it.
> 
> > 
> > Thanks,
> > nelson
> > - Original Message -
> > From: "Shahar Havivi" <shav...@redhat.com>
> > To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> > Cc: users@ovirt.org
> > Sent: Tuesday, August 23, 2016 12:19:13 PM
> > Subject: Re: [ovirt-users] can't import vm from KVM host
> > 
> > On 23.08.16 11:24, Nelson Lameiras wrote:
> > > Hello,
> > Hi,
> > 
> > We do have a bug on that issue:
> > https://bugzilla.redhat.com/show_bug.cgi?id=1362525
> > and its handled.
> > 
> > Thanks,
> >  Shahar.
> > > 
> > > I'm trying to import virtual machines from a KVM host (centos 7.2) to an 
> > > oVirt 4.0.2 Cluster using the "import" feature on GUI.
> > > 
> > > If the original VM is using RAW/QCOW2 files as storage, everything works 
> > > fine. 
> > > 
> > > But if the original VM is using a special block special device as storage 
> > > (like a LVM or SAN volume), it's simply not recognized. 
> > > The VM does appear in the import list of the KVM host, but it's disk 
> > > count is 0!
> > > 
> > > Is this a known technical obstacle or am I doing something wrong ?
> > > 
> > > below is the storage part of the xml describing the original VM :
> > > 
> > >   
> > >   
> > >   
> > >> > function='0x0'/>
> > > 
> > > 
> > >   
> > >   
> > >   
> > >> > function='0x0'/>
> > > 
> > > 
> > > We have hundreds of virtual machines in production with this type of 
> > > configuration... How can we migrate them safely to oVirt?
> > > 
> > > thanks
> > > 
> > > Nelson
> > > ___
> > > Users mailing list
> > > Users@ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of exported VMware VM fails

2016-08-31 Thread Shahar Havivi
On 30.08.16 16:11, Cam Mac wrote:
> Hi Shahar,
> 
> I ran the virt-v2v as root as it needs to do stuff in /run/user/0. It
> certainly writes all the files as the correct user/group (i.e., vdsm/kvm)
> on the export domain. Is there any way to do the import from the command
> line?
Hi,

The work on importing ova and from vmware from REST API are currently in
progress.

 Shahar.
> 
> Thanks,
> 
> Cam
> 
> On Tue, Aug 30, 2016 at 7:17 AM, Shahar Havivi <shav...@redhat.com> wrote:
> 
> > Check for permissions,
> > All the directory hierarchy and the images as well as the ovf needs to
> > reached
> > by the vdsm user, its best to change the owner to vdsm:kvm (e.g. 36:36).
> >
> >  Shahar.
> >
> >
> > On 29.08.16 16:05, Cam Mac wrote:
> > > Hi,
> > >
> > > I've use ovftool to create an .ova of a VMWare guest (in this case
> > W2012),
> > > and then have converted it with virt-v2v, outputting to the oVirt export
> > > domain (virt-v2v -i ova /space/w2012-test.ova -o ovirt -os
> > > ovirt-engine:/mnt/export-vm -of qcow2). This appears to work, though it
> > > reports a warning:
> > >
> > > [   0.0] Opening the source -i ova /space/w2012-test.ova
> > > [   5.3] Creating an overlay to protect the source from being modified
> > > [   5.9] Initializing the target -o rhev -os ovirt-engine:/mnt/export-vm
> > > [   6.1] Opening the overlay
> > > [  11.5] Inspecting the overlay
> > > [  12.6] Checking for sufficient free disk space in the guest
> > > [  12.6] Estimating space required on target for each disk
> > > [  12.6] Converting Windows Server 2012 Standard Evaluation to run on KVM
> > > virt-v2v: warning: Neither rhev-apt.exe nor vmdp.exe can be found.
> > Unable
> > > to install one of them.
> > > virt-v2v: warning: there is no QXL driver for this version of Windows
> > (6.2
> > > x86_64).  virt-v2v looks for this driver in /usr/share/virtio-win
> > >
> > > The guest will be configured to use a basic VGA display driver.
> > > virt-v2v: This guest has virtio drivers installed.
> > > [  13.5] Mapping filesystem data to avoid copying unused and blank areas
> > > [  16.6] Closing the overlay
> > > [  16.6] Checking if the guest needs BIOS or UEFI to boot
> > > [  16.6] Assigning disks to buses
> > > [  16.6] Copying disk 1/1 to
> > > /space/scratch/v2v.F5dkB2/ff68b458-3fe9-4ecf-95b7-
> > cfdcc42dd291/images/b8a180eb-e075-44bf-a6f0-263e2792f5d7/
> > a49bed7d-9ac3-48f1-8b00-2abb1e4c183f
> > > (qcow2)
> > > (100.00/100%)
> > > [ 200.3] Creating output metadata
> > > [ 200.3] Finishing off
> > >
> > > I can then see the exported VM available for import in the oVirt GUI.
> > When
> > > I import it however, it just says it fails to import, and having a look
> > at
> > > the engine log I can't see what is wrong specifically:
> > >
> > > 2016-08-29 15:43:06,620 INFO
> > > [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand]
> > > (default task-372) [4cdcbb5c] FINISH, DoesImageExistVDSCommand, return:
> > > true, log id: 188b0975
> > > 2016-08-29 15:43:06,715 WARN
> > > [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (default
> > task-372)
> > > [] VM '980e3d5d-934a-4426-850d-23ba5df77b01' doesn't have active
> > snapshot
> > > in export domain
> > > 2016-08-29 15:43:06,788 INFO
> > > [org.ovirt.engine.core.bll.exportimport.ImportVmCommand]
> > > (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] Running command:
> > > ImportVmCommand internal: false. Entities affected :  ID:
> > > 9d1fe12c-5c5f-49ad-a875-a735acba2530 Type: StorageAction group
> > > IMPORT_EXPORT_VM with role type ADMIN,  ID:
> > > ff68b458-3fe9-4ecf-95b7-cfdcc42dd291 Type: StorageAction group
> > > IMPORT_EXPORT_VM with role type ADMIN
> > > 2016-08-29 15:43:06,797 INFO
> > > [org.ovirt.engine.core.utils.transaction.TransactionSupport]
> > > (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] transaction rolled back
> > > 2016-08-29 15:43:06,798 ERROR
> > > [org.ovirt.engine.core.bll.exportimport.ImportVmCommand]
> > > (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] Command
> > > 'org.ovirt.engine.core.bll.exportimport.ImportVmCommand' failed: null
> > > 2016-08-29 15:43:06,798 ERROR
> > > [org.ovirt.engine.core.bll.exportimport.ImportVmCommand]
> > > (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] Exception:
> > > java.lang.reflect.UndeclaredThrowableException
> > >
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > >
> > > Cam
> >
> > > ___
> > > Users mailing list
> > > Users@ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users
> >
> >
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of exported VMware VM fails

2016-08-30 Thread Shahar Havivi
Check for permissions,
All the directory hierarchy and the images as well as the ovf needs to reached
by the vdsm user, its best to change the owner to vdsm:kvm (e.g. 36:36).

 Shahar.


On 29.08.16 16:05, Cam Mac wrote:
> Hi,
> 
> I've use ovftool to create an .ova of a VMWare guest (in this case W2012),
> and then have converted it with virt-v2v, outputting to the oVirt export
> domain (virt-v2v -i ova /space/w2012-test.ova -o ovirt -os
> ovirt-engine:/mnt/export-vm -of qcow2). This appears to work, though it
> reports a warning:
> 
> [   0.0] Opening the source -i ova /space/w2012-test.ova
> [   5.3] Creating an overlay to protect the source from being modified
> [   5.9] Initializing the target -o rhev -os ovirt-engine:/mnt/export-vm
> [   6.1] Opening the overlay
> [  11.5] Inspecting the overlay
> [  12.6] Checking for sufficient free disk space in the guest
> [  12.6] Estimating space required on target for each disk
> [  12.6] Converting Windows Server 2012 Standard Evaluation to run on KVM
> virt-v2v: warning: Neither rhev-apt.exe nor vmdp.exe can be found.  Unable
> to install one of them.
> virt-v2v: warning: there is no QXL driver for this version of Windows (6.2
> x86_64).  virt-v2v looks for this driver in /usr/share/virtio-win
> 
> The guest will be configured to use a basic VGA display driver.
> virt-v2v: This guest has virtio drivers installed.
> [  13.5] Mapping filesystem data to avoid copying unused and blank areas
> [  16.6] Closing the overlay
> [  16.6] Checking if the guest needs BIOS or UEFI to boot
> [  16.6] Assigning disks to buses
> [  16.6] Copying disk 1/1 to
> /space/scratch/v2v.F5dkB2/ff68b458-3fe9-4ecf-95b7-cfdcc42dd291/images/b8a180eb-e075-44bf-a6f0-263e2792f5d7/a49bed7d-9ac3-48f1-8b00-2abb1e4c183f
> (qcow2)
> (100.00/100%)
> [ 200.3] Creating output metadata
> [ 200.3] Finishing off
> 
> I can then see the exported VM available for import in the oVirt GUI. When
> I import it however, it just says it fails to import, and having a look at
> the engine log I can't see what is wrong specifically:
> 
> 2016-08-29 15:43:06,620 INFO
> [org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand]
> (default task-372) [4cdcbb5c] FINISH, DoesImageExistVDSCommand, return:
> true, log id: 188b0975
> 2016-08-29 15:43:06,715 WARN
> [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (default task-372)
> [] VM '980e3d5d-934a-4426-850d-23ba5df77b01' doesn't have active snapshot
> in export domain
> 2016-08-29 15:43:06,788 INFO
> [org.ovirt.engine.core.bll.exportimport.ImportVmCommand]
> (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] Running command:
> ImportVmCommand internal: false. Entities affected :  ID:
> 9d1fe12c-5c5f-49ad-a875-a735acba2530 Type: StorageAction group
> IMPORT_EXPORT_VM with role type ADMIN,  ID:
> ff68b458-3fe9-4ecf-95b7-cfdcc42dd291 Type: StorageAction group
> IMPORT_EXPORT_VM with role type ADMIN
> 2016-08-29 15:43:06,797 INFO
> [org.ovirt.engine.core.utils.transaction.TransactionSupport]
> (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] transaction rolled back
> 2016-08-29 15:43:06,798 ERROR
> [org.ovirt.engine.core.bll.exportimport.ImportVmCommand]
> (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] Command
> 'org.ovirt.engine.core.bll.exportimport.ImportVmCommand' failed: null
> 2016-08-29 15:43:06,798 ERROR
> [org.ovirt.engine.core.bll.exportimport.ImportVmCommand]
> (org.ovirt.thread.pool-8-thread-17) [4cdcbb5c] Exception:
> java.lang.reflect.UndeclaredThrowableException
> 
> 
> Any ideas?
> 
> Thanks,
> 
> Cam

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] can't import vm from KVM host

2016-08-28 Thread Shahar Havivi
On 25.08.16 11:32, Nelson Lameiras wrote:
> Thanks for your answer. I do not think that I'm experiencing that same bug 
> exactly.
> 
> The issue 1362525 (below) concerns a KVM VM with iSCSI disk being importend 
> to RHEV that does not perform well.
> 
> In my case, when oVirt GUI proposes me the list of machines on KVM host to 
> import, each machine as a "disk count" next to it.
> - This "disk count" is correct if the VM has it's storage on a raw/qcow file 
> (local) - and import goes well
> - But "disk count" is 0 (always) if the VM has it's storage on a block device 
> (ie iscsi) - and import is not possible at all!
> 
> It seems to me that current oVirt migration tool is unable to read/analyse 
> distant VM machines with block device storage... Maybe I'm analysing this 
> issue wrongly.
Yes,
This was the issue as well - seeing zero disks when the source VM had block 
disk devices.

Adding Nisim to verify it.

> 
> Thanks,
> nelson
> - Original Message -
> From: "Shahar Havivi" <shav...@redhat.com>
> To: "Nelson Lameiras" <nelson.lamei...@lyra-network.com>
> Cc: users@ovirt.org
> Sent: Tuesday, August 23, 2016 12:19:13 PM
> Subject: Re: [ovirt-users] can't import vm from KVM host
> 
> On 23.08.16 11:24, Nelson Lameiras wrote:
> > Hello,
> Hi,
> 
> We do have a bug on that issue:
> https://bugzilla.redhat.com/show_bug.cgi?id=1362525
> and its handled.
> 
> Thanks,
>  Shahar.
> > 
> > I'm trying to import virtual machines from a KVM host (centos 7.2) to an 
> > oVirt 4.0.2 Cluster using the "import" feature on GUI.
> > 
> > If the original VM is using RAW/QCOW2 files as storage, everything works 
> > fine. 
> > 
> > But if the original VM is using a special block special device as storage 
> > (like a LVM or SAN volume), it's simply not recognized. 
> > The VM does appear in the import list of the KVM host, but it's disk count 
> > is 0!
> > 
> > Is this a known technical obstacle or am I doing something wrong ?
> > 
> > below is the storage part of the xml describing the original VM :
> > 
> >   
> >   
> >   
> >> function='0x0'/>
> > 
> > 
> >   
> >   
> >   
> >> function='0x0'/>
> > 
> > 
> > We have hundreds of virtual machines in production with this type of 
> > configuration... How can we migrate them safely to oVirt?
> > 
> > thanks
> > 
> > Nelson
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] can't import vm from KVM host

2016-08-23 Thread Shahar Havivi
On 23.08.16 11:24, Nelson Lameiras wrote:
> Hello,
Hi,

We do have a bug on that issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1362525
and its handled.

Thanks,
 Shahar.
> 
> I'm trying to import virtual machines from a KVM host (centos 7.2) to an 
> oVirt 4.0.2 Cluster using the "import" feature on GUI.
> 
> If the original VM is using RAW/QCOW2 files as storage, everything works 
> fine. 
> 
> But if the original VM is using a special block special device as storage 
> (like a LVM or SAN volume), it's simply not recognized. 
> The VM does appear in the import list of the KVM host, but it's disk count is 
> 0!
> 
> Is this a known technical obstacle or am I doing something wrong ?
> 
> below is the storage part of the xml describing the original VM :
> 
>   
>   
>   
>   
> 
> 
>   
>   
>   
>   
> 
> 
> We have hundreds of virtual machines in production with this type of 
> configuration... How can we migrate them safely to oVirt?
> 
> thanks
> 
> Nelson
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing VM from Xen Server 6.5

2016-08-11 Thread Shahar Havivi
On 11.08.16 18:09, Anantha Raghava wrote:
> Hi,
> 
> I have attached the log of both virsh -c ssh://root@192.168.1.40 & virsh -c
> xen+ssh://root@192.168.1.40
> 
> 
> Hope this helps to debug.
not for me,
please try to send the log and a small explanation that you try to connect via
virsh to libvirt users mailing list at:  libvirt-us...@redhat.com.

> 
> -- 
> 
> Thanks & Regards,
> 
> Anantha Raghava
> 
> Do not print this e-mail unless required. Save Paper & trees.
> 
> On Thursday 11 August 2016 04:01 PM, Shahar Havivi wrote:
> > On 11.08.16 14:14, Anantha Raghava wrote:
> > > Hi,
> > > 
> > > Tested this with different combinations:
> > > 
> > > a. from VDSM host, both "ssh root@192.168.1.40" and "sudo -u vdsm ssh
> > > root@192.168.1.40" commands are logging in without asking for password 
> > > and I
> > > can run all xe commands without any glitch without modifications to 
> > > default
> > > xen server firewall or SELinux rules.
> > > 
> > > b. With firewall enabled and SELinux set to enforcing or permissive or
> > > disabled, I run "virsh -c ssh://root@192.168.1.40". And the command is
> > > resulting in two errors:
> > > 
> > >  error: filed to connect to the hypervisor
> > >  error: unable to connect to the server at '192.168.1.40:16514' : No
> > > route to the host.
> > > 
> > > c. With firewall disabled and SELinux set to Enforcing or permissive or
> > > disabled, I run "virsh -c ssh://192.168.1.40". And the command is 
> > > resulting
> > > in two errors
> > > 
> > > error: filed to connect to the hypervisor
> > >  error: unable to connect to the server at '192.168.1.40:16514' :
> > > Connection refused
> > Good tests,
> > We need to figure out why libvirt refuse the connection,
> > try to debug virsh by running:
> > 
> > $ export LIBVIRT_LOG_OUTPUTS="1:file:/tmp/libvirt_client.log"
> > $ export LIBVIRT_DEBUG=1
> > $ virsh -c virsh -c ssh://192.168.1.40
> > 
> > and examing /tmp/libvirt_client.log file
> > 
> > > -- 
> > > 
> > > Thanks & Regards,
> > > 
> > > 
> > > Anantha Raghava
> > > 
> > > eXza Technology Consulting & Services
> > > 
> > > Ph: +91-9538849179, E-mail: rag...@exzatechconsulting.com
> > > <mailto:rag...@exzatechconsulting.com>
> > > 
> > > URL: http://www.exzatechconsulting.com 
> > > <http://www.exzatechconsulting.com/>
> > > 
> > > /*Support No.: +91-7829774584 */
> > > 
> > > 
> > > 
> > > DISCLAIMER:
> > > This e-mail communication and any attachments may be privileged and
> > > confidential to eXza Technology Consulting & Services, and are intended 
> > > only
> > > for the use of the recipients named above If you are not the addressee you
> > > may not copy, forward, disclose or use any part of it. If you have 
> > > received
> > > this message in error, please delete it and all copies from your system 
> > > and
> > > notify the sender immediately by return e-mail. Internet communications
> > > cannot be guaranteed to be timely, secure, error or virus-free. The sender
> > > does not accept liability for any errors or omissions.
> > > 
> > > 
> > > Do not print this e-mail unless required. Save Paper & trees.
> > > 
> > > On Thursday 11 August 2016 12:20 PM, Shahar Havivi wrote:
> > > > On 10.08.16 19:40, Anantha Raghava wrote:
> > > > > Hello Richard / Shahar,
> > > > > 
> > > > > I installed and enabled nc on Xen Server host. Now the " .. sh: 
> > > > > nc:
> > > > > command not found: Input/output error" is gone. Communication is
> > > > > established. However I am still getting two specific errors:
> > > > > 
> > > > > VDSM ovirt_engine command failed: End of file while reading data: :
> > > > > Input/Output error
> > > > > 
> > > > > &
> > > > > 
> > > > > Failed to retrieve VMs Information from the external server
> > > > > xen+ssh://root@192.168.1.40
> > > > > 
> > > > > I am receiving the same error when I run virsh -c
> > > > > xen+ssh://root@192.168.1.40
> > > > > 
> > > >

Re: [ovirt-users] Importing VM from Xen Server 6.5

2016-08-11 Thread Shahar Havivi
On 11.08.16 14:14, Anantha Raghava wrote:
> Hi,
> 
> Tested this with different combinations:
> 
> a. from VDSM host, both "ssh root@192.168.1.40" and "sudo -u vdsm ssh
> root@192.168.1.40" commands are logging in without asking for password and I
> can run all xe commands without any glitch without modifications to default
> xen server firewall or SELinux rules.
> 
> b. With firewall enabled and SELinux set to enforcing or permissive or
> disabled, I run "virsh -c ssh://root@192.168.1.40". And the command is
> resulting in two errors:
> 
> error: filed to connect to the hypervisor
> error: unable to connect to the server at '192.168.1.40:16514' : No
> route to the host.
> 
> c. With firewall disabled and SELinux set to Enforcing or permissive or
> disabled, I run "virsh -c ssh://192.168.1.40". And the command is resulting
> in two errors
> 
> error: filed to connect to the hypervisor
> error: unable to connect to the server at '192.168.1.40:16514' :
> Connection refused
Good tests,
We need to figure out why libvirt refuse the connection,
try to debug virsh by running:

$ export LIBVIRT_LOG_OUTPUTS="1:file:/tmp/libvirt_client.log"
$ export LIBVIRT_DEBUG=1
$ virsh -c virsh -c ssh://192.168.1.40

and examing /tmp/libvirt_client.log file

> 
> -- 
> 
> Thanks & Regards,
> 
> 
> Anantha Raghava
> 
> eXza Technology Consulting & Services
> 
> Ph: +91-9538849179, E-mail: rag...@exzatechconsulting.com
> <mailto:rag...@exzatechconsulting.com>
> 
> URL: http://www.exzatechconsulting.com <http://www.exzatechconsulting.com/>
> 
> /*Support No.: +91-7829774584 */
> 
> 
> 
> DISCLAIMER:
> This e-mail communication and any attachments may be privileged and
> confidential to eXza Technology Consulting & Services, and are intended only
> for the use of the recipients named above If you are not the addressee you
> may not copy, forward, disclose or use any part of it. If you have received
> this message in error, please delete it and all copies from your system and
> notify the sender immediately by return e-mail. Internet communications
> cannot be guaranteed to be timely, secure, error or virus-free. The sender
> does not accept liability for any errors or omissions.
> 
> 
> Do not print this e-mail unless required. Save Paper & trees.
> 
> On Thursday 11 August 2016 12:20 PM, Shahar Havivi wrote:
> > On 10.08.16 19:40, Anantha Raghava wrote:
> > > Hello Richard / Shahar,
> > > 
> > > I installed and enabled nc on Xen Server host. Now the " .. sh: nc:
> > > command not found: Input/output error" is gone. Communication is
> > > established. However I am still getting two specific errors:
> > > 
> > > VDSM ovirt_engine command failed: End of file while reading data: :
> > > Input/Output error
> > > 
> > > &
> > > 
> > > Failed to retrieve VMs Information from the external server
> > > xen+ssh://root@192.168.1.40
> > > 
> > > I am receiving the same error when I run virsh -c
> > > xen+ssh://root@192.168.1.40
> > > 
> > > Screen shot is attached for quick reference.
> > > 
> > > Is it something to do with firewall / ip tables on xen server or libvirtd
> > > host?
> > Hi,
> > You don't need to try it on oVirt when 'virsh -c' doesn't work since oVirt 
> > try
> > to connect via libvirt libraries (same as virsh) before it called virt-v2v.
> > 
> > Did you follow all the steps in the wiki?
> > Are you able to ssh to the Xen server from the vdsm machine that you try to
> > run virsh without password? (ssh root@192.168.1.40)
> > 
> > > -- 
> > > 
> > > Thanks & Regards,
> > > 
> > > Anantha Raghava
> > > 
> > > 
> > > Do not print this e-mail unless required. Save Paper & trees.
> > > 
> > > On Wednesday 10 August 2016 06:04 PM, Anantha Raghava wrote:
> > > > Hi,
> > > > 
> > > > Let me try this and post the results here.
> > > > 
> > > > Regards,
> > > > Ananth
> > > > 
> > > > On 10 Aug 2016 15:28, "Richard W.M. Jones" <rjo...@redhat.com
> > > > <mailto:rjo...@redhat.com>> wrote:
> > > > 
> > > >  On Wed, Aug 10, 2016 at 09:45:52AM +0300, Shahar Havivi wrote:
> > > >  > On 10.08.16 06:45, Anantha Raghava wrote:
> > > >  > > Hi,
> > > >  > >
> > > >  > > I even attempt

Re: [ovirt-users] Importing VM from Xen Server 6.5

2016-08-11 Thread Shahar Havivi
On 10.08.16 19:40, Anantha Raghava wrote:
> Hello Richard / Shahar,
> 
> I installed and enabled nc on Xen Server host. Now the " .. sh: nc:
> command not found: Input/output error" is gone. Communication is
> established. However I am still getting two specific errors:
> 
> VDSM ovirt_engine command failed: End of file while reading data: :
> Input/Output error
> 
> &
> 
> Failed to retrieve VMs Information from the external server
> xen+ssh://root@192.168.1.40
> 
> I am receiving the same error when I run virsh -c
> xen+ssh://root@192.168.1.40
> 
> Screen shot is attached for quick reference.
> 
> Is it something to do with firewall / ip tables on xen server or libvirtd
> host?
Hi,
You don't need to try it on oVirt when 'virsh -c' doesn't work since oVirt try
to connect via libvirt libraries (same as virsh) before it called virt-v2v.

Did you follow all the steps in the wiki?
Are you able to ssh to the Xen server from the vdsm machine that you try to
run virsh without password? (ssh root@192.168.1.40)

> 
> -- 
> 
> Thanks & Regards,
> 
> Anantha Raghava
> 
> 
> Do not print this e-mail unless required. Save Paper & trees.
> 
> On Wednesday 10 August 2016 06:04 PM, Anantha Raghava wrote:
> > 
> > Hi,
> > 
> > Let me try this and post the results here.
> > 
> > Regards,
> > Ananth
> > 
> > On 10 Aug 2016 15:28, "Richard W.M. Jones" <rjo...@redhat.com
> > <mailto:rjo...@redhat.com>> wrote:
> > 
> > On Wed, Aug 10, 2016 at 09:45:52AM +0300, Shahar Havivi wrote:
> > > On 10.08.16 06:45, Anantha Raghava wrote:
> > > > Hi,
> > > >
> > > > I even attempted to run command virsh -c
> > xen+ssh://root@xenhost and I get
> > > > error "/*error: End of file reading data: sh: nc: command not
> > found:
> > > > Input/output error"*/
> > > First you need to be able to login via virsh (before trying to
> > import via
> > > oVirt).
> > >
> > > I never encounter this error before,
> > > I guess that nc is netcat...,
> > > try to install nmap-ncat:
> > > $ dnf info nmap-ncat
> > >
> > > Adding Richard which may have more input.
> > 
> > Yes, you need to install 'nc' on the *target* (Xen) machine.
> > 
> > This is because libvirt's ssh transport uses nc:
> > 
> > https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html
> > 
> > <https://libvirt.org/guide/html/Application_Development_Guide-Architecture-Transports.html>
> > 
> > Rich.
> > 
> > --
> > Richard Jones, Virtualization Group, Red Hat
> > http://people.redhat.com/~rjones <http://people.redhat.com/%7Erjones>
> > Read my programming and virtualization blog: http://rwmj.wordpress.com
> > virt-builder quickly builds VMs from scratch
> > http://libguestfs.org/virt-builder.1.html
> > <http://libguestfs.org/virt-builder.1.html>
> > 
> 


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing VM from Xen Server 6.5

2016-08-10 Thread Shahar Havivi
On 10.08.16 06:45, Anantha Raghava wrote:
> Hi,
> 
> I even attempted to run command virsh -c xen+ssh://root@xenhost and I get
> error "/*error: End of file reading data: sh: nc: command not found:
> Input/output error"*/
First you need to be able to login via virsh (before trying to import via
oVirt).

I never encounter this error before,
I guess that nc is netcat...,
try to install nmap-ncat:
$ dnf info nmap-ncat

Adding Richard which may have more input.

> 
> This is exactly the error message oVirt engine as well. You can see the
> attached screen shot.
> 
> -- 
> 
> Thanks & Regards,
> 
> 
> Anantha Raghava
> 
> eXza Technology Consulting & Services
> 
> Ph: +91-9538849179, E-mail: rag...@exzatechconsulting.com
> <mailto:rag...@exzatechconsulting.com>
> 
> URL: http://www.exzatechconsulting.com <http://www.exzatechconsulting.com/>
> 
> /*Support No.: +91-7829774584 */
> 
> 
> 
> DISCLAIMER:
> This e-mail communication and any attachments may be privileged and
> confidential to eXza Technology Consulting & Services, and are intended only
> for the use of the recipients named above If you are not the addressee you
> may not copy, forward, disclose or use any part of it. If you have received
> this message in error, please delete it and all copies from your system and
> notify the sender immediately by return e-mail. Internet communications
> cannot be guaranteed to be timely, secure, error or virus-free. The sender
> does not accept liability for any errors or omissions.
> 
> 
> Do not print this e-mail unless required. Save Paper & trees.
> 
> On Tuesday 09 August 2016 09:41 PM, Anantha Raghava wrote:
> > 
> > Hello Sahar,
> > 
> > I tried to import the VM from Xen Server 6.5 and failed. The details are
> > as follows:
> > 
> > a. I was able to create the ssh keys and install it successfully on Xen
> > Server host using the command "|sudo -u vdsm ssh-keygen|" and "|sudo -u
> > vdsm ssh-copy-id root@xenhost".|I had to use root@xenhost as I had no
> > other user on the xen server host.
> > 
> > b. I was able to log-in using the command "|sudo -u vdsm ssh
> > root@xenhos". |Also, I could run the command "xe vm-list" and I could
> > get the VM list in the terminal.
> > 
> > c. When I attempted to use the import wizard with
> > "xen+ssh://root@xenhost", I get error - "/*Failed to communicate with
> > the external provider, see log for additional details*/". The event
> > window reports "/*VDSM ovirt_engine command failed: End of file while
> > reading data: sh: nc: command not found: Input/output error*/". The
> > screen shots are attached for reference.
> > 
> > Any further guidance to achieve the desired result? Look forward to hear
> > from you.
> > 
> > -- 
> > 
> > Thanks & Regards,
> > 
> > Anantha Raghava
> > 
> > 
> > Do not print this e-mail unless required. Save Paper & trees.
> > 
> > On Tuesday 09 August 2016 01:11 PM, Anantha Raghava wrote:
> > > 
> > > Hello Sahar,
> > > 
> > > Thanks for your quick reply.
> > > 
> > > I will try to import VM tonight and update the results here.
> > > 
> > > -- 
> > > 
> > > Thanks & Regards,
> > > 
> > > Anantha Raghava
> > > 
> > > Do not print this e-mail unless required. Save Paper & trees.
> > > 
> > > On Tuesday 09 August 2016 12:28 PM, Shahar Havivi wrote:
> > > > Hi,
> > > > 
> > > > Please take a look at this wiki page:
> > > > https://github.com/oVirt/ovirt-site/blob/ab757548e6420354013ccf62137d1a7af52373e7/source/develop/release-management/features/XenToOvirt.html.md
> > > > 
> > > > On 09.08.16 10:12, Anantha Raghava wrote:
> > > > > Hi,
> > > > > 
> > > > > In version 4.0.1, we see wizard that helps to import VM from VMWare, 
> > > > > Xen,
> > > > > OVA appliance etc., using which I am trying to import a VM running in 
> > > > > Xen
> > > > > Server 6.5. But we do not see any documentation that explains the 
> > > > > process.
> > > > > 
> > > > > Can someone guide us in achieving the desired result that is Import a 
> > > > > VM
> > > > > from Xen Server 6.5
> > > > > 
> > > > > -- 
> > > > > 
> > > > > Thanks & Regards,
> > > > > 
> > > > > Anantha Raghava
> > > > > 
> > > > > Do not print this e-mail unless required. Save Paper & trees.
> > > > > ___
> > > > > Users mailing list
> > > > > Users@ovirt.org
> > > > > http://lists.ovirt.org/mailman/listinfo/users
> > > 
> > 
> 


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing VM from Xen Server 6.5

2016-08-09 Thread Shahar Havivi
Hi,

Please take a look at this wiki page:
https://github.com/oVirt/ovirt-site/blob/ab757548e6420354013ccf62137d1a7af52373e7/source/develop/release-management/features/XenToOvirt.html.md

On 09.08.16 10:12, Anantha Raghava wrote:
> Hi,
> 
> In version 4.0.1, we see wizard that helps to import VM from VMWare, Xen,
> OVA appliance etc., using which I am trying to import a VM running in Xen
> Server 6.5. But we do not see any documentation that explains the process.
> 
> Can someone guide us in achieving the desired result that is Import a VM
> from Xen Server 6.5
> 
> -- 
> 
> Thanks & Regards,
> 
> Anantha Raghava
> 
> Do not print this e-mail unless required. Save Paper & trees.

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] OEL virt-v2v

2016-07-28 Thread Shahar Havivi
On 28.07.16 11:30, Стаценко Константин Юрьевич wrote:
> Hello!
> Libguestfs in CentOS 7 is old and do not support Oracle Enterprise Linux 
> conversion via virt-v2v.
> How can I convert OEL VMware images ?
Best to ask at libgues...@redhat.com

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-24 Thread Shahar Havivi
On 21.07.16 16:24, Cam Mac wrote:
> Bug ID 1358828. I can do another for the direct import of the OVF (without
Thanks,
Please attach the ovf and ova (no need for the disk inside the ova) to the
bug.
> virt-v2v) if needed.
> 
> Cheers,
> 
> Cam
> 
> On Thu, Jul 21, 2016 at 2:56 PM, Shahar Havivi <shav...@redhat.com> wrote:
> 
> > On 21.07.16 14:38, Cam Mac wrote:
> > > I tried that already, and it fails. I gave it another try with the GUI on
> > > the new VM I created, as you described, and it fails.
> > > I can attach the engine log if you like.
> > no need,
> > please file a bug and attach the ova (without the disks - its a tar file
> > that
> > you can edit)
> > >
> > > Thanks,
> > >
> > > Cam
> > >
> > > On Thu, Jul 21, 2016 at 2:17 PM, Shahar Havivi <shav...@redhat.com>
> > wrote:
> > >
> > > > On 21.07.16 14:01, Campbell McLeay wrote:
> > > > > Thanks Shahar. Will do. I created a new VM on VMWare for the purposes
> > > > > of testing the import again with a new hostname, and it failed with
> > > > > the same error.
> > > > What you are trying to do is as far as I understand is to use virt-v2v
> > > > utility
> > > > to put the ova in export domain, there may be something wrong between
> > the
> > > > virt-v2v output ovf and the oVirt engine.
> > > > You can try the new feature to import ova strait on oVirt admin portal
> > (if
> > > > you
> > > > already try that the forget it), go to the vms tab -> import and select
> > > > "vmware ova" from the select box...
> > > >
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Cam
> > > > >
> > > > > On 21 July 2016 at 12:59, Shahar Havivi <shav...@redhat.com> wrote:
> > > > > > On 21.07.16 14:58, Shahar Havivi wrote:
> > > > > >> The error looks like you have a problem in the storage pool which
> > is
> > > > null by
> > > > > >> the log.
> > > > > >>
> > > > > >> Please open a bug and specify the exact steps that you took,
> > > > > >> ie.
> > > > > >> 1. $ virt-v2v -o rhev ...
> > > > > >> 2. goto the admin portal and try to view the VMs in the export
> > domain
> > > > > >> 3. etc...
> > > > > >>
> > > > > >> If you can attach the ova without the disk it will be great.
> > > > > > And please attach the engine.log as well.
> > > > > >>
> > > > > >> Shahar.
> > > > > >>
> > > > > >> On 21.07.16 10:16, Cam Mac wrote:
> > > > > >> > Sent, thanks Shahar.
> > > > > >> >
> > > > > >> > On Thu, Jul 21, 2016 at 10:05 AM, Shahar Havivi <
> > shav...@redhat.com>
> > > > wrote:
> > > > > >> >
> > > > > >> > > On 21.07.16 10:03, Cam Mac wrote:
> > > > > >> > > OK,
> > > > > >> > > Can you please share the engine.log
> > > > > >> > > > Hi Shahar,
> > > > > >> > > >
> > > > > >> > > > Doesn't appear to be there:
> > > > > >> > > >
> > > > > >> > > > engine=> select vm_name from vm_static where vm_name='wvm2';
> > > > > >> > > >  vm_name
> > > > > >> > > > -
> > > > > >> > > > (0 rows)
> > > > > >> > > >
> > > > > >> > > > Thanks,
> > > > > >> > > >
> > > > > >> > > > Cam
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > On Thu, Jul 21, 2016 at 8:33 AM, Shahar Havivi <
> > > > shav...@redhat.com>
> > > > > >> > > wrote:
> > > > > >> > > >
> > > > > >> > > > > On 20.07.16 20:06, Richard W.M. Jones wrote:
> > > > > >> > > > > > On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> > > > > 

Re: [ovirt-users] Import of ova failed

2016-07-21 Thread Shahar Havivi
On 21.07.16 14:38, Cam Mac wrote:
> I tried that already, and it fails. I gave it another try with the GUI on
> the new VM I created, as you described, and it fails.
> I can attach the engine log if you like.
no need,
please file a bug and attach the ova (without the disks - its a tar file that
you can edit)
> 
> Thanks,
> 
> Cam
> 
> On Thu, Jul 21, 2016 at 2:17 PM, Shahar Havivi <shav...@redhat.com> wrote:
> 
> > On 21.07.16 14:01, Campbell McLeay wrote:
> > > Thanks Shahar. Will do. I created a new VM on VMWare for the purposes
> > > of testing the import again with a new hostname, and it failed with
> > > the same error.
> > What you are trying to do is as far as I understand is to use virt-v2v
> > utility
> > to put the ova in export domain, there may be something wrong between the
> > virt-v2v output ovf and the oVirt engine.
> > You can try the new feature to import ova strait on oVirt admin portal (if
> > you
> > already try that the forget it), go to the vms tab -> import and select
> > "vmware ova" from the select box...
> >
> > >
> > > Cheers,
> > >
> > > Cam
> > >
> > > On 21 July 2016 at 12:59, Shahar Havivi <shav...@redhat.com> wrote:
> > > > On 21.07.16 14:58, Shahar Havivi wrote:
> > > >> The error looks like you have a problem in the storage pool which is
> > null by
> > > >> the log.
> > > >>
> > > >> Please open a bug and specify the exact steps that you took,
> > > >> ie.
> > > >> 1. $ virt-v2v -o rhev ...
> > > >> 2. goto the admin portal and try to view the VMs in the export domain
> > > >> 3. etc...
> > > >>
> > > >> If you can attach the ova without the disk it will be great.
> > > > And please attach the engine.log as well.
> > > >>
> > > >> Shahar.
> > > >>
> > > >> On 21.07.16 10:16, Cam Mac wrote:
> > > >> > Sent, thanks Shahar.
> > > >> >
> > > >> > On Thu, Jul 21, 2016 at 10:05 AM, Shahar Havivi <shav...@redhat.com>
> > wrote:
> > > >> >
> > > >> > > On 21.07.16 10:03, Cam Mac wrote:
> > > >> > > OK,
> > > >> > > Can you please share the engine.log
> > > >> > > > Hi Shahar,
> > > >> > > >
> > > >> > > > Doesn't appear to be there:
> > > >> > > >
> > > >> > > > engine=> select vm_name from vm_static where vm_name='wvm2';
> > > >> > > >  vm_name
> > > >> > > > -
> > > >> > > > (0 rows)
> > > >> > > >
> > > >> > > > Thanks,
> > > >> > > >
> > > >> > > > Cam
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > On Thu, Jul 21, 2016 at 8:33 AM, Shahar Havivi <
> > shav...@redhat.com>
> > > >> > > wrote:
> > > >> > > >
> > > >> > > > > On 20.07.16 20:06, Richard W.M. Jones wrote:
> > > >> > > > > > On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> > > >> > > > > > > >
> > > >> > > > > > > > The import doesn't happen automatically, you have to do
> > the final
> > > >> > > > > step
> > > >> > > > > > > > manually (when using the command line).  See:
> > > >> > > > > > > >
> > > >> > > > > > > > http://libguestfs.org/virt-v2v.1.html#output-to-rhev
> > > >> > > > > > > >
> > > >> > > > > > > > However that error shouldn't happen.  It looks like the
> > name is
> > > >> > > the
> > > >> > > > > > > > same as the name of an existing VM.  From virt-v2v you
> > can do the
> > > >> > > > > > > > whole conversion/import over again, this time adding
> > the `-on
> > > >> > > > > > > > new_name' option to the command line (obviously
> > choosing a name
> > > >> > > which
> > > >> > > > > > > > is not otherwise being used)

Re: [ovirt-users] Import of ova failed

2016-07-21 Thread Shahar Havivi
On 21.07.16 14:01, Campbell McLeay wrote:
> Thanks Shahar. Will do. I created a new VM on VMWare for the purposes
> of testing the import again with a new hostname, and it failed with
> the same error.
What you are trying to do is as far as I understand is to use virt-v2v utility
to put the ova in export domain, there may be something wrong between the
virt-v2v output ovf and the oVirt engine.
You can try the new feature to import ova strait on oVirt admin portal (if you
already try that the forget it), go to the vms tab -> import and select
"vmware ova" from the select box...

> 
> Cheers,
> 
> Cam
> 
> On 21 July 2016 at 12:59, Shahar Havivi <shav...@redhat.com> wrote:
> > On 21.07.16 14:58, Shahar Havivi wrote:
> >> The error looks like you have a problem in the storage pool which is null 
> >> by
> >> the log.
> >>
> >> Please open a bug and specify the exact steps that you took,
> >> ie.
> >> 1. $ virt-v2v -o rhev ...
> >> 2. goto the admin portal and try to view the VMs in the export domain
> >> 3. etc...
> >>
> >> If you can attach the ova without the disk it will be great.
> > And please attach the engine.log as well.
> >>
> >> Shahar.
> >>
> >> On 21.07.16 10:16, Cam Mac wrote:
> >> > Sent, thanks Shahar.
> >> >
> >> > On Thu, Jul 21, 2016 at 10:05 AM, Shahar Havivi <shav...@redhat.com> 
> >> > wrote:
> >> >
> >> > > On 21.07.16 10:03, Cam Mac wrote:
> >> > > OK,
> >> > > Can you please share the engine.log
> >> > > > Hi Shahar,
> >> > > >
> >> > > > Doesn't appear to be there:
> >> > > >
> >> > > > engine=> select vm_name from vm_static where vm_name='wvm2';
> >> > > >  vm_name
> >> > > > -
> >> > > > (0 rows)
> >> > > >
> >> > > > Thanks,
> >> > > >
> >> > > > Cam
> >> > > >
> >> > > >
> >> > > >
> >> > > > On Thu, Jul 21, 2016 at 8:33 AM, Shahar Havivi <shav...@redhat.com>
> >> > > wrote:
> >> > > >
> >> > > > > On 20.07.16 20:06, Richard W.M. Jones wrote:
> >> > > > > > On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> >> > > > > > > >
> >> > > > > > > > The import doesn't happen automatically, you have to do the 
> >> > > > > > > > final
> >> > > > > step
> >> > > > > > > > manually (when using the command line).  See:
> >> > > > > > > >
> >> > > > > > > > http://libguestfs.org/virt-v2v.1.html#output-to-rhev
> >> > > > > > > >
> >> > > > > > > > However that error shouldn't happen.  It looks like the name 
> >> > > > > > > > is
> >> > > the
> >> > > > > > > > same as the name of an existing VM.  From virt-v2v you can 
> >> > > > > > > > do the
> >> > > > > > > > whole conversion/import over again, this time adding the `-on
> >> > > > > > > > new_name' option to the command line (obviously choosing a 
> >> > > > > > > > name
> >> > > which
> >> > > > > > > > is not otherwise being used).
> >> > > > > > > >
> >> > > > > > > > I don't know if there's a way to get oVirt to change the name
> >> > > when
> >> > > > > > > > importing from the export domain.  As far as I know you have 
> >> > > > > > > > to
> >> > > start
> >> > > > > > > > the import from scratch.
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > > There's no existing VM with that name that I can see. It may 
> >> > > > > > > have
> >> > > come
> >> > > > > from
> >> > > > > > > one of my earlier import attempts,
> >> > > > > > > though that earlier attempt did not show up in the GUI, it did
> >> > > write
> >> > 

Re: [ovirt-users] Import of ova failed

2016-07-21 Thread Shahar Havivi
On 21.07.16 14:58, Shahar Havivi wrote:
> The error looks like you have a problem in the storage pool which is null by
> the log.
> 
> Please open a bug and specify the exact steps that you took,
> ie.
> 1. $ virt-v2v -o rhev ...
> 2. goto the admin portal and try to view the VMs in the export domain
> 3. etc...
> 
> If you can attach the ova without the disk it will be great.
And please attach the engine.log as well.
> 
> Shahar.
> 
> On 21.07.16 10:16, Cam Mac wrote:
> > Sent, thanks Shahar.
> > 
> > On Thu, Jul 21, 2016 at 10:05 AM, Shahar Havivi <shav...@redhat.com> wrote:
> > 
> > > On 21.07.16 10:03, Cam Mac wrote:
> > > OK,
> > > Can you please share the engine.log
> > > > Hi Shahar,
> > > >
> > > > Doesn't appear to be there:
> > > >
> > > > engine=> select vm_name from vm_static where vm_name='wvm2';
> > > >  vm_name
> > > > -
> > > > (0 rows)
> > > >
> > > > Thanks,
> > > >
> > > > Cam
> > > >
> > > >
> > > >
> > > > On Thu, Jul 21, 2016 at 8:33 AM, Shahar Havivi <shav...@redhat.com>
> > > wrote:
> > > >
> > > > > On 20.07.16 20:06, Richard W.M. Jones wrote:
> > > > > > On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> > > > > > > >
> > > > > > > > The import doesn't happen automatically, you have to do the 
> > > > > > > > final
> > > > > step
> > > > > > > > manually (when using the command line).  See:
> > > > > > > >
> > > > > > > > http://libguestfs.org/virt-v2v.1.html#output-to-rhev
> > > > > > > >
> > > > > > > > However that error shouldn't happen.  It looks like the name is
> > > the
> > > > > > > > same as the name of an existing VM.  From virt-v2v you can do 
> > > > > > > > the
> > > > > > > > whole conversion/import over again, this time adding the `-on
> > > > > > > > new_name' option to the command line (obviously choosing a name
> > > which
> > > > > > > > is not otherwise being used).
> > > > > > > >
> > > > > > > > I don't know if there's a way to get oVirt to change the name
> > > when
> > > > > > > > importing from the export domain.  As far as I know you have to
> > > start
> > > > > > > > the import from scratch.
> > > > > > > >
> > > > > > > >
> > > > > > > There's no existing VM with that name that I can see. It may have
> > > come
> > > > > from
> > > > > > > one of my earlier import attempts,
> > > > > > > though that earlier attempt did not show up in the GUI, it did
> > > write
> > > > > files
> > > > > > > to the export domain.
> > > > > > >
> > > > > > > I re-ran the conversion again with a rename but it failed to
> > > import it
> > > > > > > again, with the same error.
> > > > > > >
> > > > > > > Could there be a record in the DB somewhere, or does it look at 
> > > > > > > the
> > > > > files
> > > > > > > alone? Just trying to work out where the conflict is.
> > > > > >
> > > > > > I had a look at the ovirt-engine code where
> > > > > > ACTION_TYPE_FAILED_NAME_ALREADY_USED is raised and it appears to 
> > > > > > come
> > > > > > from a database check.  However I'm not really familiar enough with
> > > > > > the code to be sure.  Probably best to ask an oVirt developer, or 
> > > > > > try
> > > > > > dumping the database to see if "wvm2" appears in a column anywhere.
> > > > > >
> > > > > > Rich.
> > > > > >
> > > > > > --
> > > > > > Richard Jones, Virtualization Group, Red Hat
> > > > > http://people.redhat.com/~rjones
> > > > > > Read my programming and virtualization blog:
> > > http://rwmj.wordpress.com
> > > > > > Fedora Windows cross-compiler. Compile Windows programs, test, and
> > > > > > build Windows installers. Over 100 libraries supported.
> > > > > > http://fedoraproject.org/wiki/MinGW
> > > > > It may be in the DB...
> > > > > Try to run this via psql:
> > > > >
> > > > > select vm_name from vm_static where vm_name='wvm2';
> > > > >
> > > > > and see if there is a result...
> > > > >
> > >
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-21 Thread Shahar Havivi
The error looks like you have a problem in the storage pool which is null by
the log.

Please open a bug and specify the exact steps that you took,
ie.
1. $ virt-v2v -o rhev ...
2. goto the admin portal and try to view the VMs in the export domain
3. etc...

If you can attach the ova without the disk it will be great.

Shahar.

On 21.07.16 10:16, Cam Mac wrote:
> Sent, thanks Shahar.
> 
> On Thu, Jul 21, 2016 at 10:05 AM, Shahar Havivi <shav...@redhat.com> wrote:
> 
> > On 21.07.16 10:03, Cam Mac wrote:
> > OK,
> > Can you please share the engine.log
> > > Hi Shahar,
> > >
> > > Doesn't appear to be there:
> > >
> > > engine=> select vm_name from vm_static where vm_name='wvm2';
> > >  vm_name
> > > -
> > > (0 rows)
> > >
> > > Thanks,
> > >
> > > Cam
> > >
> > >
> > >
> > > On Thu, Jul 21, 2016 at 8:33 AM, Shahar Havivi <shav...@redhat.com>
> > wrote:
> > >
> > > > On 20.07.16 20:06, Richard W.M. Jones wrote:
> > > > > On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> > > > > > >
> > > > > > > The import doesn't happen automatically, you have to do the final
> > > > step
> > > > > > > manually (when using the command line).  See:
> > > > > > >
> > > > > > > http://libguestfs.org/virt-v2v.1.html#output-to-rhev
> > > > > > >
> > > > > > > However that error shouldn't happen.  It looks like the name is
> > the
> > > > > > > same as the name of an existing VM.  From virt-v2v you can do the
> > > > > > > whole conversion/import over again, this time adding the `-on
> > > > > > > new_name' option to the command line (obviously choosing a name
> > which
> > > > > > > is not otherwise being used).
> > > > > > >
> > > > > > > I don't know if there's a way to get oVirt to change the name
> > when
> > > > > > > importing from the export domain.  As far as I know you have to
> > start
> > > > > > > the import from scratch.
> > > > > > >
> > > > > > >
> > > > > > There's no existing VM with that name that I can see. It may have
> > come
> > > > from
> > > > > > one of my earlier import attempts,
> > > > > > though that earlier attempt did not show up in the GUI, it did
> > write
> > > > files
> > > > > > to the export domain.
> > > > > >
> > > > > > I re-ran the conversion again with a rename but it failed to
> > import it
> > > > > > again, with the same error.
> > > > > >
> > > > > > Could there be a record in the DB somewhere, or does it look at the
> > > > files
> > > > > > alone? Just trying to work out where the conflict is.
> > > > >
> > > > > I had a look at the ovirt-engine code where
> > > > > ACTION_TYPE_FAILED_NAME_ALREADY_USED is raised and it appears to come
> > > > > from a database check.  However I'm not really familiar enough with
> > > > > the code to be sure.  Probably best to ask an oVirt developer, or try
> > > > > dumping the database to see if "wvm2" appears in a column anywhere.
> > > > >
> > > > > Rich.
> > > > >
> > > > > --
> > > > > Richard Jones, Virtualization Group, Red Hat
> > > > http://people.redhat.com/~rjones
> > > > > Read my programming and virtualization blog:
> > http://rwmj.wordpress.com
> > > > > Fedora Windows cross-compiler. Compile Windows programs, test, and
> > > > > build Windows installers. Over 100 libraries supported.
> > > > > http://fedoraproject.org/wiki/MinGW
> > > > It may be in the DB...
> > > > Try to run this via psql:
> > > >
> > > > select vm_name from vm_static where vm_name='wvm2';
> > > >
> > > > and see if there is a result...
> > > >
> >
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-21 Thread Shahar Havivi
On 21.07.16 10:03, Cam Mac wrote:
OK,
Can you please share the engine.log
> Hi Shahar,
> 
> Doesn't appear to be there:
> 
> engine=> select vm_name from vm_static where vm_name='wvm2';
>  vm_name
> -
> (0 rows)
> 
> Thanks,
> 
> Cam
> 
> 
> 
> On Thu, Jul 21, 2016 at 8:33 AM, Shahar Havivi <shav...@redhat.com> wrote:
> 
> > On 20.07.16 20:06, Richard W.M. Jones wrote:
> > > On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> > > > >
> > > > > The import doesn't happen automatically, you have to do the final
> > step
> > > > > manually (when using the command line).  See:
> > > > >
> > > > > http://libguestfs.org/virt-v2v.1.html#output-to-rhev
> > > > >
> > > > > However that error shouldn't happen.  It looks like the name is the
> > > > > same as the name of an existing VM.  From virt-v2v you can do the
> > > > > whole conversion/import over again, this time adding the `-on
> > > > > new_name' option to the command line (obviously choosing a name which
> > > > > is not otherwise being used).
> > > > >
> > > > > I don't know if there's a way to get oVirt to change the name when
> > > > > importing from the export domain.  As far as I know you have to start
> > > > > the import from scratch.
> > > > >
> > > > >
> > > > There's no existing VM with that name that I can see. It may have come
> > from
> > > > one of my earlier import attempts,
> > > > though that earlier attempt did not show up in the GUI, it did write
> > files
> > > > to the export domain.
> > > >
> > > > I re-ran the conversion again with a rename but it failed to import it
> > > > again, with the same error.
> > > >
> > > > Could there be a record in the DB somewhere, or does it look at the
> > files
> > > > alone? Just trying to work out where the conflict is.
> > >
> > > I had a look at the ovirt-engine code where
> > > ACTION_TYPE_FAILED_NAME_ALREADY_USED is raised and it appears to come
> > > from a database check.  However I'm not really familiar enough with
> > > the code to be sure.  Probably best to ask an oVirt developer, or try
> > > dumping the database to see if "wvm2" appears in a column anywhere.
> > >
> > > Rich.
> > >
> > > --
> > > Richard Jones, Virtualization Group, Red Hat
> > http://people.redhat.com/~rjones
> > > Read my programming and virtualization blog: http://rwmj.wordpress.com
> > > Fedora Windows cross-compiler. Compile Windows programs, test, and
> > > build Windows installers. Over 100 libraries supported.
> > > http://fedoraproject.org/wiki/MinGW
> > It may be in the DB...
> > Try to run this via psql:
> >
> > select vm_name from vm_static where vm_name='wvm2';
> >
> > and see if there is a result...
> >
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-21 Thread Shahar Havivi
On 20.07.16 20:06, Richard W.M. Jones wrote:
> On Wed, Jul 20, 2016 at 07:16:32PM +0100, Cam Mac wrote:
> > >
> > > The import doesn't happen automatically, you have to do the final step
> > > manually (when using the command line).  See:
> > >
> > > http://libguestfs.org/virt-v2v.1.html#output-to-rhev
> > >
> > > However that error shouldn't happen.  It looks like the name is the
> > > same as the name of an existing VM.  From virt-v2v you can do the
> > > whole conversion/import over again, this time adding the `-on
> > > new_name' option to the command line (obviously choosing a name which
> > > is not otherwise being used).
> > >
> > > I don't know if there's a way to get oVirt to change the name when
> > > importing from the export domain.  As far as I know you have to start
> > > the import from scratch.
> > >
> > >
> > There's no existing VM with that name that I can see. It may have come from
> > one of my earlier import attempts,
> > though that earlier attempt did not show up in the GUI, it did write files
> > to the export domain.
> > 
> > I re-ran the conversion again with a rename but it failed to import it
> > again, with the same error.
> > 
> > Could there be a record in the DB somewhere, or does it look at the files
> > alone? Just trying to work out where the conflict is.
> 
> I had a look at the ovirt-engine code where
> ACTION_TYPE_FAILED_NAME_ALREADY_USED is raised and it appears to come
> from a database check.  However I'm not really familiar enough with
> the code to be sure.  Probably best to ask an oVirt developer, or try
> dumping the database to see if "wvm2" appears in a column anywhere.
> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> Fedora Windows cross-compiler. Compile Windows programs, test, and
> build Windows installers. Over 100 libraries supported.
> http://fedoraproject.org/wiki/MinGW
It may be in the DB...
Try to run this via psql:

select vm_name from vm_static where vm_name='wvm2';

and see if there is a result...
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-20 Thread Shahar Havivi
On 19.07.16 20:51, Richard W.M. Jones wrote:
> And I suppose it's worth saying that recent oVirt can import from
> VMware using the oVirt GUI (which works via virt-v2v, but automates
> everything for you).
> 
> Rich.
Richard is right,
you can try to use the import from VMWare to oVirt directly via the oVirt UI
which is under the VMs tab press on the "import" button menu and select VMWare
as the source.

> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-top is 'top' for virtual machines.  Tiny program with many
> powerful monitoring features, net stats, disk stats, logging, etc.
> http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Import of ova failed

2016-07-17 Thread Shahar Havivi
On 14.07.16 18:14, Cam Mac wrote:
> Hi,
> 
> I'm trying to import some .ova images from VMWare that have been copied to
> a node. In both cases they fail with the error:
> 
> "Conversion of VM from exteral enironment failed: copy-disk stream closed
> unexpectedly"
First you need to look at vdsm log to see more details why it failed.

> 
> (the message above is copied verbatim from the log, including
> the misspellings)
> 
> One of the VMs is a RHEL 6.6 and the other is Windows 7. The import reports
> adding a disk and then running a conversion, then appears to fail about 5
> or 6 minutes into converting the image.
> 
> I'm considering using virt-v2v to do the conversion of the .ova, but I'm
> not sure how to get that into ovirt then.
> 
> Any suggestions?
Try to run virt-v2v -i ova -o local to import the ova to local disk (see the
virt-v2v man page for more options) and see if that pass - the errors can be
more detailed there (it suppose to reflect the same error that you get in vdsm
log)., another options you can do is run virt-v2v in verbose mode (virt-v2v
-v).
> 
> Regards,
> 
> Cam

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Will not communicate with VCenter

2016-06-23 Thread Shahar Havivi
On 22.06.16 09:57, JC Clark wrote:
> I am trying to establish a VCenter as an External Provider.  The when I try
> to "Test" the connection, the ovirt error message says that I have "failed
> to communicate".
We have a fixed upstream bug of that
https://bugzilla.redhat.com/show_bug.cgi?id=1293591

As a workaround you need to select oVirt DataCenter and not the default "Any
Data Center" (its in the upper gray panel).
 
 Shahar.

> 
> The Vcenter logs clearly shows the logging in and logging out of the ovirt
> administrator to the vCenter instance.
> 
> And the final error message says:
>   
> Jun 22, 2016 9:49:06 AM
>   
>   
> Provider VMWare was updated. (User: admin@internal)
>   
> Jun 22, 2016 9:47:01 AM
>   
>   
> Failed to retrieve VMs information from external server
> vpx://vcenter.mcsaipan.net/MCS1/vmware.mcsaipan.net?no_verify=1
> 
> I am using oVirt 3.6.6
> Vcenter Server Appliance
> no Cluster
> 
> 
> Uncaught exception occurred. Please tryreloading
> the page. Details: Exception
> caught: Exception caught: (TypeError) __gwt$exception: : Cannot
> read property 'f' of null
> Please have your administrator check the UI logs
> 
> This guy pops up when I try to connect.
> 
> Anyway just looking for a clue. Any suggestions are welcome.
> 
> Thanks

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] best way to migrate VMs from VMware to oVirt

2016-06-16 Thread Shahar Havivi
On 15.06.16 22:23, Nir Soffer wrote:
> On Wed, Jun 15, 2016 at 8:41 PM, Cam Mac  wrote:
> > Hi,
> >
> > I haven't had any luck using the oVirt GUI or virt-v2v (see earlier email),
> > and I need to find a way to migrate quite a few Windows hosts (Windows 7,
> > 2012, 2008, 2k3 etc) into my test oVirt cluster as a PoC so I can make a
> > compelling case for getting rid of VMware. Using OVF files looks like a lot
> > more manual work as compared to the GUI or virt-v2v, with their nice
> > conversion features.
How did you try to import via oVirt/virt-v2v?
Please specify the steps as well as the version of vmware (do you use a
cluster), the version of the vdsm hosts and logs will be nice.

Thanks,
  Shahar.
> >
> > Any suggestions?
> 
> I think the best way is use our import external vm feature.
> 
> Can you point us to the mail about this?
> 
> Nir
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Importing a Windows Guest in oVirt

2015-12-09 Thread Shahar Havivi
On 30.11.15 19:09, David Lo Bascio wrote:
> Hi everyone,
> 
> I migrated several Linux guest this way:
> /virt-v2v -ic qemu+ssh://root@/system -o rhev -os :
> --network  /
> 
> Now, I have some Windows guest running on KVM managed by libvirt and I would
> like to import them in oVirt through virt-v2v in a similar way.
> Can you help me?
Hi,
virt-v2v is not supporting "converting" kvm to kvm since there is no
real conversion going on.
However we do work on importing kvm VMs managed by libvirt and hopefully it
will be available in a month or two.

  Shahar.
> 
> Thanks a lot!
> David
> 
> 
> 

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] CentOS 7.1 and virt-v2v

2015-12-08 Thread Shahar Havivi
On 08.12.15 09:10, CLSA Mcmaster wrote:
> On Tue, Dec 8, 2015 at 2:27 AM, Shahar Havivi <shah...@redhat.com> wrote:
> 
> > Adding Adam and Martin,
> > Can you please look why mom fails?
> >
> >  Shahar.
> >
> > On 07.12.15 14:10, CLSA Mcmaster wrote:
> > > On Mon, Dec 7, 2015 at 1:37 PM, Shahar Havivi <shah...@redhat.com>
> > wrote:
> > >
> > > > On 07.12.15 13:34, CLSA Mcmaster wrote:
> > > > > On Mon, Dec 7, 2015 at 1:26 PM, Shahar Havivi <shah...@redhat.com>
> > > > wrote:
> > > > >
> > > > > > On 07.12.15 13:15, CLSA Mcmaster wrote:
> > > > > > > On Mon, Dec 7, 2015 at 1:03 PM, Shahar Havivi <
> > shah...@redhat.com>
> > > > > > wrote:
> > > > > > >
> > > > > > > > On 07.12.15 11:19, CLSA Mcmaster wrote:
> > > > > > > > > Greetings
> > > > > > > > >
> > > > > > > > > I am new to both CentOS and oVirt. I have been hoping to
> > migrate
> > > > some
> > > > > > > > > virtual machines from VMware to oVirt and I have hit a wall.
> > > > > > > > >
> > > > > > > > > CentOS 7.1 does not include the tool virt-v2v with the
> > > > > > libguestfs-tools
> > > > > > > > > package. I have enabled the CR repository and upgraded but no
> > > > luck. I
> > > > > > > > have
> > > > > > > > > attempted to compile but the dependency whack-a-mole process
> > > > wore me
> > > > > > down
> > > > > > > > > and I eventually hot another wall with supermin not being
> > "new
> > > > > > enough". I
> > > > > > > > > tried to compile that and ran into more dependency issues.
> > > > > > > > Hi Sean,
> > > > > > > > For virt-v2v compilation issue you can ask at
> > > > libgues...@redhat.com
> > > > > > > > mailing
> > > > > > > > list.
> > > > > > > > >
> > > > > > > > > Frankly, I am at the point of throwing in the towel but I'm
> > > > hoping
> > > > > > > > someone
> > > > > > > > > can offer advise or insight on obtaining the tool through
> > other
> > > > > > means. I
> > > > > > > > > would also be open to importing guests through another
> > method.
> > > > For
> > > > > > > > example,
> > > > > > > > > the oVirt interface has a utility to import OVA files. Is
> > that
> > > > VMware
> > > > > > > > > created OVA files? The dialogue has host and path. Is the
> > path
> > > > to be
> > > > > > on
> > > > > > > > the
> > > > > > > > > host or the engine? Can it be any path?
> > > > > > > > Upstream ovirt git://gerrit.ovirt.org/ovirt-engine have
> > support
> > > > for
> > > > > > > > importing
> > > > > > > > OVA files that was exported from vShpere 5.5 and 6.0 as well as
> > > > > > connecting
> > > > > > > > to
> > > > > > > > a running esxi listing and importing the VMs that are in down
> > > > state.
> > > > > > > >
> > > > > > > > The OVA file must be accessed by the importing host with
> > > > permissions
> > > > > > > > 36:36(NFS
> > > > > > > > mount will work as well).
> > > > > > > >
> > > > > > > > To access the import VMs feature simply go to the VMs tab and
> > > > click on
> > > > > > the
> > > > > > > > import button there you will be able to select the import
> > source
> > > > > > > > (VMware/OVA
> > > > > > > > etc).
> > > > > > > >
> > > > > > > > More information about virt-v2v integration with oVirt can be
> > > > found in
> > > > > > its
> > > > > > > > feature page:
> > http://www.ovirt.org/Features/virt-v2v_Integration
> > > > &g

Re: [ovirt-users] CentOS 7.1 and virt-v2v

2015-12-07 Thread Shahar Havivi
Adding Adam and Martin,
Can you please look why mom fails?

 Shahar.

On 07.12.15 14:10, CLSA Mcmaster wrote:
> On Mon, Dec 7, 2015 at 1:37 PM, Shahar Havivi <shah...@redhat.com> wrote:
> 
> > On 07.12.15 13:34, CLSA Mcmaster wrote:
> > > On Mon, Dec 7, 2015 at 1:26 PM, Shahar Havivi <shah...@redhat.com>
> > wrote:
> > >
> > > > On 07.12.15 13:15, CLSA Mcmaster wrote:
> > > > > On Mon, Dec 7, 2015 at 1:03 PM, Shahar Havivi <shah...@redhat.com>
> > > > wrote:
> > > > >
> > > > > > On 07.12.15 11:19, CLSA Mcmaster wrote:
> > > > > > > Greetings
> > > > > > >
> > > > > > > I am new to both CentOS and oVirt. I have been hoping to migrate
> > some
> > > > > > > virtual machines from VMware to oVirt and I have hit a wall.
> > > > > > >
> > > > > > > CentOS 7.1 does not include the tool virt-v2v with the
> > > > libguestfs-tools
> > > > > > > package. I have enabled the CR repository and upgraded but no
> > luck. I
> > > > > > have
> > > > > > > attempted to compile but the dependency whack-a-mole process
> > wore me
> > > > down
> > > > > > > and I eventually hot another wall with supermin not being "new
> > > > enough". I
> > > > > > > tried to compile that and ran into more dependency issues.
> > > > > > Hi Sean,
> > > > > > For virt-v2v compilation issue you can ask at
> > libgues...@redhat.com
> > > > > > mailing
> > > > > > list.
> > > > > > >
> > > > > > > Frankly, I am at the point of throwing in the towel but I'm
> > hoping
> > > > > > someone
> > > > > > > can offer advise or insight on obtaining the tool through other
> > > > means. I
> > > > > > > would also be open to importing guests through another method.
> > For
> > > > > > example,
> > > > > > > the oVirt interface has a utility to import OVA files. Is that
> > VMware
> > > > > > > created OVA files? The dialogue has host and path. Is the path
> > to be
> > > > on
> > > > > > the
> > > > > > > host or the engine? Can it be any path?
> > > > > > Upstream ovirt git://gerrit.ovirt.org/ovirt-engine have support
> > for
> > > > > > importing
> > > > > > OVA files that was exported from vShpere 5.5 and 6.0 as well as
> > > > connecting
> > > > > > to
> > > > > > a running esxi listing and importing the VMs that are in down
> > state.
> > > > > >
> > > > > > The OVA file must be accessed by the importing host with
> > permissions
> > > > > > 36:36(NFS
> > > > > > mount will work as well).
> > > > > >
> > > > > > To access the import VMs feature simply go to the VMs tab and
> > click on
> > > > the
> > > > > > import button there you will be able to select the import source
> > > > > > (VMware/OVA
> > > > > > etc).
> > > > > >
> > > > > > More information about virt-v2v integration with oVirt can be
> > found in
> > > > its
> > > > > > feature page: http://www.ovirt.org/Features/virt-v2v_Integration
> > > > > >
> > > > > >  Shahar.
> > > > > > >
> > > > > > > Thank you in advance for any support offered.
> > > > > > >
> > > > > > > Sean.
> > > > > >
> > > > > > > ___
> > > > > > > Users mailing list
> > > > > > > Users@ovirt.org
> > > > > > > http://lists.ovirt.org/mailman/listinfo/users
> > > > > >
> > > > > >
> > > > > Thank you. Shahar.
> > > > >
> > > > > I did get an OVA imported. Unfortunately, immediately upon doing so
> > I got
> > > > > this error: "Unit mom-vdsm.service has failed".
> > > > Can you add the vdsm log, its in /var/log/vdsm/vdsm.log
> > > > >
> > > > > Sean.
> > > >
> > > > > __

Re: [ovirt-users] CentOS 7.1 and virt-v2v

2015-12-07 Thread Shahar Havivi
On 07.12.15 13:34, CLSA Mcmaster wrote:
> On Mon, Dec 7, 2015 at 1:26 PM, Shahar Havivi <shah...@redhat.com> wrote:
> 
> > On 07.12.15 13:15, CLSA Mcmaster wrote:
> > > On Mon, Dec 7, 2015 at 1:03 PM, Shahar Havivi <shah...@redhat.com>
> > wrote:
> > >
> > > > On 07.12.15 11:19, CLSA Mcmaster wrote:
> > > > > Greetings
> > > > >
> > > > > I am new to both CentOS and oVirt. I have been hoping to migrate some
> > > > > virtual machines from VMware to oVirt and I have hit a wall.
> > > > >
> > > > > CentOS 7.1 does not include the tool virt-v2v with the
> > libguestfs-tools
> > > > > package. I have enabled the CR repository and upgraded but no luck. I
> > > > have
> > > > > attempted to compile but the dependency whack-a-mole process wore me
> > down
> > > > > and I eventually hot another wall with supermin not being "new
> > enough". I
> > > > > tried to compile that and ran into more dependency issues.
> > > > Hi Sean,
> > > > For virt-v2v compilation issue you can ask at libgues...@redhat.com
> > > > mailing
> > > > list.
> > > > >
> > > > > Frankly, I am at the point of throwing in the towel but I'm hoping
> > > > someone
> > > > > can offer advise or insight on obtaining the tool through other
> > means. I
> > > > > would also be open to importing guests through another method. For
> > > > example,
> > > > > the oVirt interface has a utility to import OVA files. Is that VMware
> > > > > created OVA files? The dialogue has host and path. Is the path to be
> > on
> > > > the
> > > > > host or the engine? Can it be any path?
> > > > Upstream ovirt git://gerrit.ovirt.org/ovirt-engine have support for
> > > > importing
> > > > OVA files that was exported from vShpere 5.5 and 6.0 as well as
> > connecting
> > > > to
> > > > a running esxi listing and importing the VMs that are in down state.
> > > >
> > > > The OVA file must be accessed by the importing host with permissions
> > > > 36:36(NFS
> > > > mount will work as well).
> > > >
> > > > To access the import VMs feature simply go to the VMs tab and click on
> > the
> > > > import button there you will be able to select the import source
> > > > (VMware/OVA
> > > > etc).
> > > >
> > > > More information about virt-v2v integration with oVirt can be found in
> > its
> > > > feature page: http://www.ovirt.org/Features/virt-v2v_Integration
> > > >
> > > >  Shahar.
> > > > >
> > > > > Thank you in advance for any support offered.
> > > > >
> > > > > Sean.
> > > >
> > > > > ___
> > > > > Users mailing list
> > > > > Users@ovirt.org
> > > > > http://lists.ovirt.org/mailman/listinfo/users
> > > >
> > > >
> > > Thank you. Shahar.
> > >
> > > I did get an OVA imported. Unfortunately, immediately upon doing so I got
> > > this error: "Unit mom-vdsm.service has failed".
> > Can you add the vdsm log, its in /var/log/vdsm/vdsm.log
> > >
> > > Sean.
> >
> > > ___
> > > Users mailing list
> > > Users@ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users
> >
> >
> I shut down the host. I will restart it. But on the engine side in
> engine.log I see:
Ok,
try to see if you can update the mom* packages on the host and also what
version of vdsm and mom are you using?
vdsm log can be helpful.

  Shahar.
> 
> Caused by: org.postgresql.util.PSQLException: ERROR: integer out of range
>   Where: PL/pgSQL function fn_get_disk_commited_value_by_storage(uuid) line
> 20 at assignment
> PL/pgSQL function getstorage_domains_by_storagepoolid(uuid,uuid,boolean)
> line 3 at RETURN QUERY
> at
> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
> at
> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
> at
> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
> at
> org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
> at
> org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
> at
> org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
> at
> org.jboss.jca.adapters.jdbc.CachedPreparedStatement.executeQuery(CachedPreparedStatement.java:111)
> at
> org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:462)
> at
> org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:644)
> [spring-jdbc.jar:3.1.1.RELEASE]
> at
> org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:587)
> [spring-jdbc.jar:3.1.1.RELEASE]
> ... 153 more

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Virt-v2v import issue

2015-12-06 Thread Shahar Havivi
Are you using virt-v2v command line?
If so a good place to ask is here: libgues...@redhat.com


On 07.12.15 12:50, Budur Nagaraju wrote:
> I have tried all the options but no luck ,can you pls update the command to
> collect the logs ?
> 
> On Fri, Dec 4, 2015 at 9:42 PM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
> 
> >
> > On 04 Dec 2015, at 17:05, Budur Nagaraju  wrote:
> >
> > Disk is ide
> > Graphics is spice
> > Is type is win2k3
> >
> >
> > try switching to VNC, depending on v2v process that’s one thing which
> > might go wrong easily.
> > If it doesn’t help you would need to get back to the v2v logs and see it
> > there was any problem during the conversion, something unusual about your
> > guest, some strange device, etc
> >
> >
> > Does't goes to safe mode.
> >
> > -Nagaraju
> > On Dec 4, 2015 9:30 PM, "Michal Skrivanek" 
> > wrote:
> >
> >>
> >> > On 04 Dec 2015, at 12:15, Budur Nagaraju  wrote:
> >> >
> >> > Hi
> >> >
> >> > I have converted win2k3 which was deployed in vmware esxi to oVirt by
> >> using "v2v" tool ,imported successfully after powering on unable to get the
> >> login prompt getting stuck at "windows is starting".
> >> >
> >> > can someone help me in this issue ?
> >>
> >> how does the VM look like - what devices does it have (disks, graphics)?
> >> does it boot in safe mode?
> >> Is the OS type in Edit VM dialog set correctly?
> >>
> >> Thanks,
> >> michal
> >>
> >> >
> >> > Thanks,
> >> > Nagaraju
> >> >
> >> >
> >> >
> >> > ___
> >> > Users mailing list
> >> > Users@ovirt.org
> >> > http://lists.ovirt.org/mailman/listinfo/users
> >>
> >> ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
> >
> >

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cloud-init and sealing of template

2015-12-01 Thread Shahar Havivi
On 01.12.15 17:26, Gianluca Cecchi wrote:
> On Tue, Dec 1, 2015 at 9:42 AM, Shahar Havivi <shah...@redhat.com> wrote:
> 
> > On 01.12.15 09:03, Gianluca Cecchi wrote:
> > > Hello,
> > > is it correct that even if I use cloud-init I have to seal my candidate
> > VM
> > > before making it a template?
> > Well it depend,
> > If you have a common initialization you can run cloud-init before sealing
> > the
> > template, its more reasonable to create a template and run cloud-init on
> > each
> > VM that created from this template.
> > > In that case what is the correct approach to pre-seal a CentOS 7 VM?
> > > Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I
> > > unconfigure NetworkManager before sealing them, using classic network
> > > service, or what?
> > Yes the NetworkManager can override cloud-init network settings.
> > >
> >
> >
> OK, I'm trying using classic network instead of NetworkManager.
> But right before running the "make template" action, do I have to run any
> of "sys-unconfig" and/or "virt-sysprep" tools?
No you don't need to run this tools.
> 
> - sys-unconfig
> I see in its man page:
> "This utility should not be used for creating cloud or virtual machine
> images.  For  that  use  please see virt-sysprep"
> Does this note apply also in my scenario where I want to seal a VM in oVirt
> before making a template from it?
> 
> - virt-sysprep
> It should be run "out of band" against a disk of a powered off VM if I
> understood correctly.
> Is it applicable in my case with oVirt and a disk that actually is on a
> storage domain?
> It seems more applicable in a plain Qemu?KVM environment...
> 
> It remains open the question about how to properly seal a RHEL 7 / CentOS 7
What do you mean by sealing?
> VM/OS.
> Thanks,
> Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cloud-init and sealing of template

2015-12-01 Thread Shahar Havivi
On 01.12.15 09:03, Gianluca Cecchi wrote:
> Hello,
> is it correct that even if I use cloud-init I have to seal my candidate VM
> before making it a template?
Well it depend,
If you have a common initialization you can run cloud-init before sealing the
template, its more reasonable to create a template and run cloud-init on each
VM that created from this template.
> In that case what is the correct approach to pre-seal a CentOS 7 VM?
> Also, for operating system like Fedora >=20 and/or RHEL/CentOS 7 should I
> unconfigure NetworkManager before sealing them, using classic network
> service, or what?
Yes the NetworkManager can override cloud-init network settings.
> 
> Thanks in advance,
> Gianluca

> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] virt-v2v issues

2015-11-16 Thread Shahar Havivi
On 15.11.15 22:31, Fernando Fuentes wrote:
> Team,
> 
> I am trying to upload an image that I recently created under kvm and I
> am getting an error:
> 
> root@darkdreams's password:
> Meteohub-v4.7-4GB.raw: 100%
> [==]D
> 0h00m46s
> /tmp/r9piD51Hvb/49fcc7e8-e8e1-4cfa-8b5a-0a20165a6689/v2v.fmUdW98I/eec34b45-f6b1-49a9-a9f0-b956ee4f8ee6/b7fbe285-6f91-4777-b478-cd484a6da9a7:
> Permission denied at /usr/lib64/perl5/vendor_perl/Sys/Guestfs.pm line
> 549.
Take a look at the permissions of the file...
What is the command that you are using?
if you are trying to use 'virt-v2v -o rhevm' to an export domain change the
file owner to 36:36

  Shahar.
> 
> 
> Apparently redhat has this posted on their Knowledge base under (Error
> when running virt-v2v ("Permission denied")) with a solution but I do
> not have access.
> 
> Does any body have any idea why this is happening?
> 
> TIA!
> 
> -- 
> Fernando Fuentes
> ffuen...@txweather.org
> http://www.txweather.org
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-engine-extension-aaa-ldap and sysprep domain join

2015-10-27 Thread Shahar Havivi
On 27.10.15 05:25, Alon Bar-Lev wrote:
> yes, you should probably only customize: $JoinDomain$, $DomainAdminPassword$, 
> $DomainAdmin$
> maybe, not sure: $JoinDomain$, $MachineObjectOU$
> the rest should be the same as any other.
Please make sure that the file is the full sysprep file such as you can find
in /packaging/conf/sysprep/sysprep.w7 which is a windows 7 sysprep file.
You can leave the variables such as $OrgName$ which will be replaces (exept
from the variables that Alon mentioned which where the original problem).

> 
> - Original Message -
> > From: "Cristian Mammoli" <c.mamm...@apra.it>
> > To: "Shahar Havivi" <shah...@redhat.com>, "Alon Bar-Lev" <alo...@redhat.com>
> > Cc: "users" <users@ovirt.org>
> > Sent: Tuesday, October 27, 2015 11:19:02 AM
> > Subject: Re: [ovirt-users] ovirt-engine-extension-aaa-ldap and sysprep 
> > domain join
> > 
> > So just pasting there the contents of a modified
> > /usr/share/ovirt-engine/conf/sysprep/sysprep.w7x64 (for example) should
> > work right?
> > 
> > The variables like '![CDATA[$OrgName$' will be replaced?
> > 
> > Il 26/10/2015 12:43, Shahar Havivi ha scritto:
> > > On 26.10.15 06:23, Alon Bar-Lev wrote:
> > >> Hi,
> > >> The usage of the engine-manage-domain user to anything else but ldap
> > >> searches is something that is unexpected and insecure.
> > >> As a solution, you may either paste a modified sysprep file into the pool
> > >> at UI or set up a different osinfo profile with modified sysprep file,
> > >> this modified sysprep file can contain the credentials of the user that
> > >> is being used for joining the domain.
> > >> CCing Shahar which may assist farther.
> > > Hi,
> > > You can paste a modified sysprep file to "new Pool"->"Initial 
> > > run"->"Custom
> > > Script"
> > > As Alon mentioned.
> > >>
> > 
> > --
> > Mammoli Cristian
> > System administrator
> > T. +39 0731 22911
> > Via Brodolini 6 | 60035 Jesi (an)
> > 
> > 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-engine-extension-aaa-ldap and sysprep domain join

2015-10-26 Thread Shahar Havivi
On 26.10.15 06:23, Alon Bar-Lev wrote:
> Hi,
> The usage of the engine-manage-domain user to anything else but ldap searches 
> is something that is unexpected and insecure.
> As a solution, you may either paste a modified sysprep file into the pool at 
> UI or set up a different osinfo profile with modified sysprep file, this 
> modified sysprep file can contain the credentials of the user that is being 
> used for joining the domain.
> CCing Shahar which may assist farther.
Hi,
You can paste a modified sysprep file to "new Pool"->"Initial run"->"Custom 
Script"
As Alon mentioned.
> Regards,
> Alon
> 
> - Original Message -
> > From: "Cristian Mammoli" 
> > To: "users" 
> > Sent: Monday, October 26, 2015 12:01:54 PM
> > Subject: [ovirt-users] ovirt-engine-extension-aaa-ldap and sysprep domain   
> > join
> > 
> > Hi, I tried to migrate to ovirt-engine-extension-aaa-ldap from
> > engine-manage-domains. Everything seems to work fine so far except the
> > automatic join to domain during sysprep.
> > 
> > Is it supposed to work? Where should I investigate further?
> > 
> > Thank you
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> > 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt 3.5.2 cannot start windows vms

2015-05-05 Thread Shahar Havivi
On 04.05.15 17:43, Michal Skrivanek wrote:
 
 On 4 May 2015, at 16:56, Wolfgang Bucher wrote:
 
  Hello
  
  sorry but i sent the wrong logs.
  
  this one should be ok.
  
  Again  it affects only windows vm's since 3.5.2
 
 it might really be because of the bug that we always attach sysprep even when 
 not requested.
 Still, the failure is weird.
 Ideally enable libvirt debug logs and attach those. perhaps also qemu.log
 
 Thanks,
 michal
 
  
  Thanks
  
  Wolfgang
   
  -Ursprüngliche Nachricht-
  Von: Wolfgang Bucher wolfgang.buc...@netland-mn.de
  Gesendet: Mon 4 Mai 2015 16:22
  An: Michal Skrivanek mskri...@redhat.com
  CC: users@ovirt.org (users@ovirt.org) users@ovirt.org
  Betreff: Re: [ovirt-users] ovirt 3.5.2 cannot start windows vms
  
  Hello
  
  I have no sysprep in VM properties.
  
  attached vdsm.log and supervdsm.log
  
  Thanks 
  Wolfgang
  
  -Ursprüngliche Nachricht-
  Von: Michal Skrivanek mskri...@redhat.com
  Gesendet: Mon 4 Mai 2015 16:02
  An: Wolfgang Bucher wolfgang.buc...@netland-mn.de
  CC: Francesco Romani from...@redhat.com; users@ovirt.org 
  (users@ovirt.org) users@ovirt.org; Shahar Havivi shav...@redhat.com
  Betreff: Re: [ovirt-users] ovirt 3.5.2 cannot start windows vms
  
  
  
  On 4 May 2015, at 15:32, Wolfgang Bucher wolfgang.buc...@netland-mn.de 
  wrote:
  
  Hello
  
  i think it's not related to Bug 1213410. I can only start the vm's if i 
  attach sysprep floppy.
  
  I tested a new host with iscsi storage  all centos 7.1 and i got the same 
  results. Starting linux vm's works without problems.
  
  Do you have any sysprep config in VM properties?
  Might be related to the bug Shahe is working on about always attaching 
  sysprep
  It shouldn't fail though. Vdsm logs would help
I don't think its related to the sysprep bug,
We don't attach sysprep to non windows guests.
  
  Thanks,
  michal
  
  
  
  Thanks
  Wolfgang
  
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
  
  ___
  
  Users mailing list
  
  Users@ovirt.org
  
  http://lists.ovirt.org/mailman/listinfo/users
  
  vdsm.tar.gz
 

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] disk ordering

2014-12-17 Thread Shahar Havivi
On 17.12.14 07:55, Vered Volansky wrote:
 Paul,
 
 This does not suppose to happen, so we'll need much more data in order to 
 pin-point the problem, I hope you'll be able to do this for us.
 We'll need the exact flow in both cases (bootable is sda or sbd).
 Is this a new VM with new installations? An old VM?
 Are all the VMs based on the same template? If not what are the differences?
 Is it always EL6?
 What version are you using?
 
 Please add anything else that differentiate the two flows, and what's the 
 same.
 
 Shahar may have more questions for you about this before you get your answer.
 Thanks in advance, Shahar, for your help on this.
Just as much details as you can please,
Or it is just random?
 
 Regards,
 Vered
 
 - Original Message -
  From: Paul Jansen vla...@yahoo.com.au
  To: Vered Volansky ve...@redhat.com
  Cc: users users@ovirt.org
  Sent: Wednesday, December 17, 2014 1:46:06 PM
  Subject: Re: [ovirt-users] disk ordering
  
  Hello Vered.
  This is when doing an EL6 install. Disk 1 - which also has the bootable flag
  turned on in ovirt - sometime does not show up as SDA inside the OS. The
  secondary disk shows as SDA and the first disk shows as SDB. This is with
  both disks as virtio -scsi disks.
  Unfortunately this behaviour is not consistent, it does happen every now and
  then though.. A colleague hit this issue again last night.
  
  
  From: Vered Volansky ve...@redhat.com
  To: Paul Jansen vla...@yahoo.com.au
  Cc: users users@ovirt.org
  Sent: Wednesday, 17 December 2014, 22:10
  Subject: Re: [ovirt-users] disk ordering
  
  Hi Paul,
  
  Please explain what disk ordering you are referring to.
  Disk ordering displayed when and where exactly?
  
  Thanks,
  Vered
  
  
  
  - Original Message -
   From: Paul Jansen  vla...@yahoo.com.au 
   To: users  users@ovirt.org 
   Sent: Wednesday, December 17, 2014 3:12:50 AM
   Subject: [ovirt-users] disk ordering
   
   Hello.
   I've noticed issues with inconsistent disk ordering when doing installs
   from
   time to time (on VMs with two disks).
   I came across this post from Itamar from October 2013 where 'disk 
   ordering'
   is mentioned as a roadmap item: [Users] oVirt Roadmap feature requests -
   Summary
   
   I haven't found anything more when doing searches. Has any work been done
   on
   this, or is there a workaround?
   This is a little annoying. I never run into this issue under Vmware's 
   ESXi.
   
   
   
   
   
   
   [Users] oVirt Roadmap feature requests - Summary
   [Users] oVirt Roadmap feature requests - Summary Itamar Heim iheim at
   redhat.com Sun Oct 6 15:55:33 EDT 2013 Previous message: [Users] so, what
   do
   you want next in oVirt?
   
   
   View on lists.ovirt.org
   
   Preview by Yahoo
  
   
   
   
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
  
   
  
  
  
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
  
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues with vm start up

2014-11-27 Thread Shahar Havivi
Try to remove content and run the vm,
ie remove the runcmd: or some of it - try to use the xml with out CDATA maybe
you can pinpoint the problem that way...


On 27.11.14 10:03, Shanil S wrote:
 Hi All,
 
 
 I am using the ovirt version 3.5 and having some issues with the vm startup
 with cloud-init using api in run-once mode.
 
 Below is the steps i follow :-
 
 1. Create the VM by API from precreated Template..
 2. Start the VM in run-once mode and push the cloud-init data from API..
 3. VM stuck and from console it display the following :-
 Booting from DVD/CD.. ...
 Boot failed : could not read from CDROM (code 004)
 
 I am using the following xml for this operation :-
 
 action
 vm
  os
   boot dev='cdrom'/
  /os
  initialization
   cloud_init
host
 addresstest/address
/host
network_configuration
 nics
  nic
   interfacevirtIO/interface
   nameeth0/name
   boot_protocolstatic/boot_protocol
   mac address=''/
   network
ip address='' netmask='' gateway=''/
   /network
   on_boottrue/on_bootvnic_profile id='' /
  /nic
  nic
   interfacevirtIO/interface
   nameeth1/name
   boot_protocolstatic/boot_protocol
   mac address=''/
   network
ip address='' netmask='255.255.255.0' gateway=''/
   /network
   on_boottrue/on_bootvnic_profile id='' /
  /nic
 /nics
/network_configuration
files
 file
  name/ignored/namecontent![CDATA[#cloud-config
 disable-ec2-metadata: true
 disable_root: false
 ssh_pwauth: true
 ssh_deletekeys: true
 chpasswd: { expire: False }
 
 users:
  - name: root
primary-group: root
passwd: 8W7RQ5Bh
lock-passwd: false
 
 runcmd:
  - sed -i '/nameserver/d' /etc/resolv.conf
  - echo 'nameserver 8.8.8.8'  /etc/resolv.conf
  - echo 'nameserver 8.8.4.4'  /etc/resolv.conf
  - echo 'root:8W7RQ5Bh' | chpasswd
  - yum -y update
  - yum -y install rdate
  - rdate -s stdtime.gov.hk]]/content
  typeplaintext/type
 /file
/files
   /cloud_initcustom_script![CDATA[#cloud-config
 disable-ec2-metadata: true
 disable_root: false
 ssh_pwauth: true
 ssh_deletekeys: true
 chpasswd: { expire: False }
 
 users:
  - name: root
primary-group: root
passwd: 8W7RQ5Bh
lock-passwd: false
 
 runcmd:
  - sed -i '/nameserver/d' /etc/resolv.conf
  - echo 'nameserver 8.8.8.8'  /etc/resolv.conf
  - echo 'nameserver 8.8.4.4'  /etc/resolv.conf
  - echo 'root:8W7RQ5Bh' | chpasswd
  - yum -y update
  - yum -y install rdate
  - rdate -s stdtime.gov.hk]]/custom_script
  /initialization
 /vm
/action
 
 I am also attaching the screen shot to this.
 
 
 
 -- 
 Regards
 Shanil


 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Add multiple files to a VM via cloud-init

2014-10-30 Thread Shahar Havivi
On 29.10.14 17:35, Branimir Pejakovic wrote:
 Hi list,
 
 I was wondering is there a way to add multiple files to a vm via cloud-init
 using python SDK. I was able to add /etc/resolv.conf and additionally I
 would like to add config files for NICs (ifcfg-ethX) with appropriate
 values (ip,gw,netmask). I used an example given here:
 http://www.ovirt.org/Features/Cloud-Init_Integration . But unfortunately I
 cannot do the same thing If I want to write multiple files to a vm in
 params.Action class.
 
 Thank you in advance!
you can use the custom script text box in oVirts cloud-init section,
there you can add any cloud-init section - adding files examples can be found
here:
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files

  Shahar Havivi.
 
 
 Best regards,
 
 Branimir

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Add multiple files to a VM via cloud-init

2014-10-30 Thread Shahar Havivi
On 30.10.14 10:06, Branimir Pejakovic wrote:
 On Thu, Oct 30, 2014 at 7:22 AM, Shahar Havivi shah...@redhat.com wrote:
 
  On 29.10.14 17:35, Branimir Pejakovic wrote:
   Hi list,
  
   I was wondering is there a way to add multiple files to a vm via
  cloud-init
   using python SDK. I was able to add /etc/resolv.conf and additionally I
   would like to add config files for NICs (ifcfg-ethX) with appropriate
   values (ip,gw,netmask). I used an example given here:
   http://www.ovirt.org/Features/Cloud-Init_Integration . But
  unfortunately I
   cannot do the same thing If I want to write multiple files to a vm in
   params.Action class.
  
   Thank you in advance!
  you can use the custom script text box in oVirts cloud-init section,
  there you can add any cloud-init section - adding files examples can be
  found
  here:
 
  http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files
 
Shahar Havivi.
 
 
 Hi Shahar,
 
 Thank you for the reply.
 
 To be honest I knew for those scripts but I want to do it in automate
 fashion just like in that example that I put in my original message. I have
 tried to specify in params.Files class multiple files:
 
 vm_file1 = params.Files(file=[params.File(name = 'file1', content =
 file1_content, type_= 'PLAINTEXT')])
 vm_file2 = params.Files(file=[params.File(name = 'file2', content =
 file2_content, type_= 'PLAINTEXT')])
 
 and then give them as arguments to params.CloudInit _init_ constructor
 (files=...)  just like in that example above but it seems that I am doing
 something wrong because it does not write multiple files - it writes only
 when you specify one file all right. The exception is Error: 'list' object
 has no attribute 'export' (I tried to specify those files as a list -
 files=[vm_file1,vm_file2]).
 
 Thanks for any help.
The custom script is currently the only option to add files via Cloud-Init

Thanks,
  Shahar Havivi.

 
 Best regards,
 
 
 Branimir
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Add multiple files to a VM via cloud-init

2014-10-30 Thread Shahar Havivi
On 30.10.14 12:30, Branimir Pejakovic wrote:
 On Thu, Oct 30, 2014 at 12:02 PM, Shahar Havivi shah...@redhat.com wrote:
 
  On 30.10.14 10:06, Branimir Pejakovic wrote:
   On Thu, Oct 30, 2014 at 7:22 AM, Shahar Havivi shah...@redhat.com
  wrote:
  
On 29.10.14 17:35, Branimir Pejakovic wrote:
 Hi list,

 I was wondering is there a way to add multiple files to a vm via
cloud-init
 using python SDK. I was able to add /etc/resolv.conf and
  additionally I
 would like to add config files for NICs (ifcfg-ethX) with appropriate
 values (ip,gw,netmask). I used an example given here:
 http://www.ovirt.org/Features/Cloud-Init_Integration . But
unfortunately I
 cannot do the same thing If I want to write multiple files to a vm in
 params.Action class.

 Thank you in advance!
you can use the custom script text box in oVirts cloud-init section,
there you can add any cloud-init section - adding files examples can be
found
here:
   
   
  http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files
   
  Shahar Havivi.
   
   
   Hi Shahar,
  
   Thank you for the reply.
  
   To be honest I knew for those scripts but I want to do it in automate
   fashion just like in that example that I put in my original message. I
  have
   tried to specify in params.Files class multiple files:
  
   vm_file1 = params.Files(file=[params.File(name = 'file1', content =
   file1_content, type_= 'PLAINTEXT')])
   vm_file2 = params.Files(file=[params.File(name = 'file2', content =
   file2_content, type_= 'PLAINTEXT')])
  
   and then give them as arguments to params.CloudInit _init_ constructor
   (files=...)  just like in that example above but it seems that I am doing
   something wrong because it does not write multiple files - it writes only
   when you specify one file all right. The exception is Error: 'list'
  object
   has no attribute 'export' (I tried to specify those files as a list -
   files=[vm_file1,vm_file2]).
  
   Thanks for any help.
  The custom script is currently the only option to add files via Cloud-Init
 
  Thanks,
Shahar Havivi.
 
 
 Hi Shahar,
 
 Granted. But the example in python
 http://www.ovirt.org/Features/Cloud-Init_Integration uses custom script :)
 I just want to know how to do the same thing in case when I want to write
 more than one file to a VM - and yes  - all those multiple files that I
 want to write are specified via custom scripts.
 
 From the link - (The Python SDK paragraph: scontent object holds the
 custom script):
 
  scontent = write_files:\n-   content: |\nsearch
 example.com\nnameserver 10.10.10.1\nnameserver
 10.10.10.2\npath: /etc/resolv.conf
 
 For example (and just for example), I want to write to /etc/issue and
 /etc/hosts not only /etc/resolv.conf. In essence, when vm goes to run-once
 mode I want to write more than one file to a vm via Python (using
 CloudInit) in automated fashion (and not touching oVirt GUI at all).
You don't need to use the GUI,
the sdks initialization have custom_script as string which is equivalent to
the text box that you see in the GUI, and you can put the same content there
(ie multiple files).
Is that sufficient enough?

 
 Thanks in advance!
 
 Best regards,
 
 Branimir
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cloud-init install

2014-10-22 Thread Shahar Havivi
On 22.10.14 12:06, Phil Daws wrote:
 Hello:
 
 if one has already created a VM, with hostname, IP address etc, are you then 
 able to switch it to use cloud-init so that it reports back the IP address 
 and hostname to the engine manager ?
You need to use run-once and select the initialization section (cloud-init
under linux sysprep under Windows).
The IP and the host name report back is not depended on cloud-init but on the
ovirt-engine that is running in the guest os.
 
 Thanks, Phil
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt user portal to pass environment variable to vm

2014-10-05 Thread Shahar Havivi
On 03.10.14 09:55, Pat Pierson wrote:
 Is there a way to pass oVirt user login details(name) to the vm in the form
 of an environment variable to the vm?  Would that be something Cloud-init
 or Ovirt-guest-agent handles?
There is none that I know of... (Shellshock :)

Shahar.
 
 -- 
 Patrick Pierson

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM autoconfiguration

2014-09-28 Thread Shahar Havivi
On 24.09.14 12:37, J. Mikulec wrote:
 I spent a day with testing and went into two situations:
 - cloud-init set up everything except root password
 - cloud-init set up everything except network
 
 What does it mean? Let me explain:
 
 When I remove HWADDR from ifcfg-eth0 in template, everything works (network,
 ssh with key), but can't login through console or ssh with password. So I
 think it is not set.
I guess that if you cannot login via ssh/console cloud-init encounter some
problem and didn't set the password, this may be oVirts problem.
 
 When I forgot to remove HWADDR line, root password is set but network not
 work ofcourse. I added custom command with runcmd to remove this line and
 restart network - everything works. Stupid hack ...
 
 So root password cloud-init setting depends on network settings. Is this
 cloud-init bug?
I assume that we are talking about cloud-init 0.7.2,
What version of oVirt are you using?
I will try to reproduce it with rhel/fedora.

  Shahar.


 
 Jiri
 
 Dne 23.9.2014 v 8:30 Shahar Havivi napsal(a):
 On 22.09.14 19:37, J. Mikulec wrote:
 Hello again,
 
 Centos 7:
 
 Everything works except network needs manually restart to work (but config
 is done by cloud-init). Is workaround to send custom command through
 cloud-init to restart network service?
 I think there is an open bug in cloud-init package:
 https://bugzilla.redhat.com/1139556
 
 It also neither do not setup resolv.conf nor add DNS settings to ifcfg-eth0
 (workaround may be to let this settings in ifcfg-eth0 filled from template)
 
 Jiri
 
 Dne 22.9.2014 v 16:30 Shahar Havivi napsal(a):
 On 22.09.14 16:22, J. Mikulec wrote:
 Hello,
 
 I followed instructions at
 http://www.ovirt.org/Features/Cloud-Init_Integration
 It works fine for Fedora, but it not works properly for Centos 6.5 and 7
 (for example network settings changed, hostname only in one of them, 
 system
 start waiting for password in 6.5 etc.) - which are most common distros 
 for
 us.
 
 It seems to be problematically (by design ?) at future.
 
 So - is another alternative of cloud-init (maybe with more coding and
 configuring) for automatically assign IP settings, hostname and root
 password?
 Please post the version and log of cloud-init,
 If the version is more then 0.7.2 you can try to downgrade to this version.
 
Shahar.
 
 Thanks, Jiri
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM autoconfiguration

2014-09-23 Thread Shahar Havivi
On 22.09.14 19:37, J. Mikulec wrote:
 Hello again,
 
 Centos 7:
 
 Everything works except network needs manually restart to work (but config
 is done by cloud-init). Is workaround to send custom command through
 cloud-init to restart network service?
I think there is an open bug in cloud-init package:
https://bugzilla.redhat.com/1139556
 
 It also neither do not setup resolv.conf nor add DNS settings to ifcfg-eth0
 (workaround may be to let this settings in ifcfg-eth0 filled from template)
 
 Jiri
 
 Dne 22.9.2014 v 16:30 Shahar Havivi napsal(a):
 On 22.09.14 16:22, J. Mikulec wrote:
 Hello,
 
 I followed instructions at
 http://www.ovirt.org/Features/Cloud-Init_Integration
 It works fine for Fedora, but it not works properly for Centos 6.5 and 7
 (for example network settings changed, hostname only in one of them, system
 start waiting for password in 6.5 etc.) - which are most common distros for
 us.
 
 It seems to be problematically (by design ?) at future.
 
 So - is another alternative of cloud-init (maybe with more coding and
 configuring) for automatically assign IP settings, hostname and root
 password?
 Please post the version and log of cloud-init,
 If the version is more then 0.7.2 you can try to downgrade to this version.
 
Shahar.
 
 Thanks, Jiri
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM autoconfiguration

2014-09-23 Thread Shahar Havivi
On 22.09.14 18:25, J. Mikulec wrote:
 Hello,
 
 so, first for Centos 6.5.
 
 I made a template with steps from
 http://www.ovirt.org/Quick_Start_Guide:
 
 touch /.unconfigured
 rm -rf /etc/ssh/ssh_host_*
 
 After starting system created from my template it stops on set new root
 password, I must set something (may be empty) and then shows up
 authconfig-tui, must confirm.
This may be an instruction from cloud-init to root password that it must
change password, look at /etc/cloud-init/ for the config file - there is some
entry for must_change_password...

 
 After this cloud-init set everything ok - network, hostname,
 authorized_keys, root password. To have network working, must set network in
 Initial Run to eth1, not eth0. So it is good to remove ifcfg-eth0 from
 template. But works.
 
 Bad thing is that stop on root password and authconfig-tui. I think it is
 some issue with unconfigured state, not with cloud-init - but don't know.
 
 cloud-init-0.7.4-2.el6.noarch from epel, don't know simple way to downgrade.
 cloud-init logs:
 http://pastebin.com/v7FS8hpj
 http://pastebin.com/MnnTzKAq
 
 Thanks, Jiri
 
 Dne 22.9.2014 v 16:30 Shahar Havivi napsal(a):
 On 22.09.14 16:22, J. Mikulec wrote:
 Hello,
 
 I followed instructions at
 http://www.ovirt.org/Features/Cloud-Init_Integration
 It works fine for Fedora, but it not works properly for Centos 6.5 and 7
 (for example network settings changed, hostname only in one of them, system
 start waiting for password in 6.5 etc.) - which are most common distros for
 us.
 
 It seems to be problematically (by design ?) at future.
 
 So - is another alternative of cloud-init (maybe with more coding and
 configuring) for automatically assign IP settings, hostname and root
 password?
 Please post the version and log of cloud-init,
 If the version is more then 0.7.2 you can try to downgrade to this version.
 
Shahar.
 
 Thanks, Jiri
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM autoconfiguration

2014-09-22 Thread Shahar Havivi
On 22.09.14 16:22, J. Mikulec wrote:
 Hello,
 
 I followed instructions at
 http://www.ovirt.org/Features/Cloud-Init_Integration
 It works fine for Fedora, but it not works properly for Centos 6.5 and 7
 (for example network settings changed, hostname only in one of them, system
 start waiting for password in 6.5 etc.) - which are most common distros for
 us.
 
 It seems to be problematically (by design ?) at future.
 
 So - is another alternative of cloud-init (maybe with more coding and
 configuring) for automatically assign IP settings, hostname and root
 password?
Please post the version and log of cloud-init,
If the version is more then 0.7.2 you can try to downgrade to this version.

  Shahar.
 
 Thanks, Jiri
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Why cloud-init fail

2014-09-17 Thread Shahar Havivi
On 17.09.14 15:03, John Xue wrote:
 Hi, All
 
 I try to config cloud-init. according the guide:
 http://www.ovirt.org/Features/Cloud-Init_Integration
 install cloud-init in the guest vm, configure cloud-init option, but I
 can't save the configure in Edit Virtual Machine - Initial Run -
 any option. after click OK, and back to check my settings, all are
 lost. boot the guest vm, no settings are deployed.
 my version is: oVirt Engine Version: 3.4.3-1.el6
It's looks like a bug,
Can you please see if there are errors in the engine.log
suppose to be in /var/log/ovirt-engine/engine.log.

Thanks,
  Shahar Haivvi.
 
 Thank you!
 
 -- 
 Regards,
 John Xue
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Why cloud-init fail

2014-09-17 Thread Shahar Havivi
On 17.09.14 10:10, Shahar Havivi wrote:
 On 17.09.14 15:03, John Xue wrote:
  Hi, All
  
  I try to config cloud-init. according the guide:
  http://www.ovirt.org/Features/Cloud-Init_Integration
  install cloud-init in the guest vm, configure cloud-init option, but I
  can't save the configure in Edit Virtual Machine - Initial Run -
  any option. after click OK, and back to check my settings, all are
  lost. boot the guest vm, no settings are deployed.
  my version is: oVirt Engine Version: 3.4.3-1.el6
 It's looks like a bug,
 Can you please see if there are errors in the engine.log
 suppose to be in /var/log/ovirt-engine/engine.log.
 
 Thanks,
   Shahar Haivvi.
There is a fix for that in 3.5...
https://bugzilla.redhat.com/1126195

It should work for you if the VM has no template and the VM is Optimized for
Server. (its in new/edit VM Dialog).

  Shahar Havivi.
  
  Thank you!
  
  -- 
  Regards,
  John Xue
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cloud-init issues on fedora ovirt

2014-09-16 Thread Shahar Havivi
On 16.09.14 08:37, Pat Pierson wrote:
 Shahar,
 Thank you for your response.  Version is cloud-init-0.7.4-2.el6.noarch
 
 On Sun, Sep 14, 2014 at 3:12 AM, Shahar Havivi shah...@redhat.com wrote:
 
  On 11.09.14 14:06, Pat Pierson wrote:
   I am running ovirt 3.4.3 on a Fedora 19 manager and have 1 node running
   Fedora 19 as well.  I am attempting to get cloud-init to work on a CentOS
   VM but I am running into issues.  I can see where in the log it mounts
   /dev/sr1 to /tmp/tmp_random_location and where it reads the
  meta-data.json
   and user_data from that location but after it unmounts it moves on to
   /var/lib/cloud/data/instance-id and returns No instance datasource
  found!
   Likely bad things to come!
  What version is the cloud-init are you running in CentOS?
The version number looks good,
Did you try that on Fedora/Rhel guest as well (just want to know if the issue
is CenOS related...)
Thanks,
  Shahar Havivi.
 
  
   Has anyone seen this before?  Am I missing something?
  
   --
   Patrick Pierson
 
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
 
 
 
 
 -- 
 Patrick Pierson
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cloud-init issues on fedora ovirt

2014-09-16 Thread Shahar Havivi
On 16.09.14 10:41, Pat Pierson wrote:
 I had a feeling you were going to ask that, just finished installing fedora
 19 from an iso image and tested.  fedora vm's cloud-init is 0.7.2 and it
 worked first time with no issues.  This looks to be isolated to CentOS and
 cloud-init 0.7.4
:) nice,
Maybe you can find the package maintainer and ask him...,
It looks like its related with Rhel - Cloud-Init more then oVirt problem...

 Shahar Havivi.
 
 On Tue, Sep 16, 2014 at 10:10 AM, Shahar Havivi shah...@redhat.com wrote:
 
  On 16.09.14 08:37, Pat Pierson wrote:
   Shahar,
   Thank you for your response.  Version is
  cloud-init-0.7.4-2.el6.noarch
  
   On Sun, Sep 14, 2014 at 3:12 AM, Shahar Havivi shah...@redhat.com
  wrote:
  
On 11.09.14 14:06, Pat Pierson wrote:
 I am running ovirt 3.4.3 on a Fedora 19 manager and have 1 node
  running
 Fedora 19 as well.  I am attempting to get cloud-init to work on a
  CentOS
 VM but I am running into issues.  I can see where in the log it
  mounts
 /dev/sr1 to /tmp/tmp_random_location and where it reads the
meta-data.json
 and user_data from that location but after it unmounts it moves on to
 /var/lib/cloud/data/instance-id and returns No instance datasource
found!
 Likely bad things to come!
What version is the cloud-init are you running in CentOS?
  The version number looks good,
  Did you try that on Fedora/Rhel guest as well (just want to know if the
  issue
  is CenOS related...)
  Thanks,
Shahar Havivi.
   

 Has anyone seen this before?  Am I missing something?

 --
 Patrick Pierson
   
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
   
   
  
  
   --
   Patrick Pierson
 
 
 
 
 -- 
 Patrick Pierson
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cloud-init issues on fedora ovirt

2014-09-14 Thread Shahar Havivi
On 11.09.14 14:06, Pat Pierson wrote:
 I am running ovirt 3.4.3 on a Fedora 19 manager and have 1 node running
 Fedora 19 as well.  I am attempting to get cloud-init to work on a CentOS
 VM but I am running into issues.  I can see where in the log it mounts
 /dev/sr1 to /tmp/tmp_random_location and where it reads the meta-data.json
 and user_data from that location but after it unmounts it moves on to
 /var/lib/cloud/data/instance-id and returns No instance datasource found!
 Likely bad things to come!
What version is the cloud-init are you running in CentOS?

 
 Has anyone seen this before?  Am I missing something?
 
 -- 
 Patrick Pierson

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] VM Deployment By Template

2014-08-28 Thread Shahar Havivi
On 28.08.14 11:05, Punit Dambiwal wrote:
 Hi All,
 
 Please help me to solve this problem...or suggest me any workaround ??
 
 Thanks,
 Punit
 
 
 On Wed, Aug 27, 2014 at 8:01 PM, Karli Sjöberg karli.sjob...@slu.se wrote:
 
  On Wed, 2014-08-27 at 19:52 +0800, Punit Dambiwal wrote:
   Hi Itamar,
  
  
   It's the same as i used and discussed in last reply...create the VM
   with 1GB virtual template and expand the disk size after
   deployment...but the problem here is disk will expand or resize...but
   it will not make any changes in the existing partition table..that
   means after expand disk all the existing partition will remain
   samethen you need to manual login in to server and make the
   changes with the help of fdisk and lvm commands..
  
  
   I am looking for the way we can resize the disk...and at the same time
   when the disk will expand...it should be resize the partition table...
 
  I think this is what you were after:
  QEMU-GA
 
  support for notifying the guest and updating the size of the visible
  disk: To be integrated 
 
  So maybe you could post an RFE on that for qemu-ga? Help testing?
 
  /K
 
  
  
   Is the cloud-init...custom script can do this or not ??
You may be able to do that with cloud-init custom-script section,
The following link will show you how to add a file to the client, you may write 
a code
that change the partition table, you need to make the file executable and put
it in a init section (such as /etc/init.d sections), the only problem is that
it may be too late since cloud-init may be loaded after that phase... (so
maybe other place...)
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#writing-out-arbitrary-files

Another option is to set a command under this section:
http://cloudinit.readthedocs.org/en/latest/topics/examples.html#run-commands-on-first-boot

  Shahar.

  
  
   Thanks,
   Punit
  
  
   On Wed, Aug 27, 2014 at 6:11 PM, Itamar Heim ih...@redhat.com wrote:
   On 08/27/2014 12:47 PM, Punit Dambiwal wrote:
  
   Hi Itamar,
  
   To edit the disk size are you referring this Another
   way i got is
   create the VM with 1GB virtual template and expand the
   disk size after
   deployment...but the problem here is disk will
   expand...but it will not
   done any changes in the existing partition table..that
   means after
   expand disk you need to manual login in to server and
   make the changes
   with the help of fdisk and lvm commands...
  
   Or it's different then the upper one...please let me
   know how to perform
   this...if any screen shot you can provide for better
   understanding..
  
  
   http://www.ovirt.org/Features/Online_Virtual_Drive_Resize
   adding derez for follow up questions
  
  
   Thanks,
   Punit
  
  
   On Wed, Aug 27, 2014 at 5:15 PM, Itamar Heim
   ih...@redhat.com
  
   mailto:ih...@redhat.com wrote:
  
   On 08/27/2014 12:08 PM, Punit Dambiwal wrote:
  
   Hi Itamar,
  
   Thanks for the updateYes.. i want to
   create different size
   VM with
   the same OS template...
  
   
   3. we support disk resize since 3.4 (iirc),
   which you can do
   post VM
   provisioning.
  
   considering #3, then #1 should be easy to
   support as well these
   days.
   please open an RFE.
   
  
   Could you please more elaborate point number
   3...how to use
   it..i will
   go with this one ...
  
  
   iirc, you just need to edit the disk size when vm
   is down or up (for
   up, only for specific disk interfaces, virtio-blk,
   not ide, iirc)
  
   Thanks,
   Punit
  
  
   On Wed, Aug 27, 2014 at 4:37 PM, Itamar Heim
   ih...@redhat.com
   mailto:ih...@redhat.com
  
   mailto:ih...@redhat.com
   mailto:ih...@redhat.com wrote:
  
On 08/27/2014 04:18 AM, Punit Dambiwal
   wrote:
  
Hi Michal,
  
I want to deploy the VM with the
  

Re: [ovirt-users] assign hostname to vm using REST API

2014-08-10 Thread Shahar Havivi
On 06.08.14 12:36, naaz wrote:
 I am using REST API to integrate rhev with java(not SDK)
 I am trying to assign hostname to vm but showing some bad request error.
if its a bad request it may be you are not using the PUT http method?
(PUT if you are updating POST if you are creating new VM)
 
 I have created template from vm which have cloud init package in it also m 
 using rhev 3.4.
 Do i need to use payload method if so please provide me the proper code for 
 both -for passing payload through code in url and the payload file sample
 
 can anyone plz tell me how to do it?
Take a look here:
http://www.ovirt.org/Features/Cloud-Init_Integration

Make sure that you are adding to the http header Content-Type=Application/xml

vm
 ...
 initialization
  cloud_init
  host
 addresscloudInitInstanceName/address
  /host
 ...
 
 
 
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] [QE][ACTION NEEDED] oVirt 3.4.3 RC status

2014-07-09 Thread Shahar Havivi
On 09.07.14 15:39, Michal Skrivanek wrote:
 
 On Jul 9, 2014, at 15:08 , Sven Kieske s.kie...@mittwald.de wrote:
 
  Am 09.07.2014 14:59, schrieb Michal Skrivanek:
  it has a (formal) dependency on the guest agent in 3.5 as well. So to
  declare it properly we'd need more work than just few lines to osinfo
 
 it is there in that bug:)
 
  
  Well,
  
  the guest-agent has no dependency on 3.5
  as I'm actually running it on production debian vms :)
  it's an entire different repository, so I don't see the link
  between guest-agent and engine release.
 
 one thing i that you're using it another thing to sort of officially declare 
 it as supported. 
 In this particular case - do you need the icon in user portal? If not you can 
 just go ahead and drop in your own property file into 
 /etc/ovirt-engine/osinfo.conf/ (I think) with those few lines for Debian (or 
 anything else) and you're all set. Just remove it on upgrade to 3.5
 Would it work for you?
 
  
  I'll surely help testing these things as much as I can :)
 
 Shahar, would you please post the backport for 
 http://gerrit.ovirt.org/#/c/25245/ ?
 
 Thanks,
 michal
Sure
 
  
  Thanks for the reply.
  
  
  -- 
  Mit freundlichen Grüßen / Regards
  
  Sven Kieske
  
  Systemadministrator
  Mittwald CM Service GmbH  Co. KG
  Königsberger Straße 6
  32339 Espelkamp
  T: +49-5772-293-100
  F: +49-5772-293-333
  https://www.mittwald.de
  Geschäftsführer: Robert Meyer
  St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
  Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Python sample sdk

2014-07-03 Thread Shahar Havivi
On 03.07.14 12:53, Shanil S wrote:
 Hi Shahar,
 
 I have downloaded the sample python library from this
 http://www.ovirt.org/Sample_user_portals, how can i execute this script in
 the browser and get the Vm name Start Stop and Console  and how can i
 make the script working ?
If you don't see any VMs it mean that the user that you logged in with don't
have permissions on this VM, got to a VM that you want to see and set UserRole
in the Permission sub tab.
 
 -- 
 Regards
 Shanil
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Python sample sdk

2014-07-03 Thread Shahar Havivi
On 03.07.14 13:58, Shanil S wrote:
 Hi Shahar,
 
 Thanks for your reply.
 
 Actually my doubt is that how can i run this on the browser and get the
 attached image like interface and do the console option
The README file under the folder /python project should help,
you need to set the right values in ovirt.conf, run the server ./Broker.py
(which is a local web-server) open the browser and type http://localhost:8000/
 
 
 
 -- 
 Regards
 Shanil
 
 
 On Thu, Jul 3, 2014 at 1:45 PM, Shahar Havivi shah...@redhat.com wrote:
 
  On 03.07.14 12:53, Shanil S wrote:
   Hi Shahar,
  
   I have downloaded the sample python library from this
   http://www.ovirt.org/Sample_user_portals, how can i execute this script
  in
   the browser and get the Vm name Start Stop and Console  and how can i
   make the script working ?
  If you don't see any VMs it mean that the user that you logged in with
  don't
  have permissions on this VM, got to a VM that you want to see and set
  UserRole
  in the Permission sub tab.
  
   --
   Regards
   Shanil
 


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues in IP Assigning using API

2014-07-02 Thread Shahar Havivi
On 02.07.14 13:06, Shanil S wrote:
 Hi Seven,
 
 
 I checked that ovirt can mount the iso to the VM...that means ovirt can
 push the cloud-init data. I have attached the screenshots, please check it.
Yes, 
Please send the content of the file  that is under the content/
directory.
I think I found a bug in the REST API to configure network address - I just
want to confirm.
This is not effect the UI and I will post a patch shortly...
Shahar.
 
 -- 
 Regards
 Shanil
 
 
 On Wed, Jul 2, 2014 at 12:45 PM, Sven Kieske s.kie...@mittwald.de wrote:
 
  No, this is no option to activate.
 
  The data you submit to cloud-init, gets merged into an iso file
  by ovirt, which is than attached as an cd-rom into the vm.
 
  usually this is /dev/sr1
 
  try to mount it this way in your vm:
 
  mount -t iso9660 /dev/sr1 /mnt/
  then you should be able to see the folder:
  /mnt/openstack/
 
  inside this folder all cloud-init data should
  be available in human readable form (most of it is json)
 
  if you do not got this cd-rom inside your vm, this means
  ovirt was not able to push the cloud-init data inside
  the vm.
 
  in this case, there should be some errors in vdsm.log and engine.log
  as well.
 
  HTH
 
  Am 02.07.2014 06:04, schrieb Shanil S:
   We are using the cloud-init 0.7.2.2, in this version there is no option
  to
   set the cd rom. I am attaching the screenshot of the cloud init page,
   please have a look at this.
 
  --
  Mit freundlichen Grüßen / Regards
 
  Sven Kieske
 
  Systemadministrator
  Mittwald CM Service GmbH  Co. KG
  Königsberger Straße 6
  32339 Espelkamp
  T: +49-5772-293-100
  F: +49-5772-293-333
  https://www.mittwald.de
  Geschäftsführer: Robert Meyer
  St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
  Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
 


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Ovirt Python library is getting error

2014-07-02 Thread Shahar Havivi
On 02.07.14 10:18, Shanil S wrote:
 Hi Shahar,
Hi,
I just tested your code and it works fine for me.
You can try first to put the url in a web browser and you will be prompt for
username and password.
Try that first and see if all the parameters are set correctly.

Also adding Juan maybe he have other idea.

Shahar.
 
 I have downloaded the ovirt Python library from
 http://www.ovirt.org/Python-sdk and trying to list out the vms but i am
 getting the following error
 
 ---
  File build/bdist.linux-x86_64/egg/ovirtsdk/api.py, line 145, in __init__
   File build/bdist.linux-x86_64/egg/ovirtsdk/infrastructure/proxy.py,
 line 118, in request
   File build/bdist.linux-x86_64/egg/ovirtsdk/infrastructure/proxy.py,
 line 144, in __doRequest
   File build/bdist.linux-x86_64/egg/ovirtsdk/infrastructure/proxy.py,
 line 157, in __xml2py
 ovirtsdk.infrastructure.errors.FormatError: [ERROR]::Server reply is in
 inappropriate format.
 --
 
 The following code is used for displaying the vms
 
 api = API('http://ip:443/api', 'usernamel','password')
 
 vms1 = api.vms.list()
 print vms1
 
 Could you please check it if any issues with it ? Also is it necessary to
 give secure connection ?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues in IP Assigning using API

2014-07-02 Thread Shahar Havivi
Hi Shanil,
There is a bug for this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1115389
The patch is already merged upstream.

Shahar.

On 02.07.14 14:47, Shanil S wrote:
 Hi Shahar,
 
 Okay..
 
 Thanks..
 
 -- 
 Regards
 Shanil
 
 
 On Wed, Jul 2, 2014 at 2:42 PM, Shanil S xielessha...@gmail.com wrote:
 
  Hi Sven,
 
  I used the xml like this to assign IP,
  http://www.ovirt.org/Features/Cloud-Init_Integration. Also, could you
  please give me the json data which you given for assigning the IP ?
 
 
 
  --
  Regards
  Shanil
 
 
  On Wed, Jul 2, 2014 at 2:36 PM, Sven Kieske s.kie...@mittwald.de wrote:
 
  Well that would be of interest to me too, as
  I'm currently successfully assigning IPs via
  rest, but through json instead of xml.
 
  what would be that error?
 
  Please share the BZ URL.
 
  Am 02.07.2014 09:54, schrieb Shahar Havivi:
   Yes,
   Please send the content of the file  that is under the content/
   directory.
   I think I found a bug in the REST API to configure network address - I
  just
   want to confirm.
   This is not effect the UI and I will post a patch shortly...
   Shahar.
 
  --
  Mit freundlichen Grüßen / Regards
 
  Sven Kieske
 
  Systemadministrator
  Mittwald CM Service GmbH  Co. KG
  Königsberger Straße 6
  32339 Espelkamp
  T: +49-5772-293-100
  F: +49-5772-293-333
  https://www.mittwald.de
  Geschäftsführer: Robert Meyer
  St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
  Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad
  Oeynhausen
 
 
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues in IP Assigning using API

2014-07-01 Thread Shahar Havivi
When you run the VM with cloud-init you get a cdrom with the cloud-init
content.
Try to mount the cdrom something like:
$ mount /dev/sr1 mydir
and look at the content of the network file at:
$ cat mydir/openstack/content/


On 01.07.14 17:10, Shanil S wrote:
 Hi Seven,
 
 okay.. Thanks..
 
 
 On Tue, Jul 1, 2014 at 4:31 PM, Sven Kieske s.kie...@mittwald.de wrote:
 
  CC'ed michal, maybe he finds an error in your xml.
 
  Am 30.06.2014 12:31, schrieb Shanil S:
   Hi,
  
   I am assigning IP using the REST API as like
   http://www.ovirt.org/Features/Cloud-Init_Integration but it seems the
  IP is
   not assigning to the vm. But the other details like host address etc are
   correctly saving. I am using cloud init to assign IP address
  
   The following is the xml which i used for assigning IP
  
  
   $xml_data = 
   action
   vm
   os
   boot dev='cdrom'/
   /os
   initialization
cloud_init
host
addressTestMachine/address
  /host
  
 users
user
  user_nameusername/user_name
  passwordadminpassw/password
/user
  /users
 network_configuration
 nics
  nic
nameeth0/name
boot_protocolnone/boot_protocol
network
  ip address='x.x.x.x' netmask='255.255.0.0'
   gateway='x.x.x.x'/
/network
on_boottrue/on_boot
  /nic
/nics
dns
  servers
host
  address8.8.8.8/address
/host
  /servers
/dns
  /network_configuration
/cloud_init
  /initialization
   /vm
   /action;
  
  
   The above xml is called with the start function of API. IP is assigned
  from
   the ovirt portal and the issue is only when assigning it from the REST
  API.
   If anyone knows could you please check if any issues with the it ?
  
  
  
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
  
 
  --
  Mit freundlichen Grüßen / Regards
 
  Sven Kieske
 
  Systemadministrator
  Mittwald CM Service GmbH  Co. KG
  Königsberger Straße 6
  32339 Espelkamp
  T: +49-5772-293-100
  F: +49-5772-293-333
  https://www.mittwald.de
  Geschäftsführer: Robert Meyer
  St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
  Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues in IP Assigning using API

2014-06-30 Thread Shahar Havivi
On 30.06.14 16:01, Shanil S wrote:
 Hi,
 
 I am assigning IP using the REST API as like
 http://www.ovirt.org/Features/Cloud-Init_Integration but it seems the IP is
 not assigning to the vm. But the other details like host address etc are
 correctly saving. I am using cloud init to assign IP address
What is the guest os that you are using?
 
 The following is the xml which i used for assigning IP
 
 
 $xml_data = 
 action
 vm
 os
 boot dev='cdrom'/
 /os
 initialization
  cloud_init
  host
  addressTestMachine/address
/host
 
   users
  user
user_nameusername/user_name
passwordadminpassw/password
  /user
/users
   network_configuration
   nics
nic
  nameeth0/name
  boot_protocolnone/boot_protocol
  network
ip address='x.x.x.x' netmask='255.255.0.0'
 gateway='x.x.x.x'/
  /network
  on_boottrue/on_boot
/nic
  /nics
  dns
servers
  host
address8.8.8.8/address
  /host
/servers
  /dns
/network_configuration
  /cloud_init
/initialization
 /vm
 /action;
 
 
 The above xml is called with the start function of API. IP is assigned from
 the ovirt portal and the issue is only when assigning it from the REST API.
 If anyone knows could you please check if any issues with the it ?

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues in IP Assigning using API

2014-06-30 Thread Shahar Havivi
On 30.06.14 16:32, Shanil S wrote:
 Hi Shahar,
 
 I am using cent os for creating vm
Ok which version and do you know the version of cloud-init rpm that the
cent-os is using?
 
 
 On Mon, Jun 30, 2014 at 4:18 PM, Shahar Havivi shah...@redhat.com wrote:
 
  On 30.06.14 16:01, Shanil S wrote:
   Hi,
  
   I am assigning IP using the REST API as like
   http://www.ovirt.org/Features/Cloud-Init_Integration but it seems the
  IP is
   not assigning to the vm. But the other details like host address etc are
   correctly saving. I am using cloud init to assign IP address
  What is the guest os that you are using?
  
   The following is the xml which i used for assigning IP
  
  
   $xml_data = 
   action
   vm
   os
   boot dev='cdrom'/
   /os
   initialization
cloud_init
host
addressTestMachine/address
  /host
  
 users
user
  user_nameusername/user_name
  passwordadminpassw/password
/user
  /users
 network_configuration
 nics
  nic
nameeth0/name
boot_protocolnone/boot_protocol
network
  ip address='x.x.x.x' netmask='255.255.0.0'
   gateway='x.x.x.x'/
/network
on_boottrue/on_boot
  /nic
/nics
dns
  servers
host
  address8.8.8.8/address
/host
  /servers
/dns
  /network_configuration
/cloud_init
  /initialization
   /vm
   /action;
  
  
   The above xml is called with the start function of API. IP is assigned
  from
   the ovirt portal and the issue is only when assigning it from the REST
  API.
   If anyone knows could you please check if any issues with the it ?
 
   ___
   Users mailing list
   Users@ovirt.org
   http://lists.ovirt.org/mailman/listinfo/users
 
 

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Issues in IP Assigning using API

2014-06-30 Thread Shahar Havivi
On 30.06.14 17:30, Shanil S wrote:
 Hi Sven,
 
 Thanks for your reply.
 
 The IP assigning from the ovirt panel using cloud init is working fine, so
 i think there may not be any issues with the cloud init version and cent
 os. The issue is only with the REST API function using cloud init. Is there
 any other settings need to do to work it with the REST Api calls ?
What do you mean only from REST API, does it work fine from the UI?
 
 
 
 
 On Mon, Jun 30, 2014 at 5:00 PM, Sven Kieske s.kie...@mittwald.de wrote:
 
  Hi,
 
  if you got any CentOS version  6.5
  it will not work as you need at least
  cloud-init version 0.7.2 as this version
  supports the used way of submitting the
  meta-data and user data files to the vm
  (via cd rom payload).
 
  so in short: you need at least centos 6.5
  and cloud-init 0.7.2. inside the vm
 
  if you can't install this versions for
  some reason you can still write your
  own custom script to parse the data.
 
  HTH
 
  PS: cloud-init can't handle ipv6
 
  Am 30.06.2014 13:25, schrieb Shahar Havivi:
   Ok which version and do you know the version of cloud-init rpm that the
   cent-os is using?
 
  --
  Mit freundlichen Grüßen / Regards
 
  Sven Kieske
 
  Systemadministrator
  Mittwald CM Service GmbH  Co. KG
  Königsberger Straße 6
  32339 Espelkamp
  T: +49-5772-293-100
  F: +49-5772-293-333
  https://www.mittwald.de
  Geschäftsführer: Robert Meyer
  St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
  Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
  ___
  Users mailing list
  Users@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/users
 

 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


  1   2   >