[ovirt-users] Existing Qemu/KVM Host as a node

2022-01-17 Thread atkinson . unt
Is there any information on possibility of using an existing Qemu/KVM host as a 
node? I like the look and feel of oVirt, and want to use it on my main 
hypervisor, but I don't want to have to rebuild or import 20 VMs, one of which 
happens to also be my router. If I were to set up a management unit, and add my 
existing host as a node, would it be able to import or recognize and use 
existing VMs?
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ANAZUNPXGFIS67MK2AOHC765Y6JUUEYG/


[ovirt-users] Re: Linux VMs cannot boot from software raid0

2022-01-17 Thread Tomáš Golembiovský
Hi,

this seems similar to the bug: 
https://bugzilla.redhat.com/show_bug.cgi?id=1924972
that was triggered by a change in seabios. Sadly the final comments on
the bug are marked private. At the moment it seams the change in seabios
will be reverted in EL8 (on hypervisor) but it is not clear in which
version will the fix land.

I think somebody once told me that it should be possible to specify
multiple boot disks somehow -- I guess through API? Could you give that
a test? But don't take my word for it. At worst I think you could come
up with a hook that fixes domain XML by adding the bootindex to all
disks.

Hope this helps,

Tomas

On Fri, Jan 07, 2022 at 01:44:08PM +, Strahil Nikolov via Users wrote:
>  Hi Vojta
> 
> My LVM version on the hypervisor is:
> udisks2-lvm2-2.9.0-7.el8.x86_64
> llvm-compat-libs-12.0.1-4.module_el8.6.0+1041+0c503ac4.x86_64
> lvm2-libs-2.03.14-2.el8.x86_64
> lvm2-2.03.14-2.el8.x86_64
> libblockdev-lvm-2.24-8.el8.x86_64
> 
> LVM on VM:
> [root@nextcloud ~]# rpm -qa | grep lvm
> lvm2-libs-2.03.12-10.el8.x86_64
> lvm2-2.03.12-10.el8.x86_64
> 
> 
> VM disk layout is:
> 
> [root@nextcloud ~]# lsblk
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
> sda 8:0 0 5G 0 disk 
> ├─sda1 8:1 0 500M 0 part 
> │ └─md127 9:127 0 2G 0 raid0 /boot
> └─sda2 8:2 0 4,5G 0 part 
>  └─nextcloud--system-root 253:0 0 10G 0 lvm /
> sdb 8:16 0 5G 0 disk 
> ├─sdb1 8:17 0 500M 0 part 
> │ └─md127 9:127 0 2G 0 raid0 /boot
> └─sdb2 8:18 0 4,5G 0 part 
>  └─nextcloud--system-root 253:0 0 10G 0 lvm /
> sdc 8:32 0 5G 0 disk 
> ├─sdc1 8:33 0 500M 0 part 
> │ └─md127 9:127 0 2G 0 raid0 /boot
> └─sdc2 8:34 0 4,5G 0 part 
>  └─nextcloud--system-root 253:0 0 10G 0 lvm /
> sdd 8:48 0 5G 0 disk 
> ├─sdd1 8:49 0 500M 0 part 
> │ └─md127 9:127 0 2G 0 raid0 /boot
> └─sdd2 8:50 0 4,5G 0 part 
>  └─nextcloud--system-root 253:0 0 10G 0 lvm /
> sde 8:64 0 1G 0 disk 
> └─nextcloud--db-db 253:2 0 4G 0 lvm /var/lib/mysql
> sdf 8:80 0 1G 0 disk 
> └─nextcloud--db-db 253:2 0 4G 0 lvm /var/lib/mysql
> sdg 8:96 0 1G 0 disk 
> └─nextcloud--db-db 253:2 0 4G 0 lvm /var/lib/mysql
> sdh 8:112 0 1G 0 disk 
> └─nextcloud--db-db 253:2 0 4G 0 lvm /var/lib/mysql
> sdi 8:128 0 300G 0 disk 
> └─data-slow 253:1 0 600G 0 lvm /var/www/html/nextcloud/data
> sdj 8:144 0 300G 0 disk 
> └─data-slow 253:1 0 600G 0 lvm /var/www/html/nextcloud/data
> sr0
> 
> 
> 
> 
> I have managed to start my VM as follows:
> 1. Start the VM
> 2. Dump the VM xml
> 3. Destroy
> 4. Add " to every disk entry in the dump file
> 5. virsh define VM.xml
> 6. virsh start VM
> 
> 
> Sadly I can't set more than 1 disk as bootable in oVirt.
> 
> 
> Best Regards,
> Strahil Nikolov В петък, 7 януари 2022 г., 13:38:59 Гринуич+2, Vojtech 
> Juranek  написа:  
>  
>  Hi,
> 
> > Hi All,
> > I recently migrated from 4.3.10 to 4.4.9 and it seems that booting from
> > software raid0 (I have multiple gluster volumes) is not possible with
> > Cluster compatibility 4.6 . I've tested creating a fresh VM and it also
> > suffers the problem. Changing various options (virtio-scsi to virtio,
> > chipset, VM type) did not help . Booting from rescue media shows that the
> > data is still there, but grub always drops to rescue. Any hints are
> > welcome.
> > Host: CentOS Stream 8 with qemu-6.0.0oVirt 4.4.9 (latest)VM OS:
> > RHEL7.9/RHEL8.5 Best Regards,Strahil Nikolov
> 
> What is the lvm version? There was recently issue [1] with specific lvm 
> version 
> (lvm2-2.03.14-1.el8.x86_64) which could cause boot failures.
> 
> Vojta
> 
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=2026370
> 
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/R2NI7T7QUD7MMIXWFRH4K7ZBTSCZSUWG/
>   

> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/NVJQXU2VKABK7XJP3YMI5AXQC2GO2SMP/


-- 
Tomáš Golembiovský 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/C2ZRCRJQX7U633DPQLRCGW4KPCCZFOYJ/


[ovirt-users] Re: give cloud-init the VM name

2022-01-17 Thread Nathanaël Blanchet

Hello,

Two ways of thinking:

1. the vdsm hook could be very easy to write so as to make what you
   desire (ovirtsdk4 is presinstalled on ovirt node):
   importovirtsdk4 assdk
   importovirtsdk4.types astypes
   fromvdsm.hook importhooking
   # Get the vm name from xml definition:
   domxml= hooking.read_domxml()
   vm_name= domxml.getElementsByTagName('name')[0].firstChild.nodeValue
   print(vm_name)
   connection= sdk.Connection(
   url='https://engine.example.com/ovirt-engine/api',
   username='admin@internal',
   password='password',
   ca_file='ca.pem',
   )
   # Find the virtual machine:
   vms_service= connection.system_service().vms_service()
   vm= vms_service.list(search= vm_name)[0]
   # Find the service that manages the virtual machine:
   vm_service= vms_service.vm_service(vm.id)
   # Start the virtual machine enabling cloud-init and providing the
   # password for the `root` user and the hostname:
   vm_service.start(
   use_cloud_init=True,
   vm=types.Vm(
   initialization=types.Initialization(
   user_name='root',
   root_password='password',
   host_name= vm_name+ 'example.com'
   )
   )
   )
   # Close the connection to the server:
   connection.close()
   Then place it as executable in
   /usr/libexec/vdsm/hooks/before_vm_start on each host that should be
   able to run the pool vms.

2. As the web UI already auto fills the VM hostname cloud-init field
   with the vm name (or fqdn), the VM Hostname should do the same with
   vm pool, but it doesn't. You could open a RFE for this, it shouldn't
   be very complicated to patch it.

Le 17/01/2022 à 12:34, Luca Contessa a écrit :

I thought that:- you know the name of the future VM

I will try to clarify: I'm trying to obtain from the oVirt engine the name of 
the VM created inside the pool.
For example if the VM in pool LinuxPool is called LinuxMachine-1 I want the 
cloud-init to know that the VM is called LinuxMachine-1 and with this info add 
the suffix using the method you described.
Again, thank you a lot for the response.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/GKIRUVQ7R65MH6QU73XVDF5GCQCKDZTK/


--
Nathanaël Blanchet

Supervision réseau
SIRE
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5   
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/PZUVWBBNAJFZRD2VTLOJKNDOEUABHQSR/


[ovirt-users] Re: give cloud-init the VM name

2022-01-17 Thread Luca Contessa
> I thought that:- you know the name of the future VM
I will try to clarify: I'm trying to obtain from the oVirt engine the name of 
the VM created inside the pool.
For example if the VM in pool LinuxPool is called LinuxMachine-1 I want the 
cloud-init to know that the VM is called LinuxMachine-1 and with this info add 
the suffix using the method you described.
Again, thank you a lot for the response.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/GKIRUVQ7R65MH6QU73XVDF5GCQCKDZTK/


[ovirt-users] oVirt nodes keeps updating and rebooting

2022-01-17 Thread Harry O
Hi,

After HE deployment my oVirt nodes keeps updating and rebooting, even though I 
disabled node update in the beginning of deployment wizard.
Why is this and how can I stop it form happening?
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/LDFICZ2R7WYN6UDD2SBC5PWTMLD7LSNU/