我有 2 个文件需要转换 -
vmdk 改为 qcow2,完成qemu-img convert -f vmdk foo.vmdk -O qcow2 foo.qcow2
vmx 到 xml,尝试处理virt-v2v -i vmx foo.vmx -o disk -os /tmp/test
并从那里获取 xml,但是抛出了以下错误:
virt-v2v: error: output format should be ‘raw’ or ‘qcow2’.
Use the ‘-of <format>’ option to select a different output format for
the converted guest.
Other output formats are not supported at the moment, although might be
considered in future.
If reporting bugs, run virt-v2v with debugging enabled and include the
complete output:
virt-v2v -v -x [...]
有什么指点吗?
答案1
例如,您可以尝试使用 virt-convert
virt-convert foo.vmx --disk-format qcow2 --destination /tmp/test