Red Hat Bugzilla – Bug 1036248
VMware support broken in Fusion 6 and WS 10
Last modified: 2014-01-03 13:15:01 EST
Created attachment 830810 [details]
Patch fixing parts 1 and 2 of described bug
Description of problem: libvirt is broken in VMware Fusion 6 and Workstation 10.
Version-Release number of selected component (if applicable):
Both 1.1.4 and HEAD
Steps to Reproduce:
1. On a Mac, build 1.1.4.
2. virsh -c vmwarefusion:///session
This is sufficient to fail on Fusion 6. I don't have WS 10 to test with me, but if the above fails to error, then:
3. Create and start a domain using VMX hardware version 10.
4. virsh -c again (replace vmwarefusion with the appropriate prefix)
Can't connect to hypervisor (unspecified error). Once that issue is patched (see below), error reported is: Expecting VMX entry 'virtualHW.version' to be 4, 7, 8 or 9 but found 10
virsh connects to the hypervisor; list returns the actual list of domains; other commands work as expected.
There are at least three issues preventing VMware Fusion 6/Workstation 10 from working:
1. The specification of virAsprintf was changed, but vmware_conf.c wasn't.
2. VMware Fusion 6 (and most likely Workstation 10, but I haven't been able to check) outputs version information (as in vmware-vmx -v) to stderr; it used to output to stdout.
3. libvirt's VMX support does not expect hardware version 10 and has a bad problem when encountering it.
I've attached a patch that solves problems #1 and #2, which probably isn't quite the way it should be done but serves to demonstrate the problem. I haven't gotten to #3; hopefully someone more familiar with vmx.c can verify that the obvious fix is sufficient.
Moving to Virtualization Tools instead of Fedora.
Created attachment 844995 [details]
Another ver to fix same issue
Found same issue for my VMware Fusion for OS X.
Got this error:
$ virsh -c vmwarefusion:///session
error: failed to connect to the hypervisor
error: An error occurred, but the cause is unknown
Here what I have:
$ virsh -v
$ /Applications/VMware\ Fusion.app/Contents/Library/vmware-vmx -v
VMware Fusion Information:
VMware Fusion 6.0.2 build-1398658 Release
ProductName: Mac OS X
After investigation found same root cause. Incorrect usage of virAsprintf and that vmware-vmx reports to stderr.
Please post your patch on the upstream list: email@example.com. There it will get reviewed much faster; not to mention that developers prefer 'git am' on email over manual download of a URL from a bugzilla patch.
Will be fixed in the 1.2.1 release:
Author: Denis Kondratenko <firstname.lastname@example.org>
Date: Fri Jan 3 19:57:37 2014 +0200
vmware: os x support is broken
Incorrect usage of virAsprintf. vmware-vmx reports version
information to stderr, at least for OS X 10.9.1.
Signed-off-by: Eric Blake <email@example.com>