
Saturday, September 27, 2008
Friday, September 26, 2008
How To Rename The Host and Change IP address
How To Rename The Host and Change IP address
Sometimes host has to be renamed or IP address has to be changed. Please follow these steps.
Change the name under
[root@xxxxxx root]# more /etc/sysconfig/network-scripts/ifcfg-vswif0
DEVICE=vswif0
MACADDR=00:50:56:4f:65:19
PORTGROUP="Service Console"
BOOTPROTO=static
BROADCAST=xx.xx.xx.255
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.0
ONBOOT=yes
[root@xxxx root]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=<Full DNS Name>
GATEWAY=XX.XX.XX.XX
3. [root@xxxxxx root]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
xx.xx.xx.xx %FQDN Name of the host% %NetBIOS name%
Best would be reboot the host.
How to Rename Service Console
I was given task to build the system and then I started building it. It is not that I don’t know how to perform ESX build and believe me each hardware and every environment is different. Person has to go through these experiences as they explore the environment.
I build a new ESX box (DL 380) and then gave everything default. I choose a default VLAN for service console. When machine came back online it is not able to ping the default gateway. I started trouble shooting and starting to figure out how to make sure that if NIC are getting trunked on correct VLAN. To find out this one I used
“esxcfg-nics -l” . This will list us which NIC is up. Now the challenge was if the correct NIC is listening to the “Service Console”. To find out this one I used “esxcfg-vswitch -l” This will show the VLAN ID as well as which NIC is it is configured for.
Here you can see that “vmnic1” is “UP ” but “Service Console ” is configured for “vmnic0” . So here I have to basically swap the cable and bring “vmnic0” or change service console to listen to “vmnic1”. Easier would be swap the cable and then label the “service console” to listen to appropriate VLAN. Right now “Service Console ” is set to VLAN 0. To change the VLAN label use following “ esxcfg-vswitch –v <vlan id> -p “Service Conole” vSwitch0 ” (Command in the fist quotes should be run).
I did that and that fixed the network.
How to fix “Unable to mount root fs ” Error
Mount point has been created and given to me by the NetAPP engineer. I mounted the space on host. After a performed the mount for some reason it started showing up some wired error message like when I ran “vmware-cmd –l ” I get a message vmware auth failed to login. I thought something really goofed up when I created the “VMKernal” to access NFS mount. I decided to reboot the host and see if that clear the error messages but no it has created more problems for me. When I rebooted the host it gave me message
Something really bad happened ☹ . I started hunting on google to got some clue
I decided to change boot parameters. In order to do so let the machine boots up and then when you get this screen
Here you press “E or e ” on Key board and it will take you the screen
Again press “E or e” and then it will give you option where you can edit the field and type the value as suggested in the earlier link.
it says above that i gotta change "LABEL=/" to "/dev/hda0"
Once you are done with editing then reboot the host. But in my case situation still persist. So I decided to do more google and here is the command which work like a butter.
“esxcfg-boot ”
Follow the steps.
1. Boot the system and wait till you see following screen .Select here “Service Console only”
2. It will let you inter through into service console (Everything is done through physical connection like ILO).
3. Once you logged in then run the command in following order
1. esxcfg-boot –p
2. esxcfg-boot -b
3. esxcfg-boot –r
Reboot the host and select “VMware ESX server ” and host should bring of the esx.
Friday, September 19, 2008
Enable ssh on ESX host
Open sshd_config file:
# vi /etc/ssh/sshd_config
Find out line that read as follows:
PermitRootLogin no
Set it as follows:
PermitRootLogin yes
Save and close the file. Restart the sshd:
# /etc/init.d/sshd restart
