vincent@cojot.name
2015-May-21 20:53 UTC
[libvirt-users] libvirt and VMWare Workstation Shared Server mode (of GSX history)
Hi everyone, I searched previous postings and I couldn't find a definitive answer on this.. I run a small lab of RHEL/Centos Based servers on which there's VMWare Workstation running on a non-standard port but still manageable by tools like VMrun (and the Fusion of Workstation GUI, of course). I'm trying to use virsh with this setup and getting the following error from both RHEL6 and RHEL7: $ virsh -c esx://user1@server1:943/?no_verify=1 Enter user1's password for server1: error: internal error Expecting product 'gsx' or 'esx' or 'embeddedEsx' or 'vpx' but found 'ws' error: failed to connect to the hypervisor I tried 'gsx' as a type too but to no avail. The mode that I'm using is called by vmware a 'ws-shared' mode..: $ /usr/bin/vmrun -T ws-shared -h https://localhost:943/sdk -u user1 listRegisteredVM Host password: Total registered VMs: 35 [ha-datacenter/standard] VCS41_node1/VCS4.vmx [ha-datacenter/standard] VCS41_node2/VCS4.vmx [ha-datacenter/standard] VCS41_node3/VCS4.vmx [ha-datacenter/standard] VCS41_node4/VCS4.vmx [ha-datacenter/standard] VCS51_node1/VCS5.vmx [ha-datacenter/standard] VCS51_node2/VCS5.vmx [ha-datacenter/standard] VCS51_node3/VCS5.vmx [ha-datacenter/standard] VCS51_node4/VCS5.vmx [ha-datacenter/standard] DOS622/dos.vmx [ha-datacenter/standard] Solaris8/solaris8.vmx [ha-datacenter/standard] Solaris10/solaris10.vmx [ha-datacenter/standard] VCS60_node1/VCS6.vmx [ha-datacenter/standard] VCS60_node2/VCS6.vmx [ha-datacenter/standard] MacOSX_107/Mac_OS_X_Lion.vmx [...] Would that be something easy to hack/add for the libvirt versions I'm using? (RHEL6/7) even if this means recompiling some src.rpms.. Any suggestions? Thanks, ,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-, Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~ Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,. Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~' http://step.polymtl.ca/~coyote _.,-*~'`^`'~*-,._ coyote@NOSPAM4cojot.name They cannot scare me with their empty spaces Between stars - on stars where no human race is I have it in me so much nearer home To scare myself with my own desert places. - Robert Frost
Matthias Bolte
2015-May-31 08:06 UTC
Re: [libvirt-users] libvirt and VMWare Workstation Shared Server mode (of GSX history)
2015-05-21 22:53 GMT+02:00 <vincent@cojot.name>:> > Hi everyone, > > I searched previous postings and I couldn't find a definitive answer on > this.. > > I run a small lab of RHEL/Centos Based servers on which there's VMWare > Workstation running on a non-standard port but still manageable by tools > like VMrun (and the Fusion of Workstation GUI, of course). > > I'm trying to use virsh with this setup and getting the following error from > both RHEL6 and RHEL7: > > $ virsh -c esx://user1@server1:943/?no_verify=1 > Enter user1's password for server1: > error: internal error Expecting product 'gsx' or 'esx' or 'embeddedEsx' or > 'vpx' but found 'ws' > error: failed to connect to the hypervisor > > I tried 'gsx' as a type too but to no avail. > The mode that I'm using is called by vmware a 'ws-shared' mode..: > > $ /usr/bin/vmrun -T ws-shared -h https://localhost:943/sdk -u user1 > listRegisteredVM > Host password: > Total registered VMs: 35 > [ha-datacenter/standard] VCS41_node1/VCS4.vmx > [ha-datacenter/standard] VCS41_node2/VCS4.vmx > [ha-datacenter/standard] VCS41_node3/VCS4.vmx > [ha-datacenter/standard] VCS41_node4/VCS4.vmx > [ha-datacenter/standard] VCS51_node1/VCS5.vmx > [ha-datacenter/standard] VCS51_node2/VCS5.vmx > [ha-datacenter/standard] VCS51_node3/VCS5.vmx > [ha-datacenter/standard] VCS51_node4/VCS5.vmx > [ha-datacenter/standard] DOS622/dos.vmx > [ha-datacenter/standard] Solaris8/solaris8.vmx > [ha-datacenter/standard] Solaris10/solaris10.vmx > [ha-datacenter/standard] VCS60_node1/VCS6.vmx > [ha-datacenter/standard] VCS60_node2/VCS6.vmx > [ha-datacenter/standard] MacOSX_107/Mac_OS_X_Lion.vmx > [...] > > Would that be something easy to hack/add for the libvirt versions I'm using? > (RHEL6/7) even if this means recompiling some src.rpms.. > > Any suggestions? > > Thanks,Here's a quick hack you can test. It should make the ESX driver treat a VMware Workstation as VMware GSX server. This should work then: virsh -c gsx://user1@server1:943/?no_verify=1 -- Matthias Bolte http://photron.blogspot.com
vincent@cojot.name
2015-May-31 12:55 UTC
Re: [libvirt-users] libvirt and VMWare Workstation Shared Server mode (of GSX history)
On Sun, 31 May 2015, Matthias Bolte wrote:> Here's a quick hack you can test. It should make the ESX driver treat > a VMware Workstation as VMware GSX server. This should work then: > > virsh -c gsx://user1@server1:943/?no_verify=1 > > -- > Matthias Bolte > http://photron.blogspot.comHi Matthias, Thanks for the tip. I'll get the src.rpm and add the patch to see if/how it works. For the record, el6.6 uses this libvirt version: libvirt-0.10.2-46.el6_6.6 (latest). Kind regards, Vincent