[ovirt-users] oVirt KVM Guest Definition: How to read these from within a virtual machine?

2018-04-14 Thread TomK
From within an oVirt (KVM) guest machine, how can I read the guest 
specific definitions such as memory, CPU, disk etc configuration that 
the guest was given?


I would like to do this from within the virtual machine guest.

--
Cheers,
Tom K.
-

Living on earth is expensive, but it includes a free trip around the sun.

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


Re: [ovirt-users] oVirt non-self-hosted HA

2018-04-14 Thread TomK

On 4/5/2018 8:59 AM, Tom wrote:



Sent from my iPhone

On Apr 5, 2018, at 5:29 AM, Yaniv Kaul > wrote:





On Thu, Apr 5, 2018 at 9:08 AM, TomK > wrote:


On 4/4/2018 3:11 AM, Yaniv Kaul wrote:



On Wed, Apr 4, 2018 at 12:39 AM, Tom  >> wrote:



    Sent from my iPhone

    On Apr 3, 2018, at 9:32 AM, Yaniv Kaul 
    >> wrote:



    On Tue, Apr 3, 2018 at 3:12 PM, TomK

    >> wrote:

        Hey Guy's,

        If I'm looking to setup the oVirt engine in an HA
        configuration off the physical servers hosting my
VM's (non
        self hosted), what are my options here?

        I want to setup two to four active oVirt engine
instances
        elsewhere and handle the HA via something like
haproxy /
        keepalived to keep the entire experience seamless
to the user.


    You will need to set up the oVirt engine service as
well as the PG
    database (and ovirt-engine-dwhd service and any other
service we
    run next to the engine) as highly available module.
    In pacemaker[1], for example.
    You'll need to ensure configuration is also sync'ed
between nodes,
    etc.
    Y.


    So already have one ovirt engine setup separately on a vm that
    manages two remote physical hosts.  So familiar with the
single host
    approach which I would simply replicate.  At least that’s
the idea
    anyway.  Could you please expand a bit on the highly available
    module and  syncing the config between hosts?


That's a different strategy, which is also legit - you treat
this VM as a highly available resource. Now you do not need to
sync the config - just the VM disk and config.


I think there's a postgres component too and if oVirt engine keeps
all it's date on the postgres tables, then synchronizing this
piece might be all I need?  I'm not sure how the separate oVirt
engines sitting on various separate physical hosts keep their
settings in sync about the rest of the physicals in an oVirt
environment. (Assume we may have 100 oVirt physicals for example.)


There's more than just the database, although it contains 99% of what 
you need. See the content of the result of 'engine-backup' command.
I think you might be somewhat confusing between the number of oVirt 
hypervisors (we support hundreds) and the Engine - the management, 
which is single - and with hosted-engine, it's a single, but highly 
available virtual machine - that can run on one of several (I suggest 
3-8) of those hypervisors.

Y.


Yah, still very new to much of this.  Thank you again.

I’ll take that away and do some reading.

Cheers,
Tom



"that can run on one of several (I suggest 3-8) of those hypervisors."
To clarify.  So if I have 3-8 copies of the oVirt Engine in a 
self-hosted config, only one can run at any one time?  Is this correct?


Cheers,
Tom




Perhaps something like

https://www.unixarena.com/2015/12/rhel-7-pacemaker-configuring-ha-kvm-guest.html


.

But if you are already doing that, I'm not sure why you'd
prefer this over hosted-engine setup.


I'm comparing both options.  I really don't want to ask too many
specific until I have the chance to read into the details of both.

Y.


Cheers,
Tom



    Cheers,
    Tom


    [1] https://clusterlabs.org/quickstart-redhat.html

    >


        From what I've seen in oVirt, that seems to be
possible
        without the two oVirt engines even knowing each
other's
        existence but is it something anyone has ever
done?  Any
        recommendations in this case?

        Having settings replicated would be a bonus but I
would be
        comfortable if they weren't and I handle that myself.

        --         Cheers,
        Tom K.
   

Re: [ovirt-users] vdsm hook noipspoof on interface level

2018-04-14 Thread Peter Hudec
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Thanks,

this was the last part into my puzzle, HOST INTERFACE params.

The example hook provided in
https://bugzilla.redhat.com/show_bug.cgi?id=1366905#c8,
https://bugzilla.redhat.com/attachment.cgi?id=1232201 looks good, but
it seems to set the IP param on all interfaces too, regardless on
which interface the NIC PARAM is set.

The hooks should be called per vNIC, as reading the
https://www.ovirt.org/documentation/admin-guide/appe-VDSM_and_Hooks/#the
- -vdsm-hook-domain-xml-object,
the one/several of thees hooks should be used or maybe I'm wrong ;(

Peter

