Friday, June 13, 2008

VMware Server Fix: Network Connection in Vista (32-bit)

While installing a VMware Server Vista (32-bit) virtual machine, I found that Vista would not recognize the default Network Adapters that VMware installs. After searching the web for Vista-capable drivers for VMware Accelerated AMD PCNet Adapters, I came across this manual fix.

  • Navigate to Vista's Device Manager and uninstall all defualt VMware network devices
  • Shut down the Vista virtual machine
  • Locate the virutal machine's directory
  • Right-click the .vmx file and choose "Open With" --> Select Notepad
  • Add the following line for all .virtualDev:

ethernetX.virtualDev = "e1000"

(replace X with the number of the .virtualDev)

  • Restart the Vista virutal machine
  • Vista will then detect/install an Intel Pro 1000 network card. These drivers are built in Vista

Thursday, June 12, 2008

Changing IP configurations and enabling SSH in ESX

(Thanks to JohnP for working with me on this problem)

A few simple commands to help troubleshoot ESX connections.
NOTE: The commands listed must be executed as root. This guide assumes you are logged in as root and are locally connected to the ESX console.
To change the IP for "vswif0" change directory to "/usr/sbin/"
  • cd /usr/sbin

Then delete the old vswif0 interface:

  • esxcfg-vswif -d vswif0

Now create a new "vswif0" interface with the correct IP settings:

  • esxcfg-vswif -a vswif0 -p Service\ Console -i x.x.x.x -n x.x.x.x -b x.x.x.x
  • -a (Adds an interface)
  • -p (Sets the portgroup name of the int)
  • -i (IP of the vswif int, ex. 192.168.1.100)
  • -n (Netmask, ex. 255.255.255.0)
  • -b (Broadcast, ex. 192.168.1.255)

Now to verify the changes have been made type:

  • esxcfg-vswif -l

That will list all vswif interfaces and show the configurations.
To change your default gateway (extends beyond just the vswif interface):

  • nano /etc/sysconfig/network

Here you can change the hostname of the server and the default gateway. To change the gateway, just type in the IP of your gateway where it reads "GATEWAY=":

  • GATEWAY=x.x.x.x

Now CTRL-O to write the file then press enter. Then to exit press CTRL-X.
Now that the IP configurations are correct, make sure you can ping the server.

To SSH into your ESX server, you only need to modify one config file. SSH is enabled by default, telnet is not (for security reasons).

  • nano /etc/ssh/sshd_config

Find the line that reads "PermitRootLogin" and change the "no" to "yes".
Now restart the service and try remoting in.

  • service sshd restart

I use Putty to SSH into ESX, which can be downloaded here.