mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
@@ -10,7 +10,7 @@ hypervisor type: vmware
|
||||
video:
|
||||
sound:
|
||||
disks:
|
||||
json:{ "file": { "driver": "raw", "offset": 2048, "size": 10240, "file": { "filename": "test.ova" } } } (vmdk) [scsi]
|
||||
json:{ "file": { "driver": "raw", "offset": x, "size": 10240, "file": { "filename": "test.ova" } } } (vmdk) [scsi]
|
||||
removable media:
|
||||
CD-ROM [ide] in slot 0
|
||||
NICs:
|
||||
|
||||
@@ -60,8 +60,11 @@ $VG virt-v2v --debug-gc --quiet \
|
||||
|
||||
# Check the parsed source is what we expect.
|
||||
if qemu_is_version 2 8 ; then
|
||||
# normalize the output
|
||||
sed -i -e "s,\"$d/,\"," $d/source
|
||||
# Normalize the output.
|
||||
# Remove directory prefix.
|
||||
# Exact offset will vary because of tar.
|
||||
sed -i -e "s,\"$d/,\"," \
|
||||
-e "s|\"offset\": [0-9]*,|\"offset\": x,|" $d/source
|
||||
diff -u test-v2v-i-ova-subfolders.expected2 $d/source
|
||||
else
|
||||
# normalize the output
|
||||
|
||||
Reference in New Issue
Block a user