On 14/04/2018 07:04, Eitan Raviv wrote:
> You might find the following useful:
> 
> https://ovirt.org/develop/release-management/features/network/networkf
ilterparameters/
>
>  HTH
> 
> On Thu, Apr 12, 2018, 14:52 Peter Hudec  > wrote:
> 
> Hi,
> 
> I would like to restrict of usage IP address on VMs. Thos could be 
> achied by usinf clear-filter instead of vdsm-no-mac-spoofing.
> 
> I have found noipspoof vdsm hook, 
> https://github.com/oVirt/vdsm/tree/master/vdsm_hooks/noipspoof.
> 
> This hook but set the filtering on all interfaces, the setting is
> on VM level, not interface level. So if the there are more
> interfaces on all of them. I would like just restrict the WAN
> interface on multi homed VMs.
> 
> Peter
> 
> -- *Peter Hudec* Infraštruktúrny architekt phu...@cnc.sk
>   >
> 
> *CNC, a.s.* Borská 6, 841 04 Bratislava Recepcia: +421 2  35 000
> 100
> 
> Mobil:+421 905 997 203 *www.cnc.sk *
> >
> 
> ___ Users mailing list 
> Users@ovirt.org  
> http://lists.ovirt.org/mailman/listinfo/users
> 


- -- 
*Peter Hudec*
Infraštruktúrny architekt
phu...@cnc.sk 

*CNC, a.s.*
Borská 6, 841 04 Bratislava
Recepcia: +421 2  35 000 100

Mobil:+421 905 997 203
*www.cnc.sk* 

-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlrSm54ACgkQQnvVWOJ3
5BDz5A//dqyf9wnvkRCjEmeUkMsN72qL7o+utazM7L8S4sY4Pu6INsPhpy7QtwHw
fyXbdrU9qy+5ts3g+yoxpsdkTWUk47m/6nQR3fiw0nXJu44/ABl+Hw4g0H3/k86f
7sYOYvZ8IfCpL9/2r1VRlP8j7e+CdI8Ltcjppn7PtKhPT03f87p2PT1pJd95DYS+
GbqZZ6yOAUlePP/808+f7hYxKNz0ek1tf/ZxzLgSJsCl1PsIhKiCBiuze/5hdeL5
/VNWVSqVXNZdzOZkupxas50f/AH6g4DXniyChqvoTi+D37Wpf5yTxXM5C+Qf36Ok
2qZEovxuno51A5l9qIE0n2LQ3I6zJbybdth33sV1uxFK65CWxlfLgbPxb4+9JONF
2yozK/DtmGC7Hree2INBGOJA/55fCrccxSMuLW8JbmZqx43uCrE/FBWZhXE6Lx+f
F5hR5e3kJEWjEtyPKpdtXedmOsb06xvGq+WFOGl8VgaRmNgsuLN/YYy13kRDY+0K
j//ZX7ZqBaP9TqaW9y1LljTPLGugqVX+uzPdbUvW4vqahNU8mT5Kq1pBrrGPdY+C
FolC1CLiWixAAhtSXfJihflFUJq+pYkAXDYBNPj/uyuIyeGXABw1UkJqgc0bVAal
lSAMK2P09xwJ8Db5HpqxXpOHe/s5XdYD8Mj0jebQ2308CPNxfQM=
=AvLd
-END PGP SIGNATURE-
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hosted Engine won't start, how to debug?

2018-04-14 Thread Martin Sivak
Hi,

the vnc device is there by default (I copied it out of my own hosted
engine instance), I do not know why it was missing in your case.

Best regards

Martin Sivak

On Fri, Apr 13, 2018 at 5:13 PM, Thomas Klute  wrote:
> Dear Martin,
>
> yes, that worked. Thank you so much!!
> We were able to see that the latest kernel update failed and did not
> create the initramfs file and thus the boot process failed with a kernel
> panic.
>
> Debugging this problem took us many hours... It felt so complicated to
> connect a vnc to this vm - compared to a bare metal setup with display
> and keyboard.
> Wouldn't it be a good idea to have the vnc device in the config by default?
>
> Best regards,
>  Thomas
>
>> You need to be in global maintenance, but I think you already know that.
>> Then try updating the vm.conf like you already did and add this line:
>>
>> devices={device:vnc,type:graphics,deviceId:f1d0394e-b077-4ea6-99e5-b9b6b8fe073c,address:None}
>>
>> Then restart the VM using hosted-engine commands and try the VNC approach 
>> again.
>>
>> Best regards
>>
>> Martin Sivak
>>
>> On Fri, Apr 13, 2018 at 2:35 PM, Thomas Klute  wrote:
>>> Dear Martin,
>>>
>>> thanks for the feedback.
>>> We already read this and tried it.
>>> It seems to me that the graphics device was removed from the hosted
>>> engine by some ovirt release.
>>>
>>> If I try to set a console password I see this message:
>>>
>>> hosted-engine --add-console-password
>>> Enter password:
>>> no graphics devices configured
>>>
>>> Furthermore, there is nothing listening on port 5900 after that.
>>> The HostedEngine qemu process shows a " -display none " as parameter and
>>> I have no idea where this can be changed.
>>>
>>> I already created a /var/run/ovirt-hosted-engine-ha/vm-custom.conf
>>> containing:
>>> display=vnc
>>> kvmEnable=true
>>>
>>> But nothing changed.
>>> I also edited the HostedEngine VM config using virsh and added a vnc
>>> display:
>>> /usr/bin/virsh -c
>>> qemu:///system?authfile=/etc/ovirt-hosted-engine/virsh_auth.conf edit
>>> HostedEngine
>>>
>>> 
>>>   
>>> 
>>> 
>>>   >> heads='1' primary='yes'/>
>>>   >> function='0x0'/>
>>> 
>>>
>>> But there is still "display none" passed as command line parameter to
>>> qemu and thus, I suppose, there's no display.
>>>
>>> Any help is appreciated, thanks,
>>> Thomas
>>>
>>>
 Hi,

 the serial console will show output if the kernel knows to use it.

 The VNC approach is also possible and I believe we already have a
 graphical device present. What you are looking for is probably this
 (VNC method is described there):
 https://www.ovirt.org/documentation/how-to/hosted-engine/#handle-engine-vm-boot-problems

 Best regards

 --
 Martin Sivak
 SLA / oVirt

 On Fri, Apr 13, 2018 at 11:26 AM, Thomas Klute  wrote:
