Infos

Sie befinden sich in den Archiven der Kategorie VMWare.

Calendar
Februar 2012
M D M D F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
272829  

Archiv der Kategorie VMWare

VMWare Reference Card

Auf der folgenden Seite kann man die sehr nützliche VMWare Reference Card herunterladen. Auf dieser Webseite findet man unter anderem auch news, links und guides bez. VMWare.

Link: http://www.vmreference.com/
Link zur aktuellen VMWare Reference Card : http://www.vmreference.com/vi3-card/

Extend the systemdisk of a virtual instance running on a ESX server

1. Install a virtual helper instance from a template.
2. Shut down the server which systemdisk should be extended.
3. Grow the VM disk via vmkfstools.

3.1 Commit or remove all snapshots.
3.2 Connect to the VMHost via putty.
3.3 Go the the directory where the VM file is placed ( /vmfs/volumes/vm_name/vm_name )
3.4 /usr/sbin/vmkfstools -X new_sizeG vm_name.vmdk

4. Add this disk to the helper instance.
5. Use diskpart to extend the partition of this disk.

5.1 diskpart <ENTER>
5.2 list volume <ENTER>
5.3 select volume “ID of volume” <ENTER>
5.4 extend <ENTER>

6. Shutdown the virtual helper instance.
( Because disks can’t be removed from running virtual machines )
7. Start the instance that systemdisk has been extended.
8. Destroy the virtual helper instance.

Patching ESX 3.5 Using esxupdate

Just a quick guide to patching a standalone ESX 3.5 Server using esxupdate from the service console:

Download all available patches to your local computer from the following link:
(ALSO DOWNLOAD THE FILE CALLED contents.zip)

VMWare Patch Download Page
Link : http://support.vmware.com/selfsupport/download/

Decide where to place the patches in a partition with enough space to accommodate the patches on the target ESX Server.  It is not recommended to use the root ( / ) partition at all.  A good strategy is to create a directory called updates under the /var partition. To do so, log onto the service console of the ESX Server as the root user.

Then do:
mkdir /var/updates

Using a utility like Veeam FastSCP or WinSCP, copy all downloaded patches to the newly created directory on the ESX Server. One all the patches have been copied to the ESX Server, log on to the service console of the ESX Server as the root user.

Browse to the directory where the patches reside:
cd /var/updates

Now we need to unzip all the .ZIP files. Now, there should be quite a few files, so it would be painful to unzip them one-by-one, so we are going to use a “for” loop to do the trick for us.

To unzip all the .ZIP files in one go, execute the following command.

MAKE SURE YOU ARE IN THE DIRECTORY WHERE THE ZIP FILES RESIDE! ALSO MAKE SURE TO TYPE THE COMMAND EXACTLY AS BELOW, EVEN WITH THE x_file!

for x_file in *.zip; do unzip $x_file; done

This command will unzip all the zip files, each in its own directory, except for contents.zip, which will be unziped into the directory where the command was executed from.  In this case /var/updates.

Now, in order to perform patching operations on an ESX Server, the server needs to be in “Maintenance Mode”. This means that all Virtual Machines on the server will have to be powered off.

Make sure all Virtual Machines are powered off, then place the ESX Server in Maintenance Mode. You can do this using the Virtual Infrastructure Client or by simply executing the following command from the service console: (Must be run as the root user. Note that as far as I’m aware, this command is not supported by VMware Support but does work perfectly well):

vimsh -n -e /hostsvc/maintenance_mode_enter

Once the ESX Server is in Maintenance Mode, we can start esxupdate and apply the patches:
cd /var/updates
esxupdate -d /var/updates/ scan
esxupdate -d /var/updates/ update

After the patches are applied to the server, the server will reboot. To exit Maintenance mode, run the following command:
vimsh -n -e /hostsvc/maintenance_mode_exit