VMware Communities > Blogs

Blog Posts

Christian FERRERO

16 Posts
1 2 Previous Next
1

#esxcfg-vswif -l
#esxcfg-vswif -p Service\ Console -i IP_Address -n IP_Mask
#esxcfg-vswif -p Service\ Console -i x.x.x.x -n x.x.x.x vswif0

Change GW
Edit this file "/etc/sysconfig/network" and change IP GW

1 Comments Permalink
0

Deploy VM on Esxi with SCOM 2007

Posted by cfo Oct 31, 2008

For deploy a virtual machine with scom 2007, you need modify network settings to the .vmx file

  • Remove VM to Virtual Center
  • Edit .vmx file
  • Add line « ethernet0.virtualDev = “e1000" »
  • Add VM to Virtual Center Inventory
- browsing DataStore
- click right to .vmx file
- Add Inventory

  • Add network card
  • Start VM

0 Comments 0 References Permalink
1

ESXi and SSH

Posted by cfo Oct 29, 2008

-Go to the ESXi console and press alt+F1
-Type: unsupported
-Enter the root password
-At the prompt type “vi /etc/inetd.conf”
-Look for the line that starts with “#ssh” (you can search with pressing “/”)
-Remove the “#” (press the “x” if the cursor is on the character)
-Save “/etc/inetd.conf” by typing “:wq!”
-Restart the management service “/sbin/services.sh restart”

1 Comments 0 References Permalink
0

sh-2.05b# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

That's it! You have changed the ESX password! Now it's time to reboot (Optional) the system and allow ESX server to come back up online.

0 Comments Permalink
0

Redhat Entreprise 4 & ESX3.5

Posted by cfo Sep 4, 2008

The driver disk is only supported for Red Hat Enterprise Linux 4.0 Update 2 (kernel version 2.6.9-22.EL). Other versions of the kernel are not yet supported.

http://www.vmware.com/support/esx2/doc/esx2-rhel4-update.html

0 Comments Permalink
0

Enable SSH on ESXi

Posted by cfo Sep 2, 2008

1. On ESXi, press "ALT-F1"
2. Tapez “unsupported” and "Enter"
3. Enter password root
4. Enter:sed -e “s/#ssh/ssh/g” -i /etc/inetd.conf
5. Reboot daemon inetd # kill -HUP `ps | grep inetd | cut -c1-5`

0 Comments Permalink
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
1 2 Previous Next