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
<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.or...@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!
>
>
>
_______________________________________________
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/S47FCQWFISVMOG7MZP2IAOUPBI33G2R5/

Reply via email to