Seite 1 von 1

iso-file per api mounten

Verfasst: 21.01.2020, 14:14
von automat
Hallo ,
ich weiss nicht ob dieses Thema schon mal in diesen Forum vor kam , konnte leider nichts dazu finden .

Ich versuche per curl ein ISO File in ein "CD-ROM" zumounten .
Leider funktioniert das nicht , per Library funktioniert das , aber man kann dann nicht von diesem ISO mount booten .

Fehlermeldung ist immer : authentication requires

Zuvor hole ich mir eine Session ID als administrator@vsphere.local .

CURL : curl -k -X PATCH --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'vmware-api-session-id: $SESSION_ID' -d '{
"spec": {
"allow_guest_control": true,
"backing": {
"device_access_type": "EMULATION",
"iso_file": "string",
"type": "ISO_FILE"
},
"start_connected": true
}
}' 'https://192.168.80.3/rest/vcenter/vm/vm-83/hardware/cdrom/16001'

Evtl. hat ja jemand eine Idee .

vShpere 6.5



Gruz
automat


Ps: POST und GET , nur PATCH will nicht .