mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-22 22:03:58 +03:00
virt-convert: Fix pointing to relative config file
This commit is contained in:
parent
1f3f3fa4fc
commit
e3de3d8b69
@ -0,0 +1,62 @@
|
||||
<domain type="kvm">
|
||||
<name>fedora</name>
|
||||
<uuid>00000000-1111-2222-3333-444444444444</uuid>
|
||||
<memory>524288</memory>
|
||||
<currentMemory>524288</currentMemory>
|
||||
<vcpu>1</vcpu>
|
||||
<os>
|
||||
<type arch="x86_64">hvm</type>
|
||||
<boot dev="cdrom"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/>
|
||||
<apic/>
|
||||
<pae/>
|
||||
</features>
|
||||
<cpu mode="custom" match="exact">
|
||||
<model>core2duo</model>
|
||||
</cpu>
|
||||
<clock offset="utc">
|
||||
<timer name="rtc" tickpolicy="catchup"/>
|
||||
<timer name="pit" tickpolicy="delay"/>
|
||||
<timer name="hpet" present="no"/>
|
||||
</clock>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="block" device="cdrom">
|
||||
<target dev="hda" bus="ide"/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<controller type="usb" index="0" model="ich9-ehci1"/>
|
||||
<controller type="usb" index="0" model="ich9-uhci1">
|
||||
<master startport="0"/>
|
||||
</controller>
|
||||
<controller type="usb" index="0" model="ich9-uhci2">
|
||||
<master startport="2"/>
|
||||
</controller>
|
||||
<controller type="usb" index="0" model="ich9-uhci3">
|
||||
<master startport="4"/>
|
||||
</controller>
|
||||
<interface type="bridge">
|
||||
<source bridge="eth0"/>
|
||||
<mac address="00:11:22:33:44:55"/>
|
||||
</interface>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<graphics type="spice" port="-1" tlsPort="-1" autoport="yes"/>
|
||||
<console type="pty"/>
|
||||
<channel type="spicevmc">
|
||||
<target type="virtio" name="com.redhat.spice.0"/>
|
||||
</channel>
|
||||
<sound model="ich6"/>
|
||||
<video>
|
||||
<model type="qxl"/>
|
||||
</video>
|
||||
<redirdev bus="usb" type="spicevmc"/>
|
||||
<redirdev bus="usb" type="spicevmc"/>
|
||||
<redirdev bus="usb" type="spicevmc"/>
|
||||
<redirdev bus="usb" type="spicevmc"/>
|
||||
</devices>
|
||||
</domain>
|
28
tests/virtconv-files/vmx_input/test-nodisks.vmx
Normal file
28
tests/virtconv-files/vmx_input/test-nodisks.vmx
Normal file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/vmware
|
||||
config.version = "8"
|
||||
virtualHW.version = "6"
|
||||
scsi0.present = "TRUE"
|
||||
scsi0.virtualDev = "lsilogic"
|
||||
memsize = "512"
|
||||
MemAllowAutoScaleDown = "FALSE"
|
||||
ide1:0.present = "FALSE"
|
||||
ide1:0.autodetect = "TRUE"
|
||||
ide1:0.deviceType = "cdrom-raw"
|
||||
floppy0.startConnected = "FALSE"
|
||||
floppy0.autodetect = "TRUE"
|
||||
ethernet0.present = "TRUE"
|
||||
ethernet0.wakeOnPcktRcv = "FALSE"
|
||||
usb.present = "TRUE"
|
||||
ehci.present = "TRUE"
|
||||
sound.present = "FALSE"
|
||||
sound.fileName = "-1"
|
||||
sound.autodetect = "TRUE"
|
||||
svga.autodetect = "TRUE"
|
||||
pciBridge0.present = "TRUE"
|
||||
displayName = "fedora"
|
||||
guestOS = "rhel5"
|
||||
nvram = "fedora.nvram"
|
||||
deploymentPlatform = "windows"
|
||||
virtualHW.productCompatibility = "hosted"
|
||||
RemoteDisplay.vnc.port = "0"
|
||||
tools.upgrade.policy = "useGlobal"
|
@ -38,6 +38,9 @@ from virtconv import VirtConverter
|
||||
# Minix VMX:
|
||||
# http://download.minix3.org/iso/minix3_1_2a_vmware.zip
|
||||
|
||||
# Simple live test with
|
||||
# ./virt-convert --connect test:///default tests/virtconv-files/vmx_input/test-nodisks.vmx
|
||||
|
||||
|
||||
#####################
|
||||
# Argument handling #
|
||||
|
@ -187,6 +187,7 @@ class VirtConverter(object):
|
||||
if input_name:
|
||||
parser = _find_parser_by_name(input_name)
|
||||
|
||||
input_file = os.path.abspath(input_file)
|
||||
logging.debug("converter __init__ with input=%s parser=%s",
|
||||
input_file, parser)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user