Re: [ovirt-users] How to use virt-sysprep

2017-05-19 Thread Joel Diaz
Arik,

Very cool. It's exactly what I was looking for.

However, I don't see that checkbox. I've attached an image of what the
template window looks like on my end. Maybe I'm looking in the wrong place?

Thanks for the response,

On May 18, 2017 12:29 PM, "Arik Hadas"  wrote:

>
>
> On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto <
> lorenzetto.l...@gmail.com> wrote:
>
>> Hello Joel,
>>
>> as far as i know, virt-sysprep has to be executed inside the VM before
>> cloning it to template. This removes some infos from the VM like udev
>> rules & ssh keys.
>>
>>
> So this has changed in 4.1. You can now choose to seal a template during
> its creation. This will take a VM, that may have not been sealed, create a
> template out of it and then invoke virt-sysprep on the template's disks.
>
> Joel, in the 'make template' dialog you'll see a checkbox (at the bottom)
> for 'Seal Template' that will do the trick. There is also a 'seal'
> parameter in the REST-API, of course [1].
>
> [1] https://github.com/oVirt/ovirt-engine-api-model/blob/
> master/src/main/java/services/TemplatesService.java#L168
>
>
>>
>> Luca
>>
>> On Wed, May 17, 2017 at 8:53 PM, Joel Diaz  wrote:
>> > Good afternoon ovirt users,
>> >
>> > I'm new to ovirt. I've created templates in the past using this guide,
>> > https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Mi
>> nimal-oVirt-Template
>> > .
>> >
>> > I was going over the list of features and stumbled on to virt-sysprep.
>> >
>> > http://www.ovirt.org/develop/release-management/features/virt-sysprep/
>> >
>> >  http://libguestfs.org/virt-sysprep.1.html
>> >
>> > How can I use virt-sysprep from within ovirt to create templates?
>> >
>> > Thank you for your help,
>> >
>> > Joel
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > Joel
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/users
>> >
>>
>>
>>
>> --
>> "E' assurdo impiegare gli uomini di intelligenza eccellente per fare
>> calcoli che potrebbero essere affidati a chiunque se si usassero delle
>> macchine"
>> Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
>>
>> "Internet è la più grande biblioteca del mondo.
>> Ma il problema è che i libri sono tutti sparsi sul pavimento"
>> John Allen Paulos, Matematico (1945-vivente)
>>
>> Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <
>> lorenzetto.l...@gmail.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] How to use virt-sysprep

2017-05-19 Thread Joel Diaz
I ran yum update on my three host and the engine VM so I believe an up to
date on all the packages. How can I check if I am on version 4.1.2?

I restarted the httpd and ovirt-engine service after the updates, but still
don't the seal option.

Thanks,

On May 19, 2017 11:49 AM, "Arik Hadas"  wrote:



On Fri, May 19, 2017 at 4:10 PM, Joel Diaz  wrote:

> Arik,
>
> Very cool. It's exactly what I was looking for.
>
> However, I don't see that checkbox. I've attached an image of what the
> template window looks like on my end. Maybe I'm looking in the wrong place?
>

No , you're looking at the right place. This feature got in pretty late in
the release cycle of 4.1, so it is available from 4.1.2. Maybe the version
you are using is lower than that?


>
> Thanks for the response,
>
> On May 18, 2017 12:29 PM, "Arik Hadas"  wrote:
>
>>
>>
>> On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto <
>> lorenzetto.l...@gmail.com> wrote:
>>
>>> Hello Joel,
>>>
>>> as far as i know, virt-sysprep has to be executed inside the VM before
>>> cloning it to template. This removes some infos from the VM like udev
>>> rules & ssh keys.
>>>
>>>
>> So this has changed in 4.1. You can now choose to seal a template during
>> its creation. This will take a VM, that may have not been sealed, create a
>> template out of it and then invoke virt-sysprep on the template's disks.
>>
>> Joel, in the 'make template' dialog you'll see a checkbox (at the bottom)
>> for 'Seal Template' that will do the trick. There is also a 'seal'
>> parameter in the REST-API, of course [1].
>>
>> [1] https://github.com/oVirt/ovirt-engine-api-model/blob/mas
>> ter/src/main/java/services/TemplatesService.java#L168
>>
>>
>>>
>>> Luca
>>>
>>> On Wed, May 17, 2017 at 8:53 PM, Joel Diaz  wrote:
>>> > Good afternoon ovirt users,
>>> >
>>> > I'm new to ovirt. I've created templates in the past using this guide,
>>> > https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Mi
>>> nimal-oVirt-Template
>>> > .
>>> >
>>> > I was going over the list of features and stumbled on to virt-sysprep.
>>> >
>>> > http://www.ovirt.org/develop/release-management/features/virt-sysprep/
>>> >
>>> >  http://libguestfs.org/virt-sysprep.1.html
>>> >
>>> > How can I use virt-sysprep from within ovirt to create templates?
>>> >
>>> > Thank you for your help,
>>> >
>>> > Joel
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > Joel
>>> >
>>> >
>>> > ___
>>> > Users mailing list
>>> > Users@ovirt.org
>>> > http://lists.ovirt.org/mailman/listinfo/users
>>> >
>>>
>>>
>>>
>>> --
>>> "E' assurdo impiegare gli uomini di intelligenza eccellente per fare
>>> calcoli che potrebbero essere affidati a chiunque se si usassero delle
>>> macchine"
>>> Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
>>>
>>> "Internet è la più grande biblioteca del mondo.
>>> Ma il problema è che i libri sono tutti sparsi sul pavimento"
>>> John Allen Paulos, Matematico (1945-vivente)
>>>
>>> Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <
>>> lorenzetto.l...@gmail.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] How to use virt-sysprep

2017-05-19 Thread Arik Hadas
On Fri, May 19, 2017 at 7:22 PM, Joel Diaz  wrote:

> I ran yum update on my three host and the engine VM so I believe an up to
> date on all the packages. How can I check if I am on version 4.1.2?
>

You can find the engine's version in the 'About' dialog (at the top-right
corner of the screen of the webadmin). If you don't use the
'ovirt-4.1-snapshot' repository then it makes sense that you didn't get
this update yet.


> I restarted the httpd and ovirt-engine service after the updates, but
> still don't the seal option.
>
> Thanks,
>
> On May 19, 2017 11:49 AM, "Arik Hadas"  wrote:
>
>
>
> On Fri, May 19, 2017 at 4:10 PM, Joel Diaz  wrote:
>
>> Arik,
>>
>> Very cool. It's exactly what I was looking for.
>>
>> However, I don't see that checkbox. I've attached an image of what the
>> template window looks like on my end. Maybe I'm looking in the wrong place?
>>
>
> No , you're looking at the right place. This feature got in pretty late in
> the release cycle of 4.1, so it is available from 4.1.2. Maybe the version
> you are using is lower than that?
>
>
>>
>> Thanks for the response,
>>
>> On May 18, 2017 12:29 PM, "Arik Hadas"  wrote:
>>
>>>
>>>
>>> On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto <
>>> lorenzetto.l...@gmail.com> wrote:
>>>
 Hello Joel,

 as far as i know, virt-sysprep has to be executed inside the VM before
 cloning it to template. This removes some infos from the VM like udev
 rules & ssh keys.


>>> So this has changed in 4.1. You can now choose to seal a template during
>>> its creation. This will take a VM, that may have not been sealed, create a
>>> template out of it and then invoke virt-sysprep on the template's disks.
>>>
>>> Joel, in the 'make template' dialog you'll see a checkbox (at the
>>> bottom) for 'Seal Template' that will do the trick. There is also a 'seal'
>>> parameter in the REST-API, of course [1].
>>>
>>> [1] https://github.com/oVirt/ovirt-engine-api-model/blob/mas
>>> ter/src/main/java/services/TemplatesService.java#L168
>>>
>>>

 Luca

 On Wed, May 17, 2017 at 8:53 PM, Joel Diaz 
 wrote:
 > Good afternoon ovirt users,
 >
 > I'm new to ovirt. I've created templates in the past using this guide,
 > https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Mi
 nimal-oVirt-Template
 > .
 >
 > I was going over the list of features and stumbled on to virt-sysprep.
 >
 > http://www.ovirt.org/develop/release-management/features/vir
 t-sysprep/
 >
 >  http://libguestfs.org/virt-sysprep.1.html
 >
 > How can I use virt-sysprep from within ovirt to create templates?
 >
 > Thank you for your help,
 >
 > Joel
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 > Joel
 >
 >
 > ___
 > Users mailing list
 > Users@ovirt.org
 > http://lists.ovirt.org/mailman/listinfo/users
 >



 --
 "E' assurdo impiegare gli uomini di intelligenza eccellente per fare
 calcoli che potrebbero essere affidati a chiunque se si usassero delle
 macchine"
 Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

 "Internet è la più grande biblioteca del mondo.
 Ma il problema è che i libri sono tutti sparsi sul pavimento"
 John Allen Paulos, Matematico (1945-vivente)

 Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <
 lorenzetto.l...@gmail.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] How to use virt-sysprep

2017-05-19 Thread Arik Hadas
On Fri, May 19, 2017 at 4:10 PM, Joel Diaz  wrote:

> Arik,
>
> Very cool. It's exactly what I was looking for.
>
> However, I don't see that checkbox. I've attached an image of what the
> template window looks like on my end. Maybe I'm looking in the wrong place?
>

No , you're looking at the right place. This feature got in pretty late in
the release cycle of 4.1, so it is available from 4.1.2. Maybe the version
you are using is lower than that?


>
> Thanks for the response,
>
> On May 18, 2017 12:29 PM, "Arik Hadas"  wrote:
>
>>
>>
>> On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto <
>> lorenzetto.l...@gmail.com> wrote:
>>
>>> Hello Joel,
>>>
>>> as far as i know, virt-sysprep has to be executed inside the VM before
>>> cloning it to template. This removes some infos from the VM like udev
>>> rules & ssh keys.
>>>
>>>
>> So this has changed in 4.1. You can now choose to seal a template during
>> its creation. This will take a VM, that may have not been sealed, create a
>> template out of it and then invoke virt-sysprep on the template's disks.
>>
>> Joel, in the 'make template' dialog you'll see a checkbox (at the bottom)
>> for 'Seal Template' that will do the trick. There is also a 'seal'
>> parameter in the REST-API, of course [1].
>>
>> [1] https://github.com/oVirt/ovirt-engine-api-model/blob/mas
>> ter/src/main/java/services/TemplatesService.java#L168
>>
>>
>>>
>>> Luca
>>>
>>> On Wed, May 17, 2017 at 8:53 PM, Joel Diaz  wrote:
>>> > Good afternoon ovirt users,
>>> >
>>> > I'm new to ovirt. I've created templates in the past using this guide,
>>> > https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Mi
>>> nimal-oVirt-Template
>>> > .
>>> >
>>> > I was going over the list of features and stumbled on to virt-sysprep.
>>> >
>>> > http://www.ovirt.org/develop/release-management/features/virt-sysprep/
>>> >
>>> >  http://libguestfs.org/virt-sysprep.1.html
>>> >
>>> > How can I use virt-sysprep from within ovirt to create templates?
>>> >
>>> > Thank you for your help,
>>> >
>>> > Joel
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > Joel
>>> >
>>> >
>>> > ___
>>> > Users mailing list
>>> > Users@ovirt.org
>>> > http://lists.ovirt.org/mailman/listinfo/users
>>> >
>>>
>>>
>>>
>>> --
>>> "E' assurdo impiegare gli uomini di intelligenza eccellente per fare
>>> calcoli che potrebbero essere affidati a chiunque se si usassero delle
>>> macchine"
>>> Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
>>>
>>> "Internet è la più grande biblioteca del mondo.
>>> Ma il problema è che i libri sono tutti sparsi sul pavimento"
>>> John Allen Paulos, Matematico (1945-vivente)
>>>
>>> Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <
>>> lorenzetto.l...@gmail.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] How to use virt-sysprep

2017-05-19 Thread Joel Diaz
Arik,

After adding the snapshot repo, and updating the engine, I now see the seal
option.

Thanks again,

Joel



On May 19, 2017 1:07 PM, "Arik Hadas"  wrote:

>
>
> On Fri, May 19, 2017 at 7:22 PM, Joel Diaz  wrote:
>
>> I ran yum update on my three host and the engine VM so I believe an up to
>> date on all the packages. How can I check if I am on version 4.1.2?
>>
>
> You can find the engine's version in the 'About' dialog (at the top-right
> corner of the screen of the webadmin). If you don't use the
> 'ovirt-4.1-snapshot' repository then it makes sense that you didn't get
> this update yet.
>
>
>> I restarted the httpd and ovirt-engine service after the updates, but
>> still don't the seal option.
>>
>> Thanks,
>>
>> On May 19, 2017 11:49 AM, "Arik Hadas"  wrote:
>>
>>
>>
>> On Fri, May 19, 2017 at 4:10 PM, Joel Diaz  wrote:
>>
>>> Arik,
>>>
>>> Very cool. It's exactly what I was looking for.
>>>
>>> However, I don't see that checkbox. I've attached an image of what the
>>> template window looks like on my end. Maybe I'm looking in the wrong place?
>>>
>>
>> No , you're looking at the right place. This feature got in pretty late
>> in the release cycle of 4.1, so it is available from 4.1.2. Maybe the
>> version you are using is lower than that?
>>
>>
>>>
>>> Thanks for the response,
>>>
>>> On May 18, 2017 12:29 PM, "Arik Hadas"  wrote:
>>>


 On Thu, May 18, 2017 at 10:40 AM, Luca 'remix_tj' Lorenzetto <
 lorenzetto.l...@gmail.com> wrote:

> Hello Joel,
>
> as far as i know, virt-sysprep has to be executed inside the VM before
> cloning it to template. This removes some infos from the VM like udev
> rules & ssh keys.
>
>
 So this has changed in 4.1. You can now choose to seal a template
 during its creation. This will take a VM, that may have not been sealed,
 create a template out of it and then invoke virt-sysprep on the template's
 disks.

 Joel, in the 'make template' dialog you'll see a checkbox (at the
 bottom) for 'Seal Template' that will do the trick. There is also a 'seal'
 parameter in the REST-API, of course [1].

 [1] https://github.com/oVirt/ovirt-engine-api-model/blob/mas
 ter/src/main/java/services/TemplatesService.java#L168


>
> Luca
>
> On Wed, May 17, 2017 at 8:53 PM, Joel Diaz 
> wrote:
> > Good afternoon ovirt users,
> >
> > I'm new to ovirt. I've created templates in the past using this
> guide,
> > https://github.com/rharmonson/richtech/wiki/CentOS-7-1511-Mi
> nimal-oVirt-Template
> > .
> >
> > I was going over the list of features and stumbled on to
> virt-sysprep.
> >
> > http://www.ovirt.org/develop/release-management/features/vir
> t-sysprep/
> >
> >  http://libguestfs.org/virt-sysprep.1.html
> >
> > How can I use virt-sysprep from within ovirt to create templates?
> >
> > Thank you for your help,
> >
> > Joel
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Joel
> >
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>
>
>
> --
> "E' assurdo impiegare gli uomini di intelligenza eccellente per fare
> calcoli che potrebbero essere affidati a chiunque se si usassero delle
> macchine"
> Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)
>
> "Internet è la più grande biblioteca del mondo.
> Ma il problema è che i libri sono tutti sparsi sul pavimento"
> John Allen Paulos, Matematico (1945-vivente)
>
> Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <
> lorenzetto.l...@gmail.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] Permissions to Import VMs

2017-05-19 Thread Peter Wood
I did create a bug report and it was closed with the explanation that
UserVmManager role is not assigned because I'm using the Administration
portal... (???). What other portal do I use? Import/Export is Admin type
operation.

See here:
https://bugzilla.redhat.com/show_bug.cgi?id=1451501


Very simple steps to test it:

- Create a local user called LocalUserA

- Grant permissions to create VMs in DEV1 cluster and Import/Export VMs:

LocalUserA -> [PowerUserRole] -> DEV1 (Cluster)
LocalUserA -> [PowerUserRole] -> SAN (Storage Data Master)
LocalUserA -> [VmImporterExporter] -> DEV1 (Cluster)
LocalUserA -> [VmImporterExporter] -> SAN (Storage Data Master)
LocalUserA -> [VmImporterExporter] -> SD-Export (Storage Export type)

- Login to the Administration Portal as LocalUserA@internal

- Create a VM, Export the VM, Import the VM

  Role UserVmManager is not set for the imported VM.
  User LocalUserA can not even boot up the VM due to insufficient
permissions.

How do I setup LocalUserA so it can import VMs and work with them?

Thank you,

-- Peter


On Tue, May 16, 2017 at 4:11 AM, Arik Hadas  wrote:

>
>
> On Mon, May 15, 2017 at 11:36 PM, Peter Wood 
> wrote:
>
>> Hi,
>>
>> I have a group of local users with permissions to create VMs, templates,
>> and VMs from templates. They are allowed to work only in one of the
>> clusters in the datacenter.
>>
>> Now I want one of the local users to be able to import VMs and convert
>> them into templates and I just can't find the recipe for that.
>>
>> The group has these permissions:
>>
>> LocalUsersGroup -> [PowerUserRole] -> DEV1 (Cluster)
>> LocalUsersGroup -> [PowerUserRole] -> SAN (Storage)
>> LocalUsersGroup -> [TemplateCreator] -> OFFICE (Datacenter)
>>
>> LocalUserA is part of LocalUsersGroup and should be able to:
>>   - Import a VM
>>   - Convert the VM to a template for everyone to use
>>   - Delete the VM
>>
>> I tried this: LocalUserA -> [VmImporterExporter] -> System
>>
>> LocalUserA can now import VMs and convert them to templates but it can't
>> delete the imported VMs. For some reason [UserVmManager] role is not
>> assigned to LocalUserA on the VMs that were imported.
>>
>
> Right, that seems to be a bug. The import operation should set the user
> that executes it with UserVmManager role on the imported VM, just like add
> VM does for regular VM creation.
> Could you please file a bug?
>
>
>>
>> Before I start messing around I'd appreciate somebody's else opinion on
>> how this should be done.
>>
>>
> Thank you for your time,
>>
>> -- Peter
>>
>>
>>
>> ___
>> 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 Hosted Engine Setup fails

2017-05-19 Thread Manuel Luis Aznar
Hello there,

Simone it seems that with these three command before running "hosted-engine
--deploy"

   vdsm-tool configure --force
   systemcl restart libvirtd
   systemcl restart vdsmd

It is working and there is no fail.

Thanks for all in advance,
Manuel Luis Aznar

2017-05-15 17:55 GMT+01:00 Manuel Luis Aznar :

> Hello there,
>
> Attached to this message you have the /etc/libvirt/qemu.conf file.
>
> I will retry the installation and before launching it, I will run those
> three comands.
>
> Thanks for all in advance
> If you find something or need something ask without any problem
>
> 2017-05-15 17:54 GMT+01:00 Manuel Luis Aznar 
> :
>
>> Hello there,
>>
>> Attached to this message you have the /etc/libvirt/qemu.conf file.
>>
>> I will retry the installation and before launching it, I will run those
>> three comands.
>>
>> Thanks for all in advance
>> If you find something or need something ask without any problem
>> Manuel
>>
>> 2017-05-12 17:21 GMT+01:00 Simone Tiraboschi :
>>
>>>
>>>
>>> On Fri, May 12, 2017 at 1:31 PM, Manuel Luis Aznar <
>>> manuel.luis.az...@gmail.com> wrote:
>>>
 Hello there,

 Sorry for the late response, but I haven been busy doing job things...

 I was looking at the email of Yaniv and here are the results from my
 broken installation:

  Permission on /dev/kvm and /dev/random:

 [root@host1 audit]# ls -Z /dev/kvm
  crw-rw-rw-. root kvm system_u:object_r:kvm_device_t:s0
 /dev/kvm
 [root@host1 audit]# ls -Z /dev/random
  crw-rw-rw-. root root system_u:object_r:random_device_t:s0
 /dev/random

  Finally about SELinux settings:

 [root@host1 audit]# ls -la /var/log/audit/audit.log
 -rw---. 1 root root 575333 may 12 12:18
 /var/log/audit/audit.log

 [root@host1 audit]# ls -Z /var/log/audit/audit.log
 -rw---. root root system_u:object_r:auditd_log_t:s0
 /var/log/audit/audit.log

 I have attached to the mail the full log audit file
 (/var/log/audit/audit.log)

 Again I am sorry about the delay.

 Any answer would be very appreciated,

>>>
>>> OK, it fails here:
>>>
>>> type=VIRT_CONTROL msg=audit(1493635665.036:776): pid=21993 uid=0
>>> auid=4294967295 ses=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023
>>> msg='virt=kvm op=start reason=booted vm="HostedEngine"
>>> uuid=92faf919-b7b1-42dc-a70c-15c6eb32ba2f vm-pid=-1
>>> exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=? res=failed'
>>>
>>> Can you please share your /etc/libvirt/qemu.conf ?
>>>
>>> Maybe you can also try running:
>>>vdsm-tool configure --force
>>>systemcl restart libvirtd
>>>systemcl restart vdsmd
>>> and try again
>>>
>>>
>>>
 Manuel

 2017-05-07 7:46 GMT+01:00 Yaniv Kaul :

>
>
> On Thu, May 4, 2017 at 8:45 PM, Manuel Luis Aznar <
> manuel.luis.az...@gmail.com> wrote:
>
>> Hello there,
>>
>> Sorry for the delay to answer the mail, but, I have been busy doing
>> things...
>>
>> The permission on /dev/random are the following:
>>
>> [root@host1 manuel]# ls -la /dev/random
>> crw-rw-rw-. 1 root root 1, 8 may  4 18:06 /dev/random
>>
>> Suppose that these permission should look something like:
>>
>> [root@host1 manuel]# ls -la /dev/random
>> crw-rw-rw-. 1 vdsm kvm 1, 8 may  4 18:06 /dev/random
>>
>> Finally I do not know what you meant with permission on SELinux audit
>> logs?¿? Sorry for my lack of understanding, so, please let me know much
>> more precisely and I will look for it
>>
>
> You can get the selinux settings of a file with ls -Z . For example:
> [ykaul@ykaul ovirt-system-tests]$ ls -Z /dev/kvm
> system_u:object_r:kvm_device_t:s0 /dev/kv
>
> Also, you can search for selinux issues either in /var/log/audit or
> using ausearch. For example:
> sudo ausearch -m AVC -i
>
> Y.
>
>>
>>
>> Thanks for all in advance
>> I will be waiting for you
>> Manuel Luis Aznar
>>
>> 2017-05-03 15:09 GMT+01:00 Simone Tiraboschi :
>>
>>>
>>>
>>> On Wed, May 3, 2017 at 11:30 AM, Manuel Luis Aznar <
>>> manuel.luis.az...@gmail.com> wrote:
>>>
 Hello Simone and all others,

 I have attached to the mail the requested files. If you have any
 other inquiry just say it, The failed installation drive would be keep 
 safe
 until solving this problem.

 Thanks for all in advance
 Manuel

>>>
>>> The issue is here:
>>> May  1 11:47:45 host1 journal: libvirt version: 2.0.0, package:
>>> 10.el7_3.5 (CentOS BuildSystem ,
>>> 

Re: [ovirt-users] add direct LUN disk to a VM with python SDK

2017-05-19 Thread Ondra Machacek
I've sent following example to our Python SDK,
feel free to try and review:

 https://gerrit.ovirt.org/#/c/77003/1

Also you may checkout relevant Ansible module, which support this
functionality as well:

 http://docs.ansible.com/ansible/ovirt_disks_module.html


On Wed, May 17, 2017 at 1:21 PM, Guy Chen  wrote:

>
> I am trying to add direct LUN disk to a VM with python ovirtsdk4 ( storage
> domain is iscsi ) .
> Adding a COW disk is working as in the SDK example, attached below, i have
> tried different things that i saw online but did not work, anybody have an
> example of how to add a direct LUN disk ?
>
> def add_VM_disk(self):
>
>
> vms_service = self.connection.system_service().vms_service()
> vm = vms_service.list(search='name=myvm')[0]
>
> # Locate the service that manages the disk attachments of the virtual
> # machine:
> disk_attachments_service = 
> vms_service.vm_service(vm.id).disk_attachments_service()
>
> # Use the "add" method of the disk attachments service to add the disk.
> # Note that the size of the disk, the `provisioned_size` attribute, is
> # specified in bytes, so to create a disk of 10 GiB the value should
> # be 10 * 2^30.
> disk_attachment = disk_attachments_service.add(
> types.DiskAttachment(
> disk=types.Disk(
> name='mydisk',
> description='My disk',
> format=types.DiskFormat.COW,
> provisioned_size=10 * 2 ** 30,
> ),
> interface=types.DiskInterface.VIRTIO,
> bootable=False,
> active=True,
> ),
> )
>
>
>
>
>
> ___
> 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] Building ovirt-host-deploy gives `configure: error: otopi-devtools required but missing`

2017-05-19 Thread Juan Hernández
On 05/19/2017 05:38 AM, Leni Kadali Mutungi wrote:
> By the way, how does WildFly fit into all of this? Because I
> downloaded a zip file from their site as referenced here:
> https://github.com/leni1/oVirt-docs-Debian/blob/master/oVirt-Development-Environment.md
> and it seemed to me that zip contained a script that runs the WildFly
> server instance within the terminal. How is it supposed to interact
> with the oVirt engine and how do I make sure to run it such that there
> are no errors arising from not having it. As of now I run it as a
> standalone server according to the instructions in the README.txt file
> that comes with the zip file:
> 
> Starting a Standalone Server
> 
> A WildFly standalone server runs a single instance.
> 
> /bin/standalone.sh  (Unix / Linux)
> 
> 

Currently the oVirt engine has its own mechanism to start the
application server, you don't need to (and should not) start it yourself
with the 'standalone.sh' script. All you need to do is to tell the
engine where the application server is installed. To do so you need to
set the 'JBOSS_HOME' home in the engine configuration. The easiest way
to do that is to add the '--jboss-home' option to the 'engine-setup'
command:

  engine-setup --jboss-home=

That will add the following to the generated
'engine.conf.d/10-setup-jboss.conf' file:

  JBOSS_HOME=""

You can also change that file manually, if you move the application
server to a different directory, for example.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Docker images for oVirt engine

2017-05-19 Thread Juan Hernández
On 05/19/2017 05:20 AM, Leni Kadali Mutungi wrote:
> Running `make build` went fine until I saw this error:
> 
> Step 26/34 : RUN sed -i 's/multipathd.service //g'
> /usr/lib/systemd/system/vdsmd.service
>  ---> Running in 6a0948c94798
> ERRO[0104] containerd: notify OOM events error=cgroup
> path for memory not found
> sed: can't read /usr/lib/systemd/system/vdsmd.service: No such file or 
> directory
> The command '/bin/sh -c sed -i 's/multipathd.service //g'
> /usr/lib/systemd/system/vdsmd.service' returned a non-zero code: 2
> Failed to build image 'ovirt/vdsc:master'
> 
> I tried restarting the Docker daemon and re-running `make build`,
> since before this I got this error:
> 
> Message from syslogd@localhost at May 19 06:07:57 ... kernel:[
> 7498.623027] unregister_netdevice: waiting for lo to become free.
> Usage count = 1
> 

Did that restart of the docker daemon resolve the problem?

As far as I can tell that 'RUN sed' instruction that failed is correct.
I just re-checked it in my environment and it works correctly. Looks
more like a resources issue or a bug in docker itself. The message says
OOM, out of memory, is that machine low on memory maybe?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users