我已经使用此命令从 ganeti 导出了一个实例:
gnt-backup export -n
我得到这些文件:
/srv/ganeti/export/win2k8.itlao.local# ls
6dac4bb5-19e9-4917-8233-39cecfbe0e39.disk0_data.snap config.ini
当我尝试使用以下命令为 VMWARE 进行转换时:
./ovfconverter export --external --format=vmdk --output-dir ~/ganeti-instance/ /srv/ganeti/export/win2k8.itlao.local/config.ini
2014-03-19 13:17:33,870: ('No memory information found', 'environment_error')
Traceback (most recent call last):
File "./ovfconverter", line 181, in main
converter.Parse()
File "/usr/local/lib/python2.7/dist-packages/ganeti/ovf.py", line 1759, in Parse
self.results_memory = self._ParseMemory()
File "/usr/local/lib/python2.7/dist-packages/ganeti/ovf.py", line 1613, in _ParseMemory
errors.ECODE_ENVIRON)
OpPrereqError: ('No memory information found', 'environment_error')
我的命令正确吗?我做错了什么吗?
答案1
您应该在 config.ini 文件的后端部分添加与 maxmem 具有相同值的 memory=。