Upload file to Vsphere datastore with go fails datastore not found

依然范特西╮ 提交于 2020-01-16 00:45:35

问题


I have problems uploading an iso file to a datastore. The server (vcsim) says:

2018/05/17 11:55:54 failed to locate datastore with query params: dcPath=%2FDC0&dsName=LocalDS_0

The information about the datastore is:

govc datastore.upload -dc="DC0" -k=true -ds LocalDS_0 -debug=true /home/jorge/Downloads/ipxe.iso ipxe.iso [17-05-18 13:54:33] Uploading... Error: 404 Not Found govc: 404 Not Found

But when I execute this command it fails:

govc datastore.info -dc="DC0" -k=true LocalDS_0 Name: LocalDS_0 Path: /DC0/datastore/LocalDS_0 Type: local URL: /tmp/govcsim-DC0-LocalDS_0-926708808 Capacity: 0.9 GB Free: 0.5 GB

What am I doing wrong? What are the steps to create a datastore and upload a file to it?

来源:https://stackoverflow.com/questions/50391108/upload-file-to-vsphere-datastore-with-go-fails-datastore-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!