Re: [ovirt-users] Template Independent vs Dependent
Thank you. J.M. Dne 25.9.2014 v 11:04 Juan Hernandez napsal(a): On 09/24/2014 08:40 PM, J. Mikulec wrote: Hello, if I create VM from template through web manager, it shows in General - Template Clone/Independent. When created through REST API, it shows Thin/Dependent. When it is Thin/Dependent, it is not possible to remove used template but VM creation is much faster. I would like to have more info about this but cannot find any. So I cannot find how to create Independent with REST API. Thanks, Jiri You have to use the disks.clone parameter, for example: #!/bin/sh -ex url=https://ovirt.example.com/ovirt-engine/api; user=admin@internal password=** curl \ --verbose \ --insecure \ --request POST \ --user ${user}:${password} \ --header Content-Type: application/xml \ --header Accept: application/xml \ --data vm namemyvm/name cluster namemycluster/name /cluster template namemytemplate/name /template disks clonetrue/clone /disks /vm \ ${url}/vms ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] VM autoconfiguration
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. 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? 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
[ovirt-users] Template Independent vs Dependent
Hello, if I create VM from template through web manager, it shows in General - Template Clone/Independent. When created through REST API, it shows Thin/Dependent. When it is Thin/Dependent, it is not possible to remove used template but VM creation is much faster. I would like to have more info about this but cannot find any. So I cannot find how to create Independent with REST API. Thanks, Jiri ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] VM autoconfiguration
Thanks. Cannot find such config file or entry :-/ So it seems cloud-init apply later than is needed to change root password. But don't know. Dne 23.9.2014 v 8:49 Shahar Havivi napsal(a): 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] Native gluster without FUSE
Hello, it seems this feature is temporary disabled in oVirt due the some bug in libvirt/qemu with qcow2. Can I enable it manually when not using qcow2? Fuse gluster seems to be very slow :-/ Thanks, Jiri Dne 15.9.2014 v 21:23 J. Mikulec napsal(a): Hello, at http://www.ovirt.org/Features/GlusterFS_Storage_Domain I can read oVirt allows glusterfs domains which maps to disk type=network./disk in libvirt xml without USE overhead. My oVirt still creates and uses mount for disks at qemu as -drive file=/rhev/data-center/mnt/glusterSD Is possible to use GlusterFS storage domain without FUSE? Fedora 19, oVirt 3.4 (Centos 7 the same) 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] VM autoconfiguration
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. 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
Re: [ovirt-users] VM autoconfiguration
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? 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
Re: [ovirt-users] VM autoconfiguration
Forgot to say I disabled selinux in Centos7 template. J.M. Dne 22.9.2014 v 19:37 J. Mikulec napsal(a): 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? 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
[ovirt-users] User permissions for user portal
Hello, I can't figure out right user permissions. I can add user which can do just this through user portal: - see and change status of VM (including Power Off) - remote console - change CD (+ maybe os type) Change status and console (without power off) comes with UserRole, power off and change CD comes with UserVmManager. But UserVmManager brigns also wide options to manage network interfaces, disks etc, what is unsafe for me to delegate it to this user. Thanks, J.M. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] User permissions for user portal
Hello, thanks. I forgot to write I tried this before but cannot find appropriate permission combination for this. One was same as UserRole, another same as UserVmManager :-/ I think my requirement is typical for VPS sell/rent, provide flexibility to friend/customer and have it without much work and with security. So cannot believe oVirt does not support this ... Thanks, J.M. Dne 20.9.2014 v 12:11 Oved Ourfali napsal(a): You can create your own custom user roles via the administration portal. And the assign these permissions to users. Go to the configure dialog on the upper right part of the administrative portal, and you'll find it there. Oved On Sep 20, 2014 11:34 AM, J. Mikulec j...@mikulec.name wrote: Hello, I can't figure out right user permissions. I can add user which can do jHello, I can't figure out right user permissions. I can add user which can do just this through user portal: - see and change status of VM (including Power Off) - remote console - change CD (+ maybe os type) Change status and console (without power off) comes with UserRole, power off and change CD comes with UserVmManager. But UserVmManager brigns also wide options to manage network interfaces, disks etc, what is unsafe for me to delegate it to this user. Thanks, J.M. ___ 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 Network Interfaces - bad cluster network and VLAN assignment
Ahoj :) After huge testing today :) I see it is problem just if I add NICs after VM creation and automatically assigned MACs are 00:1a:4a:c4:e4:11 and 00:1a:4a:c4:e4:ef. In this case there is also desc alphabetical sorting of nic (sorting by MAC?). This problem is NOT when: - NICs are added in time of VM creation (windows New Virtual Machine, tab General) - 1 NIC is added in time of VM creation and 1 added later - when all NICs are added later and oVirt assign another MAC J. Dne 17.9.2014 11:16, David Jaša napsal(a): Ahoj Jiří, Are you sure that the networks are indeed wrong, for example that guest's NIC with ...:11 MAC is plugged to br0 network and ...:ef NIC is plugged to br1 network? If so that would be a serious bug. I thing however that you just see guest OS NIC naming race conditions, maybe if ovirt's NIC names would be prefixed with nic- instead of eth- by default, such confusions wouldn't happen... For some reference, bug [1] is implemented consistent NIC order in the portal and [2] to be able to modify pci addresses as well (as they are used by some OSs to base NIC naming on). David [1] https://bugzilla.redhat.com/show_bug.cgi?id=1040630 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1108926 On St, 2014-09-17 at 07:33 +0200, J. Mikulec wrote: Hello, I have 4 Cluster networks and I am trying to add 2 NICs to VM now: nic0 - br0 nic1 - br1 At ovirt-engine it seems ok, but assignment in qemu is incorrect - going to this: nic0 - br1 nic1 - br0 So nics belongs to incorrect bridges and so incorrect VLANs. It does oVirt totally unusable for me (we strictly use 0 network for public IPs and 1 for intranet use) :( With one NIC I not see this problem. http://tinypic.com/view.php?pic=29pzxbrs=8#.VBjLUxYoEiw http://tinypic.com/view.php?pic=2hdd07ms=8#.VBjLgRYoEiw Thank for help. J. ___ 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
[ovirt-users] VM Network Interfaces - bad cluster network and VLAN assignment
Hello, I have 4 Cluster networks and I am trying to add 2 NICs to VM now: nic0 - br0 nic1 - br1 At ovirt-engine it seems ok, but assignment in qemu is incorrect - going to this: nic0 - br1 nic1 - br0 So nics belongs to incorrect bridges and so incorrect VLANs. It does oVirt totally unusable for me (we strictly use 0 network for public IPs and 1 for intranet use) :( With one NIC I not see this problem. http://tinypic.com/view.php?pic=29pzxbrs=8#.VBjLUxYoEiw http://tinypic.com/view.php?pic=2hdd07ms=8#.VBjLgRYoEiw Thank for help. J. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Native gluster without FUSE
Hello, at http://www.ovirt.org/Features/GlusterFS_Storage_Domain I can read oVirt allows glusterfs domains which maps to disk type=network./disk in libvirt xml without USE overhead. My oVirt still creates and uses mount for disks at qemu as -drive file=/rhev/data-center/mnt/glusterSD Is possible to use GlusterFS storage domain without FUSE? Fedora 19, oVirt 3.4 (Centos 7 the same) Thanks! Jiri ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users