Backup Ovirt VMs with Python not working
by daniel94.oeller@gmail.com
Hello,
I have set up Ovirt Backup how it is explained in this link:
http://blog.infratic.com/create-ovirtrhevs-vm-backup/
I also have changed the settings on the default.conf.
When I started the backup it works until it begins to create the qcow2 file
It writes:
qemu-img: Could not open '/home/DC01/2019-03-20-20/DC01_Disk1.qcow2': Failed to get shared "write" lock
Is another process using the image?
Have anyone ideas and can help me?
Thanks
5 years, 8 months
Re: Save Virtual Machine in NFS partition
by Strahil
Hi ,
Without the engine - this will be hard.The engine knows the configuration and the disks of each VM so the Hypervisor can start it.
In your case I would focus on the engine as this could be (or not) the easier approach.
Otherwise you need to run qemu-img against each image (just an uuid, no meta or lease ) , find your image and copy it to a standalone KVM.
Once you have the disk, you should try to recall what was the host CPU type (should be the same on the whole cluster) and create a new VM using a COPY of your image .
If KVM manages to start and the machine boots - you are done.
As you can see , fixing the engine might be easier - especially with the help of the community.
Best Regards,
Strahil NikolovOn Mar 20, 2019 18:01, siovelrm(a)gmail.com wrote:
>
> Hi, I had problems with my ovirt-engine and it does not raise. I have some virtual machines in an NFS domain that is located in one of the nodes and I want to get one of the virtual machines. The problem is that what appears is a series of identifiers (ID) and I don't know what the virtual machine is, because by name I can not find it. There are some .meta files where I can see the Description of some Virtual Machines. Please I need help
> _______________________________________________
> Users mailing list -- users(a)ovirt.org
> To unsubscribe send an email to users-leave(a)ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/NXNAZBOSGTI...
5 years, 8 months
Save Virtual Machine in NFS partition
by siovelrm@gmail.com
Hi, I had problems with my ovirt-engine and it does not raise. I have some virtual machines in an NFS domain that is located in one of the nodes and I want to get one of the virtual machines. The problem is that what appears is a series of identifiers (ID) and I don't know what the virtual machine is, because by name I can not find it. There are some .meta files where I can see the Description of some Virtual Machines. Please I need help
5 years, 8 months
4.2.7 Importing qcow2 linux as disk
by Arnaud DEBEC
Hi,
I want to import a Centos 7 qcow2 VM on oVirt 4.2.7.
0. the Centos 7 VM was previously running under libvirt / kvm hypervisor.
1. on Ovirt 4.2.7, I imported the VM qcow2 via Storage > Disks > Upload > Start > etc.
2. I created a VM and attached the disk and specifying the disk is bootable
3. When the machine boots, I get "Warning: /dev/disk/by-uuid/XXXXXXXXXX does not exist"
Before going in deeper detail in the investigation, I would like to make sure if the previous steps make sens for importing a VM under qcow2 format. Most of documentation I found to import libvirt /KVM are done by using the Compute > VM > import > KVM (via Libvirt) which is not what I am looking for.
Thank you.
5 years, 8 months
Fwd: Re: Change cluster cpu type with hosted engine
by Fabrice SOLER
Hi,
As you can read on the screenshot below, my servers have got Nehalem CPU
type, so the hosted engine detect the correct CPU type.
You can read on this link
https://www.intel.com/content/www/us/en/support/articles/000006105/proces...
that Windows 10 x64 does not support Nehalem CPU type. Bill is cutting
the fonctionnality for the old CPU, I will be able to comment but i will
not.
But I need to use Windows 10 x64 with this servers for my students !!!
I am in a dead-end.
Sincerely,
Fabrice SOLER
-------- Message transféré --------
Sujet : Re: [ovirt-users] Change cluster cpu type with hosted engine
Date : Tue, 12 Mar 2019 15:49:14 -0400
De : Fabrice SOLER <fabrice.soler(a)ac-guadeloupe.fr>
Pour : Simone Tiraboschi <stirabos(a)redhat.com>
Le 12/03/2019 à 11:21, Simone Tiraboschi a écrit :
>
>
> On Tue, Mar 12, 2019 at 1:03 PM Fabrice SOLER
> <fabrice.soler(a)ac-guadeloupe.fr
> <mailto:fabrice.soler@ac-guadeloupe.fr>> wrote:
>
> Hello,
>
> I need to create a windows 10 virtual machine but I have an error :
>
> I have a fresh ovirt installation (version 4.2.8) with an hosted
> engine. At the hosted engine installation there was no question
> about the cluster cpu type, it should be great if in the future
> version it could be.
>
>
> It's by design: we simply let the engine choose the best CPU according
> to the characteristics of the first host.
> Can you please detail which CPU are you using on the first host and
> how the engine detected it adding the first host to the first cluster?
Hello,
The first host is a DELL R610 (an old server). At the installation, the
cluster was created with an CPU Architecture x86_64 and CPU type Intel
Nehalem Family.
>
> To change an host to another cluster this host need to be in
> maintenance mode, and the hosted engine will be power off.
>
> I have created another Cluster with an SandyBridge Family CPU
> type, but to move the hosted engine to this new cluster the hosted
> should be power off.
>
> Is there someone who can help ?
>
> Sincerely,
>
> --
> _______________________________________________
> Users mailing list -- users(a)ovirt.org <mailto:users@ovirt.org>
> To unsubscribe send an email to users-leave(a)ovirt.org
> <mailto:users-leave@ovirt.org>
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/KFH3ZLPA7KZ...
>
--
5 years, 8 months
Re: vender_id syntax UserDefinedVMProperties
by Strahil
Can't you make the script check if it windows or Linux and skip if it's Linux?
Best Regards,
Strahil NikolovOn Mar 19, 2019 23:02, Darin Schmidt <darinschmidt(a)gmail.com> wrote:
>
> You also need to have this code hooked in:
> cd /usr/libexec/vdsm/hooks/before_vm_start/
> vi 99_mask_kvm
>
> #!/usr/bin/python2
>
> import hooking
> domxml = hooking.read_domxml()
>
> hyperv = domxml.getElementsByTagName('hyperv')[0]
> smm = domxml.createElement('vendor_id')
> smm.setAttribute('state', 'on')
> smm.setAttribute('value', '1234567890ab')
> hyperv.appendChild(smm)
>
> features = domxml.getElementsByTagName('features')[0]
> kvm = domxml.createElement('kvm')
> hidden = domxml.createElement('hidden')
> hidden.setAttribute('state', 'on')
> kvm.appendChild(hidden)
> features.appendChild(kvm)
>
> hooking.write_domxml(domxml)
>
>
> only problem now is that I cant boot a linux VM with the vendor_is portion there......
>
> On Mon, Mar 18, 2019 at 3:30 PM Darin Schmidt <darinschmidt(a)gmail.com> wrote:
>>
>> Seems that the system has to be running with bios Q35 UEFI. Standard bios does not work. System is operational now.
>>
>> On Mon, Mar 18, 2019, 6:30 AM Darin Schmidt <darinschmidt(a)gmail.com> wrote:
>>>
>>> Still no luck getting the gtx 1080 to enable inside the VM. I see the code is being generated in the xml with the hook. But I still get error code 43. Someone mentioned doing it with eufi bios and that worked for them. So when I get back from work today, perhaps ill give that a try.
>>>
>>> On Mon, Mar 18, 2019, 6:10 AM Darin Schmidt <darinschmidt(a)gmail.com> wrote:
>>>>
>>>> I have gotten the system to see the card, its in device manager. The problem seems to be that I cannot use it in the VM because from what I have been finding out is that it gets and error code 43. Nvidia drivers disable the card if it detects that its being used in a VM. I have found some code to use to hook it into the xml before_vm_starts.
>>>>
>>>> 99_mask_kvm
>>>> #!/usr/bin/python2
>>>>
>>>> import hooking
>>>> domxml = hooking.read_domxml()
>>>>
>>>> hyperv = domxml.getElementsByTagName('hyperv')[0]
>>>> smm = domxml.createElement('vendor_id')
>>>> smm.setAttribute('state', 'on')
>>>> smm.setAttribute('value', '1234567890ab')
>>>> hyperv.appendChild(smm)
>>>>
>>>> features = domxml.getElementsByTagName('features')[0]
>>>> kvm = domxml.createElement('kvm')
>>>> hidden = domxml.createElement('hidden')
>>>> hidden.setAttribute('state', 'on')
>>>> kvm.appendChild(hidden)
>>>> features.appendChild(kvm)
>>>>
>>>> hooking.write_domxml(domxml)
>>>>
>>>>
>>>> I am currently reinstalling the drivers to see if this helps.
>>>>
>>>> kvm off and vender_id is now in the xml code that get generated when the VM is started. Im going off of examples Im finding online. Perhaps I just need to add the 10de to it instead of some generic # others are using.
>>>>
>>>> On Mon, Mar 18, 2019 at 6:02 AM Nisim Simsolo <nsimsolo(a)redhat.com> wrote:
>>>>>
>>>>> Hi
>>>>>
>>>>> Vendor ID of Nvidia is usually 10de.
>>>>> You can locate 'vendor ID:
5 years, 8 months
Daily reboots of Hosted Engine?
by Juhani Rautiainen
Hi!
Hosted engine reboots itself almost daily. Is this by design? If not,
where should I be searching for the clues why it shuts down? Someone
is giving reboot order to HE because /var/log/messages in contains
this:
Mar 19 12:05:00 ovirtmgr qemu-ga: info: guest-shutdown called, mode: powerdown
Mar 19 12:05:00 ovirtmgr systemd: Started Delayed Shutdown Service.
And I'm still running v4.3.0 because upgrade to that was bit painful
and haven't dared to new round.
Thanks,
-Juhani
5 years, 8 months
vender_id syntax UserDefinedVMProperties
by Darin Schmidt
Hello all, im trying to figure out how to configure the custom properties
to enable my NVIDIA card to work in the VM. Its my understanding that the
drives dont work because it detects its in a VM......
Im trying to do something like this:
engine-config -s
UserDefinedVMProperties="kvmhidden=^(true|false)$;{type=vendor_id;state={^(on|off)$;value=^([0-9])$}}"
But thats clearly not working. If I do this:
engine-config -s
UserDefinedVMProperties="kvmhidden=^(true|false)$;vendor_id={state=^(on|off)$;value=^([0-9])$}"
It works but, the options are messed up. Im not sure how to find out the
correct syntax to get this to work. Would appreciate any advice.
5 years, 8 months