Re: [ovirt-users] VM Autostart disable
You should not directly write to libvirt if you use ovirt. set your HA-Flag in ovirt for the vm and it should be autostarted. I don't know if this flag somehow pops up in the libvirt.xml but I doubt it. Am 05.09.2014 05:45, schrieb Punit Dambiwal: What happen if it will be disable and what happen if i will make it enable ?? -- 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 / RHEV interoperability
Am 05.09.2014 06:50, schrieb John Gardeniers: Just curious and I'm not currently in a position to try it myself. Is there any interoperability between Ovirt and RHEV? In other words, can an Ovirt hypervisor work with a REV engine or can a RHEV hypervisor work with a RHEV engine? In theory and maybe in real world this could work, however I don't think you could get much support from red hat for your rhev/m in such a setup. So I really don't see the scenario you want to deploy? If you need paid support, buy it, if not, stick with ovirt? HTH -- 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] VM File System expansion
Please answer the question I asked: If you used virt-resize, what precise commands did you type and what exact errors did you see? otherwise I cannot help you. Rich. -- 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
[ovirt-users] [hosted-engine] cluster network setup deadlock
Hi, i'm testing hosted-engine in my lab and have some issues doing network configuration of my cluster I have 2 hosts + storage (iscsi/nfs), each with 2 NICs. My aim is highly available platform, so it must tolerate loss of one NIC, thus i want to use bonding + vlans, scheme like this: bond device used as ovirtmgmt network (mgmt/display/migration, not a VM net) with no vlan tagging and several vlan-tagged networks for VMs and storage connection on top of it. I use that kind of scheme all the time with non-selfhosted ovirt, as it provides reliability, requires only 2 nics, allows pxe-kickstarting and requires no switch reconfiguration during/after host setup. However, with self-hosted engine i'm stuck - at deploy stage installer setups engine VM into ovirtmgmt network, making it VM network and i cant change it afterwards: when i uncheck vm network in web-interface for ovirtmgmt - it couldnt apply changes on host that running engine-vm (ok, thats expected), but if i setup another host with desired network configuration (i.e. ovirtmgmt - not a vm network + separate vlan-tagged networks for vm) it just couldnt migrate or start engine-vm, as it lacks ovirtmgmt bridge interface. So, is there any way to change engine-vm network settings to run it on different bridge, not ovirtmgmt? -- Yuriy Demchenko ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Passing custom script to cloud init using api
On 09/04/2014 11:59 AM, Shanil S wrote: Hi Juan, I tried with the above touch command but it seems the 'iwashere' file isn't created after executing it the above command. Trying to make an example for this I discovered that the custom_script element is currently ignored if the cloud_init element is present. Instead we are taking the content of the first file element from the cloud_init element and appending it to the cloud-init configuration file. I believe that this is a bug, as it breaks backwards compatibility: https://bugzilla.redhat.com/1138564 However, you can exploit this bug to do what you want. This is an example: #!/bin/sh -ex url=https://ovirt.example.com/ovirt-engine/api; user=admin@internal password=** curl \ --insecure \ --request POST \ --header Accept: application/xml \ --header Content-Type: application/xml \ --user ${user}:${password} \ --data ' action vm initialization cloud_init host addressmyhost.mydomain.com/address /host users user user_nameroot/user_name passwordmypassword/password /user /users network_configuration nics nic nameeth0/name boot_protocolstatic/boot_protocol network ip address=192.168.122.31 netmask=255.255.255 gateway=192.168.122.1/ /network on_boottrue/on_boot /nic /nics dns servers host address192.168.122.1/address /host /servers search_domains host addressmydomain.com/address /host /search_domains /dns /network_configuration files file nameignored/name content![CDATA[runcmd: - echo I was here! /iwashere.txt ]]/content typeplaintext/type /file /files /cloud_init custom_script![CDATA[runcmd: - echo I was here! /iwashere.txt ]]/custom_script /initialization /vm /action ' \ ${url}/vms/480225cf-0cbd-4166-b9ca-3857b124618a/start Note that in this example I am including the custom script both in the first file element inside cloud_init and in the custom_script element, this way it will work with the current version of the engine and also if/when we eventually fix the bug. Please remember to update the wiki with your feedback: http://www.ovirt.org/REST-Api#How_can_I_run_a_custom_script_using_cloud-init.3F On Thu, Sep 4, 2014 at 3:02 PM, Juan Hernandez jhern...@redhat.com mailto:jhern...@redhat.com wrote: On 09/04/2014 10:58 AM, Shanil S wrote: Hi Juan, Okay.. Thanks for your update. Also i found some sample cloud init scripts from here https://github.com/number5/cloud-init/tree/master/doc/examples and i tried the following scripts - type: foo/wark filename: bar content: | This is my payload hello - this is also payload - | multi line payload here - type: text/upstart-job filename: my-upstart.conf content: | Test file contents And run the start vm using the above script using cloud init and api, Could you please tell me where i can find the result of the above script ? I think the above script will create a file like my-upstart.conf As I said I am not a cloud-init expert, so I don't really know what is the meaning or effect of this script. But I think that you need to use the runcmd option. For example: action ... initialization cloud-init.../cloud-init custom-script![CDATA[runcmd: - touch /iwashere ]]/custom-script /initialization /action If you use this it should run the touch /iwashere command, and you can check that it did verifying that the /iwashere file exists. As I said I didn't test this, so I may not work. I'd appreciate if you can test it, and once it works update the wiki with the correct instructions: http://www.ovirt.org/REST-Api#How_can_I_run_a_custom_script_using_cloud-init.3F On Thu, Sep 4, 2014 at 1:56 PM, Juan Hernandez jhern...@redhat.com mailto:jhern...@redhat.com mailto:jhern...@redhat.com mailto:jhern...@redhat.com wrote: On 09/04/2014 06:29 AM, Shanil S wrote: Hi Juan, Is there anyways to specify the custom script from a file in the xml ? ie, i have a script in a file called script.sh and i would like to include this script in the xml with the api call. Is there any methods for this ? You can deploy files using cloud-init, and the run them using the custom script. Something like this:
Re: [ovirt-users] Passing custom script to cloud init using api
Am 05.09.2014 10:27, schrieb Juan Hernandez: Trying to make an example for this I discovered that the custom_script element is currently ignored if the cloud_init element is present. Instead we are taking the content of the first file element from the cloud_init element and appending it to the cloud-init configuration file. I believe that this is a bug, as it breaks backwards compatibility: https://bugzilla.redhat.com/1138564 Thanks for the report, I just proposed this as a blocker for the 3.4.4 release as it is a clear regression. Also I rely on this functionality in my 3.3. setup and I want to upgrade to 3.4 so I can't upgrade until this is fixed and released. However, you can exploit this bug to do what you want. This is an example: Well I guess this is a pretty bad idea, because it will just work until the bug is fixed? -- 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
[ovirt-users] 答复: How to backup/restore the rhevm-VM in hosted-engine ?
Hi, Ryan Thanks for replying. I know your meaning and engine-backup command. But I have some questions with your way: “If the hosted-engine needs to be restored for some reason I will just recreate the OS and restore the engine database”. Do you recreate the Guest using original host? And the host needn’t to be fresh installed and just excute hosted-engine �Cdeployed again, we can recreate another OS? 发件人: Groten, Ryan [mailto:ryan.gro...@stantec.com] 发送时间: 2014年9月5日 4:29 收件人: Xie, Chao/谢 超; users@ovirt.org 主题: RE: How to backup/restore the rhevm-VM in hosted-engine ? In 3.4 there is a backup/restore utility called engine-backup. You can use this to backup the RHEV-M database(s) as well as restore. Of course this won’t backup the Guest OS itself. My DR strategy is to simply copy off these engine-backup files to another location. If the hosted-engine needs to be restored for some reason I will just recreate the OS and restore the engine database. Check this link for documentation: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Administration_Guide/chap-Backups.html From: users-boun...@ovirt.orgmailto:users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of xiec.f...@cn.fujitsu.commailto:xiec.f...@cn.fujitsu.com Sent: September-03-14 9:54 PM To: users@ovirt.orgmailto:users@ovirt.org Subject: [ovirt-users] How to backup/restore the rhevm-VM in hosted-engine ? Hi,All As the mauual, I can’t find anyway to backup/restore the rhevm-VM in the hosted-engine. The I just try to backup the storage of rhevm-VM (using cp �Cprf to make a copy of folder). Then I make some change and replace the origin RHEVM-VM content with my backup folder (of course I shutdown the rhevm-vm first). At last the vm can be up,but the status is NOT health but as below: Status up-to-date : False Hostname : 193.168.195.248 Host ID: 1 Engine status : unknown stale-data Score : 2400 Local maintenance : False Host timestamp : 1409743461 Extra metadata (valid at timestamp): metadata_parse_version=1 metadata_feature_version=1 timestamp=1409743461 (Wed Sep 3 07:24:21 2014) host-id=1 score=2400 maintenance=False state=EngineUp = So are there some proper way to backup the rhevm-vm? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Passing custom script to cloud init using api
On 09/05/2014 10:46 AM, Sven Kieske wrote: Am 05.09.2014 10:27, schrieb Juan Hernandez: Trying to make an example for this I discovered that the custom_script element is currently ignored if the cloud_init element is present. Instead we are taking the content of the first file element from the cloud_init element and appending it to the cloud-init configuration file. I believe that this is a bug, as it breaks backwards compatibility: https://bugzilla.redhat.com/1138564 Thanks for the report, I just proposed this as a blocker for the 3.4.4 release as it is a clear regression. Also I rely on this functionality in my 3.3. setup and I want to upgrade to 3.4 so I can't upgrade until this is fixed and released. Agree, I set the bug as a blocker for 3.4.4. However, you can exploit this bug to do what you want. This is an example: Well I guess this is a pretty bad idea, because it will just work until the bug is fixed? No, what I proposed in the example is to put the custom script in both the first file inside clud_init and in the custom_script element. That should work with the current status and also if/when we fix the bug. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Passing custom script to cloud init using api
Hi Juan, Thanks for your reply. I tried with the above but i was unable to find the 'iwashere.txt' after executing the above xml. -- Regards Shanil On Fri, Sep 5, 2014 at 3:00 PM, Juan Hernandez jhern...@redhat.com wrote: On 09/05/2014 10:46 AM, Sven Kieske wrote: Am 05.09.2014 10:27, schrieb Juan Hernandez: Trying to make an example for this I discovered that the custom_script element is currently ignored if the cloud_init element is present. Instead we are taking the content of the first file element from the cloud_init element and appending it to the cloud-init configuration file. I believe that this is a bug, as it breaks backwards compatibility: https://bugzilla.redhat.com/1138564 Thanks for the report, I just proposed this as a blocker for the 3.4.4 release as it is a clear regression. Also I rely on this functionality in my 3.3. setup and I want to upgrade to 3.4 so I can't upgrade until this is fixed and released. Agree, I set the bug as a blocker for 3.4.4. However, you can exploit this bug to do what you want. This is an example: Well I guess this is a pretty bad idea, because it will just work until the bug is fixed? No, what I proposed in the example is to put the custom script in both the first file inside clud_init and in the custom_script element. That should work with the current status and also if/when we fix the bug. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. ___ 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 Guest Agent Service service could not be started
For 3.5 we are providing a prebuild exe for the guest agent installer, so you don't have to mess with compiling in python anymore. You can find the iso with the guest agent and other tools here [1]. I am not 100% sure if it works with 3.4, but I don't see a reason why it shouldn't. [1] http://resources.ovirt.org/pub/ovirt-3.5-snapshot-static/iso/ovirt-guest-tools/ On Thursday, September 04, 2014 08:48:09 PM Richard Long wrote: I am trying to install ovirt-guest-agent in a windows 7 sp1 vm with all current updates applied. This is a new install for of oVirt Engine Version: 3.4.3-1.fc19. Both host are running FC20. Besides searching the list and google I have followed the instructions here: http://www.ovirt.org/OVirt_Guest_Agent_For_Windows. I tried many different things to no avail and this install is on a clean win 7 vm. During the creation of the service I am getting this warning: The following modules appear to be missing ['Carbon', 'Carbon.Files', '_scproxy', 'dummy.Process', 'simplejson', 'test_port ', 'win32com.gen_py']. I do not know if these are needed are not and have not been able to locate them. After copying the files created in the python build ,per the instructions I ran the following : C:\Program Files (x86)\Guest Agents\oVirt Guest Agent OVirtGuestService.exe -instal C:\Program Files (x86)\Guest Agents\oVirt Guest Agent net start OVirtGuestService and get The OVirt Guest Agent Service service is starting. The OVirt Guest Agent Service service could not be started. A service specific error occurred: 1. More help is available by typing NET HELPMSG 3547. Which gives: A service specific error occurred: ***. Looking at the windows system event log gives: The description for Event ID 10 from source OVirtGuestService cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: Traceback (most recent call last): File OVirtGuestService.pyc, line 63, in __init__ File logging\config.pyc, line 70, in fileConfig File logging\config.pyc, line 106, in _create_formatters File ConfigParser.pyc, line 607, in get NoSectionError: No section: 'formatters' And The OVirt Guest Agent Service service terminated with service-specific error Incorrect function.. As I said I have scoured the internet for a resolution for 2 days, one hinted at the serial driver: I device manager the VirtIO-Serial Driver is listed and This device is working properly. I'm not sure what to try now. Regards Richard ___ 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] ovirt35 -deep dive - Get rid of storage pool metadata on master storage domain
BEGIN:VCALENDAR PRODID:Zimbra-Calendar-Provider VERSION:2.0 METHOD:REQUEST BEGIN:VTIMEZONE TZID:Asia/Jerusalem BEGIN:STANDARD DTSTART:16010101T02 TZOFFSETTO:+0200 TZOFFSETFROM:+0300 RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=10;BYDAY=-1SU TZNAME:IST END:STANDARD BEGIN:DAYLIGHT DTSTART:16010101T02 TZOFFSETTO:+0300 TZOFFSETFROM:+0200 RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=-1FR TZNAME:IDT END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT UID:36c2a87a-566f-4d39-92e6-3746b8f79c8a SUMMARY:ovirt35 -deep dive - Get rid of storage pool metadata on master stor age domain ATTENDEE;CN=Federico Simoncelli;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP= TRUE:mailto:fsimo...@redhat.com ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:mailto:devel@o virt.org ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:mailto:users@o virt.org ATTENDEE;CN=Itamar Heim;ROLE=OPT-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE :mailto:ih...@redhat.com ATTENDEE;CN=Allon Mureinik;ROLE=OPT-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=T RUE:mailto:amure...@redhat.com ORGANIZER;CN=Barak Azulay:mailto:bazu...@redhat.com DTSTART;TZID=Asia/Jerusalem:20140908T16 DTEND;TZID=Asia/Jerusalem:20140908T17 STATUS:CONFIRMED CLASS:PUBLIC X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY TRANSP:OPAQUE LAST-MODIFIED:20140905T132759Z DTSTAMP:20140905T132759Z SEQUENCE:2 DESCRIPTION:The following meeting has been modified:\n\nSubject: ovirt35 -de ep dive - Get rid of storage pool metadata on master storage domain \nOrgani zer: Barak Azulay bazu...@redhat.com \n\nTime: Monday\, September 8\, 20 14\, 4:00:00 PM - 5:00:00 PM GMT +02:00 Jerusalem\n \nRequired: fsimonce@red hat.com\; de...@ovirt.org\; users@ovirt.org \nOptional: ih...@redhat.com\; a mure...@redhat.com \n\n*~*~*~*~*~*~*~*~*~*\n\nThis session will present chan ges done as a preparation to move away from SPM state in vdsm\, \nAnd their implications. \n\nGoogle hangout link: https://plus.google.com/events/cbveal c0p24o041p3lonlgfk018 \n\n BEGIN:VALARM ACTION:DISPLAY TRIGGER;RELATED=START:-PT5M DESCRIPTION:Reminder END:VALARM END:VEVENT END:VCALENDAR___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] How to backup/restore the rhevm-VM in hosted-engine ?
In my case I actually have a spare server (physical) that I keep patched and up-to-date, the engine backups are automatically transferred there. If my hosted-engine goes down I restore the engine database on the physical spare and run like that until I can get the hosted-engine back up. I’ve never tried restoring onto a newly deployed hosted-engine VM using hosted-engine --deploy, but I can’t see why that wouldn’t work (maybe someone else knows if this is possible?). I’ll give it a try too. From: Xie, Chao [mailto:xiec.f...@cn.fujitsu.com] Sent: September-05-14 3:23 AM To: Groten, Ryan; users@ovirt.org Subject: 答复: How to backup/restore the rhevm-VM in hosted-engine ? Hi, Ryan Thanks for replying. I know your meaning and engine-backup command. But I have some questions with your way: “If the hosted-engine needs to be restored for some reason I will just recreate the OS and restore the engine database”. Do you recreate the Guest using original host? And the host needn’t to be fresh installed and just excute hosted-engine �Cdeployed again, we can recreate another OS? 发件人: Groten, Ryan [mailto:ryan.gro...@stantec.com] 发送时间: 2014年9月5日 4:29 收件人: Xie, Chao/谢 超; users@ovirt.orgmailto:users@ovirt.org 主题: RE: How to backup/restore the rhevm-VM in hosted-engine ? In 3.4 there is a backup/restore utility called engine-backup. You can use this to backup the RHEV-M database(s) as well as restore. Of course this won’t backup the Guest OS itself. My DR strategy is to simply copy off these engine-backup files to another location. If the hosted-engine needs to be restored for some reason I will just recreate the OS and restore the engine database. Check this link for documentation: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Administration_Guide/chap-Backups.html From: users-boun...@ovirt.orgmailto:users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of xiec.f...@cn.fujitsu.commailto:xiec.f...@cn.fujitsu.com Sent: September-03-14 9:54 PM To: users@ovirt.orgmailto:users@ovirt.org Subject: [ovirt-users] How to backup/restore the rhevm-VM in hosted-engine ? Hi,All As the mauual, I can’t find anyway to backup/restore the rhevm-VM in the hosted-engine. The I just try to backup the storage of rhevm-VM (using cp �Cprf to make a copy of folder). Then I make some change and replace the origin RHEVM-VM content with my backup folder (of course I shutdown the rhevm-vm first). At last the vm can be up,but the status is NOT health but as below: Status up-to-date : False Hostname : 193.168.195.248 Host ID: 1 Engine status : unknown stale-data Score : 2400 Local maintenance : False Host timestamp : 1409743461 Extra metadata (valid at timestamp): metadata_parse_version=1 metadata_feature_version=1 timestamp=1409743461 (Wed Sep 3 07:24:21 2014) host-id=1 score=2400 maintenance=False state=EngineUp = So are there some proper way to backup the rhevm-vm? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] oVirt Live: Cannot run VM
Il 04/09/2014 17:56, Omer Frenkel ha scritto: - Original Message - From: Sandro Bonazzola sbona...@redhat.com To: Sven Kieske s.kie...@mittwald.de, users@ovirt.org Sent: Thursday, September 4, 2014 4:04:26 PM Subject: Re: [ovirt-users] oVirt Live: Cannot run VM Il 04/09/2014 14:32, Sven Kieske ha scritto: Am 04.09.2014 13:54, schrieb Sandro Bonazzola: Hi, I'm testing oVirt Live and I'm getting the engine installed, the storage ready and a VM ready to be started. But when I try to start it I have: Error while executing action: local_vm: Cannot run VM. There is no host that satisfies current scheduling constraints. See below for details: The host local_host did not satisfy internal filter Network because network(s) are missing. I tried creating a brand new vm and that fails to start too: Error while executing action: test: Cannot run VM. There is no host that satisfies current scheduling constraints. See below for details: The host local_host did not satisfy internal filter Network because network(s) are missing. it sounds like the host network is not configured correctly, when you go to the host in the webadmin, select the network subtab you should see there the host nic and the network it is attached to, i assume it will be blank, where the vm nic is assigned to the cluster network, ovirtmgmt (as it should..) try to use setup networks (in that host' network subtab) to fix that (i think its just drag and drop the network on the nic) I'm not really sure to have understood what may be wrong on the live automated setup. I've started a build which is now completed and is archiving artifacts, can you give it a run yourself and see what happens? http://jenkins.ovirt.org/job/ovirt_live_create_iso/474/ It doesn't require any change on your disk, just boot from cdrom / usb pendrive. It will use just ramdisk / existing swap. It's designed to run without any network connectivity, creating the bridge over dummy interface. Attached vdsCaps and logs. Any hint on what's missing? I can't see it in the output, but maybe it's the display network? if you got one, it _must_ have an ip assigned, I opened a bug about this not very informative error message and I guess it's already fixed in master. As far as I can see, only the management network is listed and looks like it's working. ovirtmgmt has 10.0.0.1 as ip address so it has one. Make sure all cluster wide defined networks are available on your host. HTH -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Passing custom script to cloud init using api
On 09/05/2014 12:55 PM, Shanil S wrote: Hi Juan, Thanks for your reply. I tried with the above but i was unable to find the 'iwashere.txt' after executing the above xml. I repeated the test, this time with 3.4, and it worked fine for me. As the formatting of the XML is very important I'd suggest that you take the attached script (instead of copy paste from the mail), change the password and VM id and run it. There are two kind of things that can go wrong here. One is that the engine/VDSM combination may not be generating the right file. To verify this start the VM with the attached script, and once it is started go to the hypervisor where it is running and find the corresponding qemu process: # ps -ef | grep -- '-name myvm' This will give you a very long command line. That command line should include a -drive option containing the full path of the disk image generated by the engine/VDSM, something like this: -drive file=/var/run/vdsm/payload/b5f087d4-022d-4d5f-8a1e-268c562c7bb1.b6fcddff571bb8c2028c61b623d172a6.img To inspect its content make a copy (just in case) and mount it: # cp -drive file=/var/run/vdsm/payload/b5f087d4-022d-4d5f-8a1e-268c562c7bb1.b6fcddff571bb8c2028c61b623d172a6.img /root/my.img # mount -o loop,ro /root/my.img /mnt Inspect the content: # find /mnt /mnt/openstack /mnt/openstack/content /mnt/openstack/content/ /mnt/openstack/latest /mnt/openstack/latest/meta_data.json /mnt/openstack/latest/user_data The content of the custom-script should be at the end of the user_data file, so take a look at that: # cat /mnt/openstack/latest/user_data #cloud-config ssh_pwauth: true disable_root: 0 output: all: ' /var/log/cloud-init-output.log' user: root password: mypassword chpasswd: expire: false runcmd: - 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo ''datasource_list: [NoCloud, ConfigDrive]'' /etc/cloud/cloud.cfg' runcmd: - echo I was here! /iwashere.txt If your custom script isn't there then there is some problem in the engine/VDSM side, otherwise the problem is probably in cloud-init itself, and we will need someone with more knowledge of cloud-init to debug it. Don't forget to umount the file when finished: # umount /mnt On Fri, Sep 5, 2014 at 3:00 PM, Juan Hernandez jhern...@redhat.com mailto:jhern...@redhat.com wrote: On 09/05/2014 10:46 AM, Sven Kieske wrote: Am 05.09.2014 10:27, schrieb Juan Hernandez: Trying to make an example for this I discovered that the custom_script element is currently ignored if the cloud_init element is present. Instead we are taking the content of the first file element from the cloud_init element and appending it to the cloud-init configuration file. I believe that this is a bug, as it breaks backwards compatibility: https://bugzilla.redhat.com/1138564 Thanks for the report, I just proposed this as a blocker for the 3.4.4 release as it is a clear regression. Also I rely on this functionality in my 3.3. setup and I want to upgrade to 3.4 so I can't upgrade until this is fixed and released. Agree, I set the bug as a blocker for 3.4.4. However, you can exploit this bug to do what you want. This is an example: Well I guess this is a pretty bad idea, because it will just work until the bug is fixed? No, what I proposed in the example is to put the custom script in both the first file inside clud_init and in the custom_script element. That should work with the current status and also if/when we fix the bug. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. cloud-init-example.sh Description: application/shellscript ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] OVirt Guest Agent Service service could not be started
Alexander and GrzegorzThanks the new 3.5.2 iso at http://resources.ovirt.org/pub/ovirt-3.5-pre/iso/ovirt-guest-tools/works great, but if, as I had already installed the tools from github, you need to uninstall the old service or revert toa previous snapshot. I'm sure the 3.5 doc will take care of this, perhaps the 3.4 doc could be updated.Regards,Richard ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Issues with Storage domain
Hello everyone, its my first time here; so I hope I am on the right place I had a problem where one of our SysAdmins cloned our NFS production export in order to create a new NFS export, but he didn't changed the FSID, so we ended up with 2 nfs exports using the same ID. I was able to roll back and recover the data, once I had corrected everything I went to the hosts and unpaused the VMs from the CLI (I lost the engine in the process), so now we are back up and running. My problem right now is that oVirt says that our main storage domain is Down and I can't bring it up, so essentially I cannot start any VMs on that domain, which hosts 90% of our production environment; which is also scary because I am not sure how to recover from this error without affecting my production environment. My guess is that at some point the MD5 hash changed, or something in the metadata for that Domain, but I don't know if this is the problem and if recreating the signature is possible without breaking my existing configuration. Is there anyway to mark it as UP from the database or at any other level without breaking (more) the config? Thanks in advance! ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] CPU type is not supported
I tried to follow this guide https://www.berrange.com/posts/2010/02/15/guest-cpu-model-configuration-in-libvirt-with-qemukvm/ I found that the host that has the proble has no pbe|tm|ht||acpi|ds flags in output of cat /proc/cpuinfo In the Ovirt-Engine server I run the below #virsh -r cpu-compare ./cpu-server.xml CPU described in ./cpu-server.xml is incompatible with host CPU #virsh -r cpu-baseline ./cpu-server.xml cpu mode='custom' match='exact' model fallback='allow'cpu64-rhel6/model vendorIntel/vendor feature policy='require' name='xtpr'/ feature policy='require' name='cid'/ feature policy='require' name='est'/ feature policy='require' name='vmx'/ feature policy='require' name='ds_cpl'/ feature policy='require' name='monitor'/ feature policy='require' name='dtes64'/ feature policy='require' name='pbe'/ feature policy='require' name='tm'/ feature policy='require' name='ht'/ feature policy='require' name='ss'/ feature policy='require' name='acpi'/ feature policy='require' name='ds'/ feature policy='require' name='vme'/ /cpu ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Issues with Storage domain
On 09/05/2014 02:36 PM, Carlos A. Diaz wrote: Hello everyone, its my first time here; so I hope I am on the right place I had a problem where one of our SysAdmins cloned our NFS production export in order to create a new NFS export, but he didn't changed the FSID, so we ended up with 2 nfs exports using the same ID. I was able to roll back and recover the data, once I had corrected everything I went to the hosts and unpaused the VMs from the CLI (I lost the engine in the process), so now we are back up and running. My problem right now is that oVirt says that our main storage domain is Down and I can't bring it up, so essentially I cannot start any VMs on that domain, which hosts 90% of our production environment; which is also scary because I am not sure how to recover from this error without affecting my production environment. My guess is that at some point the MD5 hash changed, or something in the metadata for that Domain, but I don't know if this is the problem and if recreating the signature is possible without breaking my existing configuration. Is there anyway to mark it as UP from the database or at any other level without breaking (more) the config? Thanks in advance! Hi Carlos, Can you please attach the vdsm/engine logs to have people investigating what's happened in your environment? Thanks! -- Cheers Douglas ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users