VMware Communities > Blogs > Christian FERRERO > 2008

Blog Posts

Christian FERRERO : August 2008

Previous Next
0

For resolve this issue, you must apply the last CD UPDATEXPRESS on the server


Sans titre.JPG

0 Comments Permalink
0

These settings can be changed using the Virtual Infrastructure Client or from the physical or a remote console connection (ILO, RSA, DRAC, etc)

From the Virtual Infrastructure Client

1.Highlight the ESX Server host and click on the Configuration tab
2.Click on DNS and Routing
3.Click on Properties...
4.To change the hostname, domain, and DNS servers, click on the DNS Configuration tab and enter the appropriate values
5.To change the default gateway, click on the Routing tab and enter the appropriate values

Note: Hostname and domain changes through the Virtual Infrastructure Client do not take place until the ESX host is rebooted.

From the physical or remote console connection

Edit the /etc/hosts file with an editor and modify it so that it reflects the proper IP address and hostname.

To change the default gateway address and the hostname for the Service Console edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.

After you edit these files, you must reboot the host or restart the network service using the following command:

--root@server root--# service network restart

Note: This command will break any current network connections to the service console.

You can also dynamically change the hostname using the command:

--root@server root--# hostname newname

Note: This command creates a temporary hostname change. This change is lost when the system is rebooted.

To change the DNS server settings, edit the /etc/resolv.conf file, update the nameserver IPs, and search domain if applicable.

Verifying ESX Server host networking configuration on the service console

0 Comments Permalink
0

When I try to start Acrobat Reader 5.0 inside a Windows virtual machine, I get an error message and must restart the guest operating system.

Solution

This problem is resolved as of Acrobat Reader 5.0.5 or later. You can download the current version at no charge from the Adobe Web site at www.adobe.com/support/downloads/main.html.

Product Versions

VMware ESX Server 2.5.x and later
VMware GSX Server 3.x (Linux hosts)
VMware GSX Server 3.x (Windows hosts)
VMware Workstation 5.5.x (Linux hosts)
VMware Workstation 5.5.x (Windows hosts)

0 Comments Permalink
0

  1. Editing the VMX file of the VM
  2. Edit the VMX file of the VM
  3. Change the following line from ethernetN.addressType="vpx" to ethernetN.addressType="static" (N is the number of your ethernet adapter, usually 0)
  4. Next change the line "ethernetN.GeneratedAddress" to "ethernetN.address" and then change the current MAC address to "00:50:56:XX:YY:ZZ" (again N is the number of your ethernet adapter and XX is a valid hex number between 00 and 3F, and YY and ZZ are valid hex numbers between 00 and FF. The value for XX must not be greater than 3F in order to avoid conflict with MAC addresses that are generated by the VMware Workstation and VMware GSX Server products.)
  5. Power your VM back on. Login to the OS, go to the CMD prompt and type "ipconfig /all", your manually assigned MAC address should be listed for the NIC that you changed
Setting the NIC properties in Windows

  1. Edit the Local Area Connection propeties for the NIC you want to change
  2. Click the Configure button next to the NIC name
  3. On the Advanced tab select NetworkAddress
  4. In the Value field enter a new value for the MAC address, enter only numbers or letters, no spaces, dashes or colons. This MAC address can be any valid hex numbers between 00 and FF for any of the octets
  5. Click OK and that's it, the new MAC address takes effect immediately and will override any MAC address set by Vmware

0 Comments Permalink
0

Login to the service console
Type "vmware-cmd -l" to get a list of all VM's and there paths
You can check the VM state by typing "vmware-cmd //server.vmx getstate"
To forcibly stop type vmware-cmd //server.vmx stop hard"
Check VM state again, it should now be off
Type "vmware-cmd //server.vmx start" to power on VM

0 Comments Permalink
0

How to change password on ESX server

Posted by cfo Aug 14, 2008

1. Use Virtual Center to Vmotion all of the VMs to other ESX hosts. (if you have a stand alone host then power down all your VMs)
2. Put the host in Maintenance Mode
3. Reboot your ESX host.
4. Physically go to the ESX console. You will not be able to use a remote console like WinSCP for the next few steps.
5. At the first menu type "a"
6. At the next prompt type "single"
7. After ESX finishes booting you will end up at a # prompt
8. Type "passwd" and enter a new password
9. re-type the new password again when prompted
10. Reboot the ESX server normally. ( just type "reboot" at the # prompt)
11. Don't forget to take the host out of Maintenance Mode in Virtual Center.

0 Comments Permalink
0

Enable SSH on ESX server

Posted by cfo Aug 14, 2008

  1. cd /etc/ssh
  2. vi sshd_config
  3. Aller à la ligne PermitRootLogin no et changer no par yes
  4. Sauvegarder le fichier (:wq !)
  5. Redemarrer le service sshd :service sshd restart

0 Comments Permalink
0

How to change hour on ESX server

Posted by cfo Aug 13, 2008

vi /etc/sysconfig/clock
et renseigner le fichier clock de la façon suivant :
ZONE = "Europe/Paris"
UTC = False
ARC = False
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
date => doit afficher un ... CET...
hwclock affiche l'heure hardware de la machine
hwclock --hctosys => copie l'heure hardware (BIOS) vers l'ESX
hwclock --systohc => copie l'heure ESX vers le BIOS

0 Comments Permalink
2

There might come a time that you might need to rename a vmdk. How would you go about doing this via the service console?
Scenario: You have vm01 located at /vmfs/volumes/VMFS01/vm01 and need to rename it to web01 and move it to /vmfs/volumes/VMFS01/web01
Steps
1. Power off vm01
2. Right-click vm01 in VIC and remove it from inventory
Note: you could also run
vmware-cmd -s unregister /vmfs/volumes/VMFS01/vm01/vm01.vmx
from the service console
3. SSH to your host, logging in with a non-root account
4. SU to root using, su -
5. Enter
mv /vmfs/volumes/VMFS01/vm01 /vmfs/volumes/VMFS01/web01
This will move your vmdk, vmx, vmsd, vmxf, and nvram files to the new directory
6. cd to /vmfs/volumes/VMFS01/web01
7. Enter
vmkfstools -E vm01.vmdk web01.vmdk
-E correctly renames the virutal disk, -renamevirtualdisk could also be used
This command renames the .vmdk, flat.vmdk, and updates the .vmdk pointer
8. Using vi, modify the .vmx and .vmxf, files to show the new VM name
9. Register the new virtual machine using the following command:

vmware-cmd -s register /vmfs/volumes/VMFS01/web01/web01.vmx
You should see register(/vmfs/volumes/VMFS01/web01/web01.vmx) = 1 if the command was correctly entered.
If you logon to VIC, you will now see the updated VM in your inventory.

2 Comments Permalink
0

  • Problème rencontré depuis le 11 aout
  • General System Error occurred: Internal error when powering up a vm on ESX 3.5 Update 2and ESX 3i 3.5 Update 2.
  • From the logs( /var/log/vmware/hostd.log) , Message from : This product has expired.
  • http://kb2.vmware.com/kb/1006716.html

  • The temporary work around to this is to change the date to before 10 august.
  • From VI CLient, click on ESX Host > Configuration > Time Configuration > Properties and change the time to before 10 aug 2008.

  • This should Power the VM on. Or stop NTP

0 Comments Permalink