Hi

I found an example in RHV documentation

https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.0/html-single/version_3_rest_api_guide/index#sect-Disks_Sub-Collection

Example 15.13. Creating a new direct LUN disk device on a virtual machine

So I tested it

curl --cacert '/etc/pki/ovirt-engine/ca.pem' \
--request POST \
--header "Content-type: application/xml" \
--header "Accept: application/xml" \
--user "admin@internal:xxzzyy" \
--data "
<disk>
    <interface>virtio_scsi</interface>
    <lun_storage>
        <type>fcp</type>
        <logical_units>
          <logical_unit id="3624a937054c59fab85624844000117f0">
          </logical_unit>
        </logical_units>
    </lun_storage>
    <shareable>true</shareable>
</disk>
" \
https://cmanager/ovirt-engine/api/vms/9a779f03-3f0c-442e-83a2-8b9d4b450c76/disks

But got this error

RESTEASY003210: Could not find resource for full path: https://cmanager/ovirt-engine/api/v4/vms/9a779f03-3f0c-442e-83a2-8b9d4b450c76/disks

Any help?

Thanks





On Fri, Jan 12, 2024 at 10:10 AM LS CHENG <lsc.oraes@gmail.com> wrote:
Hi

Anyone know how to add a Direct LUN to a VM o VM's?

I am trying to clone a couple of VM's fibre channel direct lun's with SAN's snapshot technology and present those snapshots to another VM's, I would like to do this with CLI but I cannot find any example for Fibre Channel Disks and attach them to a VM.

Thanks!