Hi,

I'm using Ansible ovirt_vm module for automating VM Linux direct boot, but it 
seems kernel/initrd are not working if uploaded to Data Domain. Same problem 
starting VM from Ansible playbook and from OLVM web portal.

I uploaded kernel/initrd (extracted from Oracle Linux 8.6 ISO) on a Data 
Domain, both via webconsole and REST APIs; according to doc 
(http://ovirt.github.io/ovirt-engine-api-model/master/#types/operating_system/attributes/initrd)
 kernel/initrd can be on ISO storage domain, but it's a deprecated OLVM feature.
I have an OLVM cluster (Version 4.4.8.6) with 1 manager, 2 hosts and 2 Fibre 
Channel Data Domains (I always use first one for VMs).

Uploading kernel/initrd on hosts installation works like a charm:
    kernel_path: /tmp/vmlinuz
    initrd_path: /tmp/initrd.img
    kernel_params: "inst.ks.sendmac inst.ks=https://[webserver]ks.cfg ip={{ 
item.static_ip }}::{{ item.gateway }}:{{ vm_netmask }}::{{ item.nic_name }}:off 
net.ifnames=0 {% for ip in dns_server %} nameserver={{ ip }} {% endfor %}"
    kernel_params_persist: false

While using Data Domain is not working (disk ID is needed because of alias 
names not unique):
    kernel_path: iso://69146b00-4779-47b3-95eb-d2c9bb84e588
    initrd_path: iso://6212fb79-e4bb-42ca-ac5c-1da0d0dba7dc
At VM booting I get this error, reporting path which is present just on first 
host (why not on both?):
Exit message: unable to set security context 
'system_u:object_r:virt_content_t:s0' on 
'/rhev/data-center/mnt/blockSD/38730c94-68b1-4fde-8a31-8c3870925996/images/69146b00-4779-47b3-95eb-d2c9bb84e588/9797758e-d038-4a50-a188-e3601ad0e539':
 No such file or directory.

Finally, using same full ISO CD attached to VM:
    kernel_path: iso://b9e8fad1-9884-46a4-8203-9ac73b69ecac
    initrd_path: iso://b9e8fad1-9884-46a4-8203-9ac73b69ecac
I get permission denied (link seems missing, though image is correctly used 
when booting from CD):
Exit message: internal error: process exited while connecting to monitor: 
2022-10-26T11:07:07.779657Z qemu-system-x86_64: -blockdev 
{"driver":"host_device","filename":"/rhev/data-center/mnt/blockSD/38730c94-68b1-4fde-8a31-8c3870925996/images/b9e8fad1-9884-46a4-8203-9ac73b69ecac/48b92374-b4cb-45f6-b388-883abbf691c2","node-name":"libvirt-5-storage","auto-read-only":true,"discard":"unmap"}:
 Could not open 
'/rhev/data-center/mnt/blockSD/38730c94-68b1-4fde-8a31-8c3870925996/images/b9e8fad1-9884-46a4-8203-9ac73b69ecac/48b92374-b4cb-45f6-b388-883abbf691c2':
 Permission denied.

I found similar issue opened
https://lists.ovirt.org/archives/list/users@ovirt.org/thread/IDIDY6ZLZCRMVMQTASSKOL4A7VHDZCVI/
could the problem be ISO path with Data Storage?
https://github.com/oVirt/ovirt-engine/blob/936a8fcd09a4047c03b6cb5bf77709e0cba83537/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java#L229
 
_______________________________________________
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/GHYTWBJMO2MIZX2VYSXT7L2MHFOIM2M3/

Reply via email to