Posts Tagged ‘esxi’

Upgrading ESXi 4.0 to 4.1 via CLI

Download 4.0 to 4.1 zip file from VMware Updates
vim-cmd /hostsvc/maintenance_mode_enter
vim-cmd /hostsvc/runtimeinfo | grep inMaintenanceMode
vihostupdate --server IP_ADDRESS --query
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --list
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --install
vihostupdate --server IP_ADDRESS --query
reboot
vim-cmd /hostsvc/runtimeinfo | grep inMaintenanceMode
vim-cmd /hostsvc/maintenance_mode_exit
Posted: April 4th, 2011
Categories: esx-esxi, virtualization, vmware
Tags: ,
Comments: No Comments.

Cisco IOS Trunk Configuration for VMware ESXi

interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,11,12,13
switchport mode trunk
switchport nonegotiate
spanning-tree portfast trunk

From the ESXi side…

esxcfg-vswitch -l
esxcfg-vswitch --add-pg="Virtual Machine Network VLAN12" vSwitch1
esxcfg-vswitch --pg="Virtual Machine Network VLAN12" --vlan="12" vSwitch1
Posted: March 28th, 2011
Categories: cisco, networking
Tags: , , , ,
Comments: No Comments.

Updating ESXi with the vSphere CLI

Performed from a Linux host.

  1. Download patch from http://vmware.com/patch/download on a webserver
  2. Extract the contents of the patch
  3. Check the bundles currently applied to the host
  4. List the bundles available from the patch
  5. Install the patch to include all the bundles or for a specific bundle use -B
  6. Verify the bundles have been applied to the host
vihostupdate --server IP_ADDRESS --query
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --list
vihostupdate --server IP_ADDRESS --metadata=http://WEB_SERVER/bundle/metadata.zip --install
vihostupdate --server IP_ADDRESS --query
Posted: March 25th, 2011
Categories: esx-esxi, vmware, vsphere
Tags: ,
Comments: No Comments.

VMware ESXi Virtual Machine Datastore Migration via Command Line

* Assumes the source and target datastores are present.
* Assumes VMs are powered off.

vim-cmd vmsvc/getallvms | grep -i <vm>
vim-cmd vmsvc/unregister <vmid>
mv /vmfs/volumes/<datastore-source>/<vm-folder> /vmfs/volumes/<datastore-target>/.
vim-cmd solo/registervm /vmfs/vol/<datastore-target>/<vm-folder>/<vm>.vmx # shows vmid upon success
vim-cmd vmsvc/power.on <vmid>
vim-cmd vmsvc/message <vmid>
vim-cmd vmsvc/message <vmid> 0 1
vim-cmd vmsvc/power.getstate <vmid>
Posted: March 9th, 2011
Categories: esx-esxi, virtualization, vmware
Tags: , , , , ,
Comments: No Comments.

Electronic Fax to Email with VoIP

My fax to email solution achieves the following:
Receive faxes using a traditional phone number using VoIP
Email the received faxes in PDF format to any email address

Software used:

  • VMware ESXi
  • trixbox v2.6.2.3

Services:

  • BroadVoice SIP for VoIP

After trixbox is installed. Follow the guide below to setup the fax server.

Login in as maint/password.
1. PBX
2. PBX Settings
3. General Settings
4. General Settings/Fax Machine
Extension of fax machine for receiving faxes: system
Email address to have faxes emailed to: email@domain.com
Email address that faxes appear to come from: another_email@domain.com
5. Submit Changes
6. Inbound Routes
7. Inbound Routes/Add Incoming Route
DID Number:
8. Inbound Routes/Fax Handling
Fax Extension: system
Fax Email: fax-group@domain.com
Fax Detection Type: NVFax
Pause After Answer: 10
9. Inbound Routes/Set Destination
Terminate Call: Hangup
10. Submit
11. Add the following two lines to /etc/asterisk/extensions_custom.conf
[ext-did-custom]
exten => fax,1,Goto(ext-fax,in_fax,1)
12. Apply Configuration Changes

Posted: October 15th, 2010
Categories: Uncategorized
Tags: , , , , ,
Comments: No Comments.