> Dear oVirt Team,
>
> after trying to reboot a hosted engine setup on oVirt 4.2 the VM won't
> come up anymore.
> The qemu-kvm process is there but we're unable to access the VM using
> - the serial console (simply does not show anything, does not react to
> characters typed)
> - VNC / Spice because the hosted engine vm.conf does not contain any
> graphics device.
>
> Before trying to reinstall, we'd like to recover and debug what is going 
> on.
> We mounted a Centos7 install .iso and started the VM using
> hosted-engine --vm-start
> --vm-conf=/var/run/ovirt-hosted-engine-ha/vm-custom.conf
> But we still have to problem, that the serial console does not show
> anything and there is no way to connect using VNC.
>
> So, what is the recommended way to move forward in such situation?
> IMHO the classical way would be to add a graphics device and connect via
> VNC?
> I did not use the serial console much, up to now. Should the serial
> console show any output during boot?
>
> Thanks for your help,
>  Thomas
>
> --
> 
>
>  Dipl.-Inform. Thomas Klute   kl...@ingenit.com
>  Geschäftsführer / CEO
>  --
>  ingenit GmbH & Co. KG   Tel. +49 (0)231 58 698-120
>  Emil-Figge-Strasse 76-80Fax. +49 (0)231 58 698-121
>  D-44227 Dortmund   www.ingenit.com
>
>  Registergericht: Amtsgericht Dortmund, HRA 13 914
>  Gesellschafter : Thomas Klute, Marc-Christian Schröer
> 
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>>> Sollten noch Fragen offen sein, stehen wir Ihnen natürlich jederzeit

Re: [ovirt-users] WARN VdsBroker

2018-04-14 Thread Vrgotic, Marko
Dear Roy,

Thank you. I noticed after completing the upgrade of the engine, and update of 
the hypervisors, that one hypervisor could not enter Maintenance state, as it 
was showing to be still hosting one VM. However, I could not find which one, 
the list showing hypervisor VMs was empty.
I was able to connect the relation between WARN message and “invisible” VM, and 
its solved now.

I will definitely look more into vdsm, as it is new to me, thank you, this 
information is valuable.

I think we can close this case.

Kind regards,
Marko Vrgotic

From: Roy Golan 
Date: Friday, 13 April 2018 at 14:48
To: "Vrgotic, Marko" 
Cc: "users@ovirt.org" 
Subject: Re: [ovirt-users] WARN VdsBroker

Every VDSM(host) reports the application list per installed vm, every time the 
engine asks for the vm statistics. The list probably contains an illegal value 
or we fail to convert it , anyhow it doesn't interfere with the rest of the 
monitoring process.  Please share the output of this command from one of your 
hosts that have running vms:
vdsm-client Host getAllVmStats


On Fri, 13 Apr 2018 at 15:24 Vrgotic, Marko 
> wrote:
Hi oVirt community,

I have just upgraded from 4.2.0 to 4.2.2 version.

I noticed a ton of :
   2018-04-13 11:13:48,857+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-84) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:48,857+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-84) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:48,857+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-84) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:48,857+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-84) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:50,056+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-93) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:51,482+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:51,482+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:51,483+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:13:51,483+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-23) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:03,912+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-24) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:03,912+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-24) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:03,912+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-24) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:03,912+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-24) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:05,120+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-50) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:06,564+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-60) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:06,564+02 WARN  
[org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder] 
(EE-ManagedThreadFactory-engineScheduled-Thread-60) [] Failed to convert app: 
[[Ljava.lang.Object;] is not a string
2018-04-13 11:14:06,564+02 WARN