vmware2libvirt fails when converting vmx file created under windows
Bug #385410 reported by
Nelson Kwai
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-goodies (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: virt-goodies
in package, virt-goodies 0.3
Ubuntu 9.04, jaunty
Fails with error when converting a vmx file created under windows.
File "usr/bin/
memory = int(memsize) * 1024
"ValueEror: invalid literal for int() with base 10: '512"'
Change line 85 from:
value = pat.sub( '', line)[1:-2]
to:
value = pat.sub( '', line.replace(
Changed in virt-goodies (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
Same output. I hope my comment helps to fix it. The .vmx and .vmdk are under the same directory.
$vmware2libvirt -f ./Windows\ XP\ Professional.vmx > Windows\ XP\ Professional.xml DATA/MV/ c:\MV\Windows XP Professional.vmdk"' does not exist vmware2libvirt" , line 232, in <module> vmware2libvirt" , line 85, in get_memory
WARN: '/media/
Traceback (most recent call last):
File "/usr/bin/
</disk>''' + get_network(vmx, bridge) + '''
File "/usr/bin/
memory = int(memsize) * 1024
ValueError: invalid literal for int() with base 10: '512"'
VMX file:
config.version = "8"
virtualHW.version = "4"
scsi0.present = "TRUE"
memsize = "512"
MemAllowAutoSca leDown = "FALSE"
ide0:0.present = "TRUE"
ide0:0.fileName = "c:\MV\Windows XP Professional.vmdk"
ide1:0.present = "FALSE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
floppy0.present = "FALSE"
ethernet0.present = "TRUE"
ethernet0. connectionType = "nat"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
sound.fileName = "-1"
sound.autodetect = "TRUE"
displayName = "Windows XP Professional"
guestOS = "winxppro"
nvram = "Windows XP Professional.nvram"
[...]
Changing ide0:0.fileName = "c:\MV\Windows XP Professional.vmdk" to ide0:0.fileName = "Windows XP Professional.vmdk" I have the same output:
WARN: '/media/ DATA/MV/ Windows XP Professional.vmdk"' does not exist vmware2libvirt" , line 232, in <module> vmware2libvirt" , line 85, in get_memory
Traceback (most recent call last):
File "/usr/bin/
</disk>''' + get_network(vmx, bridge) + '''
File "/usr/bin/
memory = int(memsize) * 1024
ValueError: invalid literal for int() with base 10: '512"'