未找到python libvirt ESX驱动程序错误文件.vmdk

未找到python libvirt ESX驱动程序错误文件.vmdk,python,vsphere,libvirt,esxi,Python,Vsphere,Libvirt,Esxi,我正在尝试使用python libvirt 1.2.19在vmware vSphere 6.0上创建一个虚拟机。我正在连接并创建新VM(它出现在vSphere客户端中),但由于以下异常,无法启动它 libvirt: ESX Driver error : internal error: Could not start domain: Traceback (most recent call last): File "/home/three/Downloads/py_scripts/ppp.py",

我正在尝试使用python libvirt 1.2.19在vmware vSphere 6.0上创建一个虚拟机。我正在连接并创建新VM(它出现在vSphere客户端中),但由于以下异常,无法启动它

libvirt: ESX Driver error : internal error: Could not start domain:
Traceback (most recent call last):
File "/home/three/Downloads/py_scripts/ppp.py", line 129, in <module>
    if dom.create() < 0:
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 866, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: internal error: Could not start domain:
FileNotFound - File /vmfs/volumes/55f98248-00c1a741-e340-000c29b1c8a3/vtest/vtest.vmdk was not found
libvirt:ESX驱动程序错误:内部错误:无法启动域:
回溯(最近一次呼叫最后一次):
文件“/home/three/Downloads/py_scripts/ppp.py”,第129行,在
如果dom.create()小于0:
文件“/usr/lib/python2.7/dist packages/libvirt.py”,第866行,在create中
如果ret=-1:raise libvirtError('virDomainCreate()失败',dom=self)
libvirt.libvirtError:内部错误:无法启动域:
未找到文件-未找到文件/vmfs/volumes/55f98248-00c1a741-e340-000c29b1c8a3/vtest/vtest.vmdk
ESXi服务器上此VM的文件夹包含3个文件:vtest.vmx、vtest.vmsd和vtest.log。 以下是我用于创建此域的xml配置:

<domain type='vmware'>
  <name>vtest</name>
  <uuid>cc0a4d56-27bf-82d4-c0a7-ada003b1c8a3</uuid>
  <memory>409600</memory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <disk type='file' device='disk'>
      <source file='[datastore1] vtest/vtest.vmdk'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <source file='[datastore1] isos/lubuntu.iso'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <controller type='scsi' index='0' model='lsilogic'/>
    <controller type='ide' index='0'/>    
    <interface type='bridge'>
      <mac address='00:50:56:91:48:c7'/>
      <source bridge='VM Network'/>
    </interface>
  </devices>
</domain>

vtest
cc0a4d56-27bf-82d4-c0a7-ada003b1c8a3
409600
1.
hvm
破坏
重新启动
破坏
如有任何帮助,我们将不胜感激。

如您所述

ESXi服务器上此VM的文件夹包含3个文件:vtest.vmx、vtest.vmsd和vtest.log。以下是我用于创建此域的xml配置:

<domain type='vmware'>
  <name>vtest</name>
  <uuid>cc0a4d56-27bf-82d4-c0a7-ada003b1c8a3</uuid>
  <memory>409600</memory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <disk type='file' device='disk'>
      <source file='[datastore1] vtest/vtest.vmdk'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <source file='[datastore1] isos/lubuntu.iso'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <controller type='scsi' index='0' model='lsilogic'/>
    <controller type='ide' index='0'/>    
    <interface type='bridge'>
      <mac address='00:50:56:91:48:c7'/>
      <source bridge='VM Network'/>
    </interface>
  </devices>
</domain>
您正在尝试查找根本不存在的
vtest/vtest.vmdk

创建.vmdk文件并重试。

如您所述

ESXi服务器上此VM的文件夹包含3个文件:vtest.vmx、vtest.vmsd和vtest.log。以下是我用于创建此域的xml配置:

<domain type='vmware'>
  <name>vtest</name>
  <uuid>cc0a4d56-27bf-82d4-c0a7-ada003b1c8a3</uuid>
  <memory>409600</memory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <disk type='file' device='disk'>
      <source file='[datastore1] vtest/vtest.vmdk'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <source file='[datastore1] isos/lubuntu.iso'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <controller type='scsi' index='0' model='lsilogic'/>
    <controller type='ide' index='0'/>    
    <interface type='bridge'>
      <mac address='00:50:56:91:48:c7'/>
      <source bridge='VM Network'/>
    </interface>
  </devices>
</domain>
您正在尝试查找根本不存在的
vtest/vtest.vmdk

创建.vmdk文件并重试