This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load PowerCli Snapin | |
if ((Get-PSSnapin -Name VMware.Vimautomation.Core -ErrorAction SilentlyContinue) -eq $null ) { | |
Add-PsSnapin VMware.Vimautomation.Core | |
} | |
# vCenter server | |
$VC = "monvcenter.domain.tld" | |
$Username = "domain\monuser" | |
# connecting vCenter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set architecture flags | |
export ARCHFLAGS="-arch x86_64" | |
# Ensure user-installed binaries take precedence | |
export PATH=/usr/local/bin:$PATH | |
# Load .bashrc if it exists | |
test -f ~/.bashrc && source ~/.bashrc | |
# Bash completion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
## Add the following lines to your .bashrc file ## | |
################################################## | |
# change terminal title (usefull for graphical ones) | |
# Usage: | |
# settitle "my beautifull title" | |
settitle(){ | |
echo -n -e "\033]0;$1\007" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lvextend -L8G /dev/mapper/rootvg-opt_lv | |
umount /opt/ | |
e2fsck -f /dev/mapper/rootvg-opt_lv | |
resize2fs /dev/mapper/rootvg-opt_lv | |
mount -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-PSSnapin VMware.VimAutomation.Core | |
$vcenter='127.0.0.1' | |
$cluster='A_cluster_name' | |
$datastorename='A_datastore_name' | |
$nfshost='10.0.0.1' | |
$nfspath='/vol/a_vol_name/a_qtree' | |
Connect-VIServer $vcenter | |
Get-Cluster -Name $cluster | Get-VMHost | New-Datastore -Nfs -Name $datastorename -Path $nfspath -NfsHost $nfshost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load PowerCli Snapin | |
if ((Get-PSSnapin -Name VMware.Vimautomation.Core -ErrorAction SilentlyContinue) -eq $null ) { | |
Add-PsSnapin VMware.Vimautomation.Core | |
} | |
# vCenter server | |
$VC = "vcenter.domain" | |
$Username = "domain\user" | |
# connecting vCenter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"url": "http://an/ics/file/uri.ics", | |
"mailfile": "/tmp/ics-notifier.email.txt", | |
"subject": "Évènement", | |
"tzone": "Europe/Paris", | |
"mails": [ | |
"[email protected]", | |
"[email protected]" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Configure | |
VCIP="10.0.0.1" | |
#### | |
# stop IS service | |
service vmware-inventoryservice stop | |
# remove old DB | |
rm -rf /storage/db/inventoryservice/data | |
# create new DB | |
/usr/lib/vmware-vpx/inventoryservice/scripts/ds-invoke.sh -Dvim.logdir=/var/log/vmware/vpx/inventoryservice com.vmware.vim.dataservices.CreateDb /storage/db/inventoryservice/data changeme default changeme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Windows 8 and Windows 2012 Server or later virtual machines fail upon reboot (2092807) | |
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2092807 | |
Resolution: To _work around_ this issue, update the VM advanced configuration to add monitor_control.enable_softResetClearTSC = TRUE | |
.NOTES | |
Author : Ludovic Rivallain | |
Version : 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am lrivallain on github. | |
* I am lrivallain (https://keybase.io/lrivallain) on keybase. | |
* I have a public key whose fingerprint is CBF2 D0FF 5BDF 1CF8 5094 4C05 C6BE 80D9 44DB 4587 | |
To claim this, I am signing this object: |
OlderNewer