Hide Forgot
Description of problem: Virt-convert does not recognize any disk bus other than SCSI and IDE. In virtconv/ovf.py function _import_file() only checks for ResourceType numbers corresponding to SCSI and IDE, and forces a bus that is neither of them to be IDE in the xml file it generates. Version-Release number of selected component (if applicable): All versions including the latest one, 1.4.0 How reproducible: In the archive in attachment I included: - the patch for SATA buses - an ovf file for testing - the current ovf.py file Steps to Reproduce: 1. apply patch: $ patch virtconv/ovf.py < patch.diff 2. run virt-convert: $ ./virt-convert LinuxDebianJessie.ovf --destination . --dry-run --print-xml Actual results (with current code): [...] <disk type="file" device="disk"> <driver name="qemu" type="raw"/> <source file="test/./LinuxDebianJessie-disk1.raw"/> <target dev="hda" bus="ide"/> </disk> Expected results (with patched code): [...] <disk type="file" device="disk"> <driver name="qemu" type="raw"/> <source file="prova/./LinuxDebianJessie-disk1.raw"/> <target dev="sda" bus="sata"/> </disk>
Created attachment 1204167 [details] patch file to apply to virtconv/ovf.py
Created attachment 1204168 [details] ovf file specifying a SATA bus, for testing
Comment on attachment 1204168 [details] ovf file specifying a SATA bus, for testing Remove .txt ending once downloaded.
Sorry for never responding, but virt-convert has been removed upstream. See discussion here: https://www.redhat.com/archives/virt-tools-list/2019-June/msg00117.html Your best bet is to extract the disk image, and pass it to virt-install or virt-manager import install. virt-convert was never particularly good at anything beyond that anyways Closing as WONTFIX