<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux 360° &#124; Italia &#187; esxi</title>
	<atom:link href="http://www.linux360.it/tag/esxi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux360.it</link>
	<description>Notizie, guide e tutorial per il mondo Linux a 360°</description>
	<lastBuildDate>Tue, 16 Dec 2014 14:03:33 +0000</lastBuildDate>
	<language>it-IT</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Comandi utili VMware Esxi</title>
		<link>http://www.linux360.it/2014/01/24/comandi-utili-vmware-esxi/</link>
		<comments>http://www.linux360.it/2014/01/24/comandi-utili-vmware-esxi/#comments</comments>
		<pubDate>Fri, 24 Jan 2014 16:17:52 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[esxi]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=447</guid>
		<description><![CDATA[<p>Questi comandi eseguiti da shell possono salvarti la vita&#8230; Rebooting a running VM Guest 1. ssh into ESXi host 2. List all VMs vim-cmd vmsvc/getallvms 3. Get the power state of the VM in question - vim-cmd vmsvc/power.getstate &#60;vm-id#&#62; vim-cmd vmsvc/power.getstate 128 4. VMware Tools Soft Reboot - vim-cmd vmsvc/power.reboot &#60;vm-id#&#62; vim-cmd vmsvc/power.reboot 128 Hard ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/01/24/comandi-utili-vmware-esxi/">Comandi utili VMware Esxi</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Questi comandi eseguiti da shell possono salvarti la vita&#8230; <img src="http://www.linux360.it/wp-includes/images/smilies/icon_biggrin.gif" alt=":-D" class="wp-smiley" /> </p>
<pre>Rebooting a running VM Guest

1. ssh into ESXi host
2. List all VMs
vim-cmd vmsvc/getallvms
3. Get the power state of the VM in question - vim-cmd vmsvc/power.getstate &lt;vm-id#&gt;
vim-cmd vmsvc/power.getstate 128
4. VMware Tools Soft Reboot - vim-cmd vmsvc/power.reboot &lt;vm-id#&gt;
vim-cmd vmsvc/power.reboot 128

Hard Reboot that VM (this is only if you can not do it through vmtools) - vim-cmd vmsvc/power.reset &lt;vm-id#&gt;
vim-cmd vmsvc/power.reset 128

Get All vmsvc commands
vim-cmd vmsvc

Check guest VM IP
vim-cmd vmsvc/get.summary 128
<a href="http://robertbchase.blogspot.com/2008/12/vmware-esxi-ssh-cli-commands.html" target="_blank">http://robertbchase.blogspot.<wbr />com/2008/12/vmware-esxi-ssh-<wbr />cli-commands.html</a>

Set Jumbo Frames on Switch0
1. List Switchs and MTU Settings
esxcfg-vswitch -l
2. Set MTU to 9000 for Switch0
esxcfg-vswitch -m 9000 vSwitch0
3. Verify
esxcfg-vswitch -l
esxcfg-nics -l

Migrate script that will convert vmdks to thin provision
<a href="http://www.bryanpopham.com/tutorials/migrate.sh.ESXi.txt" target="_blank">http://www.bryanpopham.com/<wbr />tutorials/migrate.sh.ESXi.txt</a>

Install Drivers ESXi SSH
#1. List Drivers
esxcli software vib list
#2 Install Driver that SCP to /tmp
esxcli software vib install -d /tmp/LSI_2.27.08.036vm50-<wbr />offline_bundle-637081.zip
<a href="http://www.tinkertry.com/lsi92658iesxi5/" target="_blank">www.tinkertry.com/<wbr />lsi92658iesxi5/</a>

RDM Sata Drives
1. Find you disk to RDM in the /dev/disks folder
ls -lah /dev/disks/

2. Make a RDM vmdk in a local datastore
vmkfstools -z /vmfs/devices/disks/naa.<wbr />4xxxc6xxxxxxxxcf /vmfs/volumes/(your localDS name)/RDM.naa.<wbr />4xxxc6xxxxxxxxcf.vmdk

3. Add RDM.naa.4xxxc6xxxxxxxxcf.vmdk to your VM in vSphere Client
<a href="http://blog.davidwarburton.net/2010/10/25/rdm-mapping-of-local-sata-storage-for-esxi/" target="_blank">http://blog.davidwarburton.<wbr />net/2010/10/25/rdm-mapping-of-<wbr />local-sata-storage-for-esxi/</a>

Backup Config
1. Flush conf changes
vim-cmd hostsvc/firmware/sync_config

2. Make backup file &amp; download in browser naming it configBundle.tgz
vim-cmd hostsvc/firmware/backup_config
Alternative method scp the file from /tmp/scratch/downloads/

Restore Config
1. scp configBundle.tgz to /tmp

2. Set server to maintenance mode
vim-cmd hostsvc/maintenance_mode_enter

3. Restore conf that you scp to /tmp
vim-cmd hostsvc/firmware/restore_<wbr />config /tmp/configBundle.tgz</pre>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/01/24/comandi-utili-vmware-esxi/">Comandi utili VMware Esxi</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/01/24/comandi-utili-vmware-esxi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
