VMware Cloud Community
Xitor
Contributor
Contributor
Jump to solution

Setting ESX configuration values from the console

Hi,

Two part question.

1. How can I set the following values from the ESX console:

Security profile : enable SSH

Memory: service console memory size

2. What manual, or online resource has the command line configuration options?

Many thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
Touffi
Enthusiast
Enthusiast
Jump to solution

Hi Xitor,

I enabled SSH for root with this command's:

mv /etc/ssh/sshd_config /etc/ssh/sshd_config.old

sed -e "s/PermitRootLogin no/PermitRootLogin yes/g" /etc/ssh/sshd_config.old > /etc/ssh/sshd_config

rm -f /etc/ssh/sshd_config.old

sshd restart

Regards Touffi

View solution in original post

Reply
0 Kudos
5 Replies
Touffi
Enthusiast
Enthusiast
Jump to solution

Hi Xitor,

I enabled SSH for root with this command's:

mv /etc/ssh/sshd_config /etc/ssh/sshd_config.old

sed -e "s/PermitRootLogin no/PermitRootLogin yes/g" /etc/ssh/sshd_config.old > /etc/ssh/sshd_config

rm -f /etc/ssh/sshd_config.old

sshd restart

Regards Touffi

Reply
0 Kudos
petedr
Virtuoso
Virtuoso
Jump to solution

check this post for changing the service console memory from the command line. It also can be changes from the VI3 client

http://communities.vmware.com/thread/109259

www.thevirtualheadline.com www.liquidwarelabs.com
Reply
0 Kudos
petedr
Virtuoso
Virtuoso
Jump to solution

Steps for changing the memory from the VI3 client.

Configuration settings for the Host, then click Memory, then click on propertie to change the memory

www.thevirtualheadline.com www.liquidwarelabs.com
Reply
0 Kudos
Xitor
Contributor
Contributor
Jump to solution

Thanks for the info on setting this from the client, but I'm looking for the console command to make changes. I'm trying to automate as much of our ESX build as possible, and have scripted most of the ESX set up. I still have quite a few steps that I must do in the client though. I'm resigned that some changes will need to be done in the client, but I'm trying to automated as much as possible, hoping that a lot of what I'm setting can be changed using esxcfg commands.

Reply
0 Kudos
Xitor
Contributor
Contributor
Jump to solution

I did a search on ESXCFG and found a really good resource:

This has all the ESX console commands.

The ones I was looking for:

esxcfg-firewall -e sshClient

esxcfg-firewall -e ntpClient

esxcfg-firewall -e TSM

While the site didn't specifally list all the services, it gave me enough enough to find esxcfg-firewall --services to list all the services I can -e enable or -d disable.

What this doesn't give me the is how to set the service console memory though from the console.

Reply
0 Kudos