how to attach ISO to VM use SDK

ŽËÓÊŒþʹÓà MIME žñÊœ¡£ÓÉÓÚÓÊŒþÔĶÁ³ÌÐò²»ÄÜʶ±ð ŽËžñÊœ£¬ÒòŽË£¬¿ÉÄÜÎÞ·šÊ¶±ðžÃÓÊŒþµÄ·Ö²¿»ò²¿·ÖÄÚÈÝ¡£
--B_3497283992_2061846 Content-type: text/plain; charset="GB2312" Content-transfer-encoding: quoted-printable Hi,all: I want to attach ISO to vm use sdk, I tried use this command curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml= " -u admin@internal:jhadmin --cacert /tmp/ca.crt -d "<cdrom><file id=3D'vmdispatch.iso'/></cdrom>" https://rhel65-1.jhinno.com:443/api/vms/a0b7ad46-0889-4a79-ae0d-d5ea69655f6= 0 /cdroms , but I can=A1=AFt view the iso in the vm. --B_3497283992_2061846 Content-type: text/html; charset="GB2312" Content-transfer-encoding: quoted-printable <html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s= pace; -webkit-line-break: after-white-space; font-size: 14px; font-family: =CB= =CE=CC=E5, sans-serif;"><p style=3D"margin: 0px 0px 0px 122.4px; text-indent: -122.4= px; font-size: 12px; font-family: Courier;">Hi,all:</p><p style=3D"margin: 0px= 0px 0px 122.4px; text-indent: -122.4px; font-size: 12px; font-family: Couri= er;"> I want to attach ISO to vm use sdk,</p><p style=3D"margin: = 0px 0px 0px 122.4px; text-indent: -122.4px; font-size: 12px; font-family: Co= urier;">I tried use this command</p><p style=3D"margin: 0px 0px 0px 122.4px; t= ext-indent: -122.4px; font-size: 12px; font-family: Courier;">curl -X POST -= H "Accept: application/xml" -H "Content-Type: application/xml" -u admin@inte= rnal:jhadmin --cacert /tmp/ca.crt -d "<cdrom><file id=3D'vmdispatch.i= so'/></cdrom>" <a href=3D"https://rhel65-1.jhinno.com:443/api/vms/a0b= 7ad46-0889-4a79-ae0d-d5ea69655f60/cdroms">https://rhel65-1.jhinno.com:443/ap= i/vms/a0b7ad46-0889-4a79-ae0d-d5ea69655f60/cdroms</a></p><p style=3D"margin: 0= px 0px 0px 122.4px; text-indent: -122.4px; font-size: 12px; font-family: Cou= rier;">, but I can’t view the iso in the vm.</p></body></html> --B_3497283992_2061846--
participants (1)
-
Leaboy