Veröffentlicht in Übergreiffend, Virtualisierung

FSLogix Windows-Benutzerprofile in virtuellen Umgebungen (Terminalserver)

Installation von FSLogix (https://aka.ms/fslogix-latest) am Terminalserver

Bewährte GPOs für die Konfig von FSLogix

Flip Flop Profile Directory Name = aktiviert / enabled
Volume Type (VHD or VHDX) = aktiviert / VHDX
Delete Local Profile When VHD Should Apply = aktiviert / enabled
Enabled = aktivert / enabled
Is Dynamic (VHD) = aktiviert / enabled
Locked Retry Count = aktiviert / 3
Locked Retry Interval = aktiviert / 7
Prevent Login With Failure = aktiviert / enabled
Prevent Login With Temp Profile = aktiviert / enabled
Profile Type = aktiviert / Normal Profile
Reattach Count = aktiviert / 3
Reattach Intervall = aktiviert / 7
Roam Identity = aktiviert / enabled
Set Temp Folders to Local Path = aktiviert / Redirect TEMP and TMP to local drive
Size in MBs = aktiviert / 30000

Pro Sitzungssammlung sollte man dann die Option des VHD Locations Pfad gesondert festlegen
VHD Locations = aktivert / FQDN Pfad
Wichtig hier! Der/Die Server benötigen auf das Share Schreibrechte

Weiterhin legt die Installation von FSLogix auf dem jeweiligen Server lokale Sicherheitsgruppen an
FSLogix Profile Exclude List – hier hat sich bewährt die Domänen-Admins zu hinterlegen damit diese davon ausgeschlossen sind
FSLogix Profile Include List – hier die Berechtigte AD Gruppe die auf die Collection zugreifen darf eintragen

Quelle: Dokumentation zu FSLogix – FSLogix | Microsoft Learn

Veröffentlicht in Virtualisierung

APC Powerchute Network Shutdown auf vmware ESXi Hosts mit virtuellem Storage

APC bietet zum kontrollierten Herunterfahren von Serversystemen die Software PowerChute Network Shutdown (Reliable network-based shutdown of multiple servers). Diese Software kann auch mit VMware ESX/ESXi genutzt werden.

Weitere Informationen dazu finden Sie in der VMware Knowledge Base:
Installing the APC Powerchute Network Shutdown software on VMware ESXi hosts
Installation  of PowerChute Network Shutdown version  4.1

Weiterhin habe ich dann auf ein shutdown.sh skript gesetzt das wie folgt aussieht, da ich sichergehen muss dass das virtuelle Storage zu letzt heruntergefahren wird.

#!/bin/sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vmware/vma/lib64:/opt/vmware/vma/lib
export LD_LIBRARY_PATH
export PERL_LWP_SSL_VERIFY_HOSTNAME=0
SAVEIFS=$IFS
IFS=$(echo -en „\n\b“)
hosts=(ESXINAME01.DOMAIN.LOCAL ESXINAME02.DOMAIN.LOCAL)
ups_vm=“vSphere Management Assistant“
vcenter_vm=“vCenter“
sds1=“STORAGESERVER1″
sds2=“STORAGESERVER2″
dc1=“DOMAINCONTROLLER1″
dc2=“DOMAINCONTROLLER2″
for host in ${hosts[@]}; do
echo $host
source /opt/vmware/vma/bin/vifptarget -s $host
for i in `vmware-cmd -l –username root –password PASSWRORT`; do
if [ `vmware-cmd $i getstate | egrep -c „on“` -eq 1 ]; then
echo $i
if [ `echo $i | egrep -c $ups_vm` -eq 1 ]; then
echo „Skip shut down of VMA“
elif [ `echo $i | egrep -c $vcenter_vm` -eq 1 ]; then
echo „Skip shut down of vcenter“
elif [ `echo $i | egrep -c $sds1` -eq 1 ]; then
echo „Skip shut down of sds1“
elif [ `echo $i | egrep -c $sds2` -eq 1 ]; then
echo „Skip shut down of sds2“
elif [ `echo $i | egrep -c $dc1` -eq 1 ]; then
echo „Skip shut down of dc1“
elif [ `echo $i | egrep -c $dc2` -eq 1 ]; then
echo „Skip shut down of dc2“
else
echo „Shutting down $i“
vmware-cmd „$i“ stop soft
fi
fi
done
source /opt/vmware/vma/bin/vifptarget -c
done

sleep 20
vmware-cmd „DOMAINCONTROLLER1“ stop soft
sleep 10
vmware-cmd „DOMAINCONTROLLER2“ stop soft
sleep 90
vmware-cmd „STORAGESERVER1“ stop soft
sleep 60
vmware-cmd „STORAGESERVER2“ stop soft
sleep 120

vicfg-hostops –server 10.20.30.100 –username root –password PASSWORT –operation shutdown
vicfg-hostops –server 10.20.30.101 –username root –password PASSWORT –operation shutdown

 

Veröffentlicht in Tools, Virtualisierung

ESXi und USV

1.) connect your upc’s usb cable to the esxi host
2.) in your vi-client add 2 devices to the vm that should control the upc, first an usb controller, secondly an usb device (and choose your upc)
3.) install the upc’s software on you vm, the software should now be able to communicate with your upc
4.) download plink.exe and place it where your upc software can use it
5.) in the same folder create a shutdown_vms.bat with this content: plink.exe -l root -pw youresxirootpassword youresxihostnameorip ./shutdownvms.sh &
6.) in the same folder create a shutdownvms.sh with this content:
#!/bin/sh
vim-cmd vmsvc/getallvms | cut -d‘ ‚ -f1 | tail -n +2 | xargs -r -n1 vim-cmd vmsvc/power.shutdown
sleep 180
vim-cmd vmsvc/getallvms | cut -d‘ ‚ -f1 | tail -n +2 | xargs -r -n1 vim-cmd vmsvc/power.off
./shutdown.sh
7.) tell the upc software to start the shutdown_vms.bat in case of emergency

Quelle: https://communities.vmware.com/message/950650