|
Hi I've have been trying to get synergy to work between my hosted virtual machine and my second laptop. Basic set up is I have a laptop (main laptop) with and extended screen. I access a Virtual Ubuntu machine via a VMware vsphere client (using vmware tools). I have this virtual machine running on my second monitor connecting to main laptop. I want to share the keyboard that I use on my main laptop that controls my virtual machine from the virtual machine to my second physical laptop. Unfortunately my main works laptop is not on the same network as my second laptop and it can't be put on the same network. However my virtual machine is on the same network and I can ping between the 2 machines hence why I want to go from virtual machine to my second laptop but just can't get past the issue of the mouse being completely uncontrollable on the client machine after it connects Hope this make sense. I guess it could be that synergy can't work with a Virtual Machine running vmware tools. My config is below Thanks in advance section: screens
ubuntu-sh: #Virtual machine
LCC14640: #Second physical laptop
end
section: links
ubuntu-sh:
right = LCC14640
LCC14640:
left = ubuntu-sh
end
section: aliases
ubuntu-sh:
10.64.131.22
LCC14640:
10.64.143.226
end
Update:I have tried to use just IP address but unless i'm missing something on the config this does not work as i keep getting the following error. hesters@ubuntu-sh:~$ synergys -f --config synergy.conf INFO: synergys.cpp,1042: Synergy server 1.3.1 on Linux 2.6.35-29-generic #51-Ubuntu SMP Fri Apr 15 17:13:54 UTC 2011 i686 DEBUG: synergys.cpp,1051: opening configuration "synergy.conf" DEBUG: synergys.cpp,1062: configuration read successfully FATAL: synergys.cpp,655: unknown screen name `ubuntu-sh' It seem it is still wants to see the name of my machines somewere. The config is below. section: screens
10.64.131.22: section: links 10.64.131.22: right = 10.64.143.234 10.64.143.234: left = 10.64.131.22 end I have also tried with the existing config but still little success the client connects to the server but then I get very random stuff happening on the client machine as the mouse sort of leaves the VM machine that the the server but then never moves correctly on the client. Below is an output from the server in debug. INFO: CServer.cpp,1141: screen "ubuntu-sh" shape changed NOTE: CClientListener.cpp,127: accepted client connection DEBUG: CClientProxy1_0.cpp,404: received client "LCC14640" info shape=0,0 1024x768 NOTE: CServer.cpp,278: client "LCC14640" has connected INFO: CServer.cpp,447: switch from "ubuntu-sh" to "LCC14640" at 0,582 INFO: CScreen.cpp,116: leaving screen DEBUG: CXWindowsClipboard.cpp,313: open clipboard 0 DEBUG: CXWindowsClipboard.cpp,493: ICCCM fill clipboard 0 DEBUG: CXWindowsClipboard.cpp,512: available targets: TIMESTAMP (310), TARGETS (308), MULTIPLE (309), STRING (31), UTF8_STRING (246) DEBUG: CXWindowsClipboard.cpp,555: added format 0 for target UTF8_STRING (246) (241 bytes) DEBUG: CXWindowsClipboard.cpp,348: close clipboard 0 INFO: CServer.cpp,1440: screen "ubuntu-sh" updated clipboard 0 DEBUG: CXWindowsClipboard.cpp,313: open clipboard 1 DEBUG: CXWindowsClipboard.cpp,493: ICCCM fill clipboard 1 DEBUG: CXWindowsClipboard.cpp,512: available targets: TIMESTAMP (310), TARGETS (308), MULTIPLE (309), STRING (31), UTF8_STRING (246) DEBUG: CXWindowsClipboard.cpp,555: added format 0 for target UTF8_STRING (246) (241 bytes) DEBUG: CXWindowsClipboard.cpp,348: close clipboard 1 INFO: CServer.cpp,1440: screen "ubuntu-sh" updated clipboard 1 DEBUG: CClientProxy1_0.cpp,278: send clipboard 0 to "LCC14640" size=253 DEBUG: CClientProxy1_0.cpp,278: send clipboard 1 to "LCC14640" size=253 INFO: CServer.cpp,447: switch from "LCC14640" to "ubuntu-sh" at 944,858 INFO: CScreen.cpp,98: entering screen |
|
You can use a VM as a client (in fact, I use this regularly when fixing bugs). Just remember to turn off input auto-capture. In VirtualBox it's a little mouse icon in the bottom right with a green arrow -- but not sure what it is for VMware. Edit: Also you can use a VM as the server (though you'd probably only want to do this for development or testing), again, just so long as you turn auto-capture off. There are some caveats though with VirtualBox (not sure about VMware); if you have two screens on one computer, and the VM window is on the second screen, moving your mouse too far will actually make the cursor go back to the first screen. Sounds confusing, but so long as you keep the VM window on the primary screen and you turn off mouse auto-capture, it should work fine for both client and server. Yes. You can run a VM as a client, but since a VM does not have a physical keyboard to share, I do not believe it will run as a server.
(26 May '11, 10:17)
willichan ♦
Ah, actually it does work as a server if I remember correctly (just make sure auto-capture is off). I will update my question.
(26 May '11, 10:31)
nbolton ♦♦
|
|
Try the following setup: MainLaptop (Synergy Server) ---> via VMware client ---> UbuntuVM
|
|
--> via Synergy client ---> SecondLaptop
Set up Synergy using IP addresses instead of machine names. Since the Ubuntu VM client is running on the Main Laptop (second monitor), it gets focus when Synergy focus is on the Main Laptop, but mouse is in the VM client window. All else runs as a normal setup. |