Is it possible and how to get ssh access to ESX 3i?
I know it's possible with ESX 3.5 that contain the service console... But what about with ESX 3i?
thanks
There isn't a service console with esx 3i. For any commands you need to use the Remote CLI which needs to be installed in a VM.
There is a windows and linux installable version and VMware also has a preloaded appliance VM which can be used.
Check in the drivers and tools page for VI3 for the download.
http://www.vmware.com/download/vi/drivers_tools.html
Hi Pete,
thanks for your response.
I actually looked into that, installed the VIRemoteCLI and I was less than impressed to find out that the only thing that was really installed was a bunch of crappy perl scripts... (it took me a while to figure out, that those were what was actually installed)
One of the reason why I would like to have ssh access is to be able to do manual copy/backup directly on the host, of the whole vm folder. (like you would do with VMWare Server) I understand there are better options with GUI etc... but I'm investigating transition from VMWare Server to ESX 3i, and there are things I'd like to do the same way. (of course there are no problem to do that with the full ESX 3.5)
Is there an easy way to do that with the CLI ?
Could the Datastore browser be a good place to do that kind of stuff (at least for the copy/backup of files/folders)?
Thanks
I haven't played with the RCL that much. If you are looking for the commands that the service console provided you may be better off looking at moving to ESX 3.5 instead of 3i.
At the bootloader type "shift-O" this will bring up an advanced option and type "shell", continue booting and then you can click "alt+f1" to be able to login. You'll get some of the standard tools (esxcfg-*,etc) you see in 3.0.x / 3.5.x but this option is unsupported by VMware, use at your own risk. I believe this is for further support troubleshoot and is not documented.
Hi aregnier42, page 148 of the ESX Server 3i Configuration Guide and the Basic admin guide states to use the VI client to connect directly to the ESX 3i server to perform the following tasks
- Firewall configurations to enable SSH service - see tab Configurations | Security Profile | Enable server and make sure it's running
- Create user accounts (if you do not want to logon as root") see Tab Re: how to get ssh access to ESX 3i?
- Grant user Shell access (same place)
I have never used 3i but if the doco says so it must be true ![]()
T.
at what time exactly are we supposed to press "shift-O"?
(I'm using the esx3i installable version that I installed on a dell 2950)
The shift-O option was removed and was only part of the beta program. To get access to the console you can type "unsupported" as described in this KB article http://kb.vmware.com/kb/1003677 but this will only give you console access and not SSH. You'll need to look at the RCLI (vifs) or other tools to copy a VM to and from your 3i host.
The CLI includes the commands vmkfstools.pl and vifs.pl which can be used to copy / move files.
When you are doing vmkfstools remotely, how do you find the lcoation of the VM folder you are wanting to work with?
edit the sshd_config file by entering the command:
nano /etc/ssh/sshd_config
Look for the line called "PermitRootLogin no" and change it to "PermitRootLogin yes"
After changing the line you have to restart the sshd server by running the command:
./etc/init.d/sshd restart
Thats it
Good luck
Boot your ESXi server, wait for it to finish loading, and then do the following:
1. ALT-F1 to change to the main console.
2. Type 'unsupported' (you will not be able to see what you're typing).
3. When prompted, enter the root user's password.
4. Type: vi /etc/inetd.conf
5. Find the line that begins with #ssh
6. Cursor over the first 's' and press the 'i' key (for insert mode)
7. Press backspace
8. Press ESC
9. Type SHIFT+colon (
and then 'wq!' to write and exit.
10. Type 'ps | grep inetd' to find the inetd process
11. Send the hangup signal to the process ID output from step 10 with: kill -s HUP <PID>
12. You can now SSH into your ESXi server.
Regards,
Paul
Anyone know if you can still do SSH? I followed the instructions and I get some message like not authorized. I have the very latest greatest ESXi hotfixes. Any thoughts? The whole reason for needing SSH in my situation is that I hear I can use VCB (san) along with vRanger to backup my ESXi boxes.
Does anyone have any ideas/thoughts on SSH and/or backups of ESXi.
Enabled ssh ok but ./etc/init.d/sshd or ./etc.ssh/ssh_config does not exist in 3i. How do you permit ssh logon for either the root or another user?
I ssh is enabled, logon will be permitted. Is it really enabled (SIGHUP to inetd).
Standard disclaimer: enabling ssh is not supported so you take your chances.