Connect to VMware Server Console Over SSH Pripojte sa k VMware Server Console Over SSH
Has this ever happened to you? Má sa to niekedy stalo? I created a new virtual machine running Ubuntu on my VMware server before I left home, but forgot to install the ssh server… so I couldn't get to that machine at all from my remote location. Vytvoril som nový virtuálny stroj beží Ubuntu na mojom serveri VMware, ako som odišla z domu, ale zabudol nainstalovat ssh server ... tak som sa nemohol dostať na ten stroj na všetko z môjho vzdialeného umiestnenia. Rather than driving back home I decided to find a solution. Skôr ako jazdy domov som sa rozhodol nájsť riešenie.
After a bit of research I discovered that the console communicates on port 902, so I added a port-forwarding rule to an ssh tunnel and was able to easily get on the console and install openssh. Po nejakem zkoumani som zistil, že konzola komunikuje na porte 902, takže som pridal port-forwarding pravidlo pre ssh tunel a mohli ľahko dostať na konzolu a nainštalovať openssh.
Port Forwarding with ssh Command Port Forwarding s ssh Command
In order to open a local port below 1024 you will need to run this command as root, or by using sudo. Aby bolo možné otvoriť miestne port pod 1024, budete musieť spustiť tento príkaz ako root, alebo pomocou sudo. This will open the local port 902 on your client machine and then forward the connection to the server specified by hostname.com. Tým sa otvorí miestnej port 902 v klientskom počítači a potom postúpil pripojenie k serveru určenom hostname.com.
sudo ssh -L 902:localhost:902 username@hostname.com sudo ssh-L 902: localhost: 902 username@hostname.com
At this point you can skip to the last section in the article. Na tomto mieste si môžete preskočiť na poslednú časť v tomto článku.
Port Forwarding with SecureCRT Port Forwarding s SecureCRT
If you use SecureCRT under Windows like I do, just open up your session options and find Port Forwarding in settings and click the Add button for a new forwarded connection. Ak použijete SecureCRT na Windows ako ja, len otvoriť svoje relácie a možnosti nájsť Port Forwarding v nastavení a kliknite na tlačidlo Pridať nového odovzdaná pripojenia.

Enter in a name, and use 902 for both of the Port fields as shown below: Zadajte v názve, a používanie 902 pre obidve polia Port, ako je uvedené nižšie:

Logging into the Console Prihlásenie do konzoly
Bring up your locally installed VMware Server Console, and use localhost for the Remote host name. Vychovávať svoje lokálne nainštalované VMware Server Console, a použiť localhost pre názov vzdialeného hostiteľa. You can't use the “Local host” radio button because it will attempt to connect directly to the service… we want to connect over the SSH tunnel. Nemôžete použiť "Local host" prepínač, pretože sa pokúsi pripojiť priamo k službe ... chceme pripojiť cez SSH tunel.

And there you are… logged onto your console. A tam ste ... prihlásený do konzoly.

Notes Notes
- The server console itself should work fairly well, but if you try and get onto the actual console of one of the virtual machines you should make sure you have a really fast connection… otherwise it's slower than dirt. Konzoly servera by mal fungovať sám o sebe celkom dobre, ale ak sa pokúsite a dostať sa na skutočné konzolu jedného z virtuálnych strojov sa mali uistiť, že máte naozaj rýchle pripojenie ... inak je to pomalší ako špina.
- I'd really only use this for powering machines on/off, or changing the settings. Ja by som naozaj len použiť pre napájanie zariadení pre zapnutie / vypnutie, alebo zmena nastavenia.
- You might potentially have to change your local firewall settings to allow the port. Tebe mohol potenciálne zmeniť miestne nastavenia firewallu povoliť port.
- Putty users should be able to easily adapt the settings above to work for them. Tmel užívatelia by mali byť schopní ľahko upraviť nastavenia výšky pracovať pre nich.

Daily Email Updates Denný Svářeč
You can get our how-to articles in your inbox each day for free. Môžete si naše jak-na články vo vašej schránky každý deň zadarmo. Just enter your name and email below: Stačí zadať svoje meno a e-mail nižšie:



To get a decent console connection, use VNC to the VMware Server itself, over SSH forwarded ports. Ak chcete získať slušné konzoly pripojenie, použitie VNC pre VMware Server sám, cez SSH odovzdaná porty. This is not configurable in the GUI in Server (it is in Workstation 6), you have to edit the .vmx file for the relevant VM directly (when the VM is not running). To nie je konfigurovateľných v GUI Server (to je v Workstation 6), je potrebné upraviť. VMX súbor pre danú priamo VM (VM, keď nie je spustený). Just add something like the following: Stačí pridať niečo ako nasledujúce:
RemoteDisplay.vnc.enabled = “true” RemoteDisplay.vnc.enabled = "true"
RemoteDisplay.vnc.port = “5910″ RemoteDisplay.vnc.port = "5910"
RemoteDisplay.vnc.password = “S0mePassw0rd” RemoteDisplay.vnc.password = "S0mePassw0rd"
RemoteDisplay.vnc.keymap = “uk” RemoteDisplay.vnc.keymap = "uk"
Then set an SSH port forwarding from say local port 5910 to port 5910 on the VMware Server itself (not the IP of the VM) and use a VNC client to connect to 127.0.0.1:5910. Potom nastavte SSH port forwarding z hovoria miestne port 5910 na port 5910 na VMware Server, (nie IP VM) a využitie VNC klienta pre pripojenie k 127.0.0.1:5910. I then keep a list of the ports I use for each VM – obviously you must use different ports for different VMs if you use them concurrently. Potom som sa vedie zoznam portov, ktoré použiť pre každú VM - samozrejme musíte používať rôzne porty pre rôzne VM-Ak je používať súčasne.
This will even let you do a bare “metal” build of the VM since you are not using networking in the VM itself. Toto vás dokonca do holé "metal" zostavenie VM, pretože nepoužívate sietí v VM sám.