getconf LONG_BIT
VMware ESXi White Boxes
Asus M4A89GTD PRO / VMware ESXi 5.1.0 Build 799733
- AMD Phenom II X6 1075T
- 32 GB Memory (Corsair Vengeance 4 x 8 GB)
- onBoard SATA
- onBoard RTL8111E Network Controller
- 2 x Intel Gigabit CT Desktop Adapter
- 1 x Intel Pro/1000 PT Dual Port Server Adapter
Asus M4A78T-E BIOS 3406 / VMware ESXi 5.0.0 Build 469512
- 1 x Intel Pro/1000 PT Dual Port Server Adapter
- 2 x Intel Gigabit CT Desktop Adapter
- onBoard SATA
- Dawicontrol DC-7210 RAID (2 x 1 TB SATAII Raid 1)
- 16 GB Memory (Corsair Vegeance PC3-12800U)
- AMD Athlon II X4 620 4x 2.60GHz
Asus M2NPV-VM / M2NPV-MX Beta BIOS 5005 / VMware ESXi 5.1.0 Build 799733
- AMD Athlon 5050e Dual Core
- 8 GB Memory
- Dawicontrol DC-7210 RAID (2 x 1 TB SATAII Raid 1)
- onBoard SATA
- onBoard nVidia NForce Network Controller
- Intel Gigabit CT Desktop Adapter
- LINKS:
ESXi 5 Scriptable Power Management Settings Commands
esxcfg-advcfg
# Get the current Active Policy
esxcfg-advcfg –get /Power/CpuPolicy
# Low Power
esxcfg-advcfg -s low /Power/CpuPolicy
# Balanced
esxcfg-advcfg -s dynamic /Power/CpuPolicy
# High Performance
esxcfg-advcfg -s static /Power/CpuPolicy
esxcli
# Get the current Active Policy
esxcli system settings advanced list -o “/Power/CpuPolicy”
# Low Power
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low”
# Balanced
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “dynamic”
# High Performance
esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “Static”
from Linux
ssh root@ESXi-HOSTNAME-OR-IP “esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low””
from Windows
plink root@ESXi-HOSTNAME-OR-IP -l root -pw PASSWORD “esxcli system settings advanced set -o “/Power/CpuPolicy” –string-value “low””
Simple Showcenter 1000 Server with Apache
File and Directory Structure
index.php ./tmp ./media/video ./media/music ./media/picture
index.php
<html> <body> <a href="http://[IP-Address]:[Port]">Refresh</a><br> <?php error_reporting(E_ALL); ini_set('display_errors', TRUE); function get_media($dir) { $files = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (is_dir("$dir/$file")) { $files = array_merge($files, get_media("$dir/$file")); } else { $files[] = ("$dir/$file"); } } } closedir($handle); } asort($files); return $files; } # $current_path = dirname(__FILE__); # $dir = $current_path."/media"; $dir = "media"; $media = get_media($dir); foreach ($media as $value) { $file = md5($value); $handle = fopen("tmp/".$file,"w"); fwrite($handle,"|0|0|[IP-Address]:[Port]/".$value."| + #13#10"); ?> <br> <a href="tmp/<?php echo $file; ?>" vod="playlist"><?php echo $value; ?></a> <?php } ?> </body> </html>
Boot WinPE from Linux PXE Server
The information in this article may be outdated
Get WAIK
Download [[https://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=94bb6e34-d890-4932-81a5-5b50c657de08|Automated Installation Kit (AIK) for Windows Vista SP1 and Windows Server 2008]] and install.
create mkWinPE.cmd and execute
“C:\Program Files\Windows AIK\Tools\x86\imagex.exe” /unmount /commit c:\winpe_x86\mount
if exist c:\WinPE_x86 rd c:\WinPE_x86 /S /Q
md c:\WinPE_x86
md c:\WinPE_x86\ISO
md c:\WinPE_x86\mount
if exist “C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr” copy “C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr” “c:\WinPE_x86\ISO”
if exist “C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr.efi” copy “C:\Program Files\Windows AIK\Tools\PETools\x86\bootmgr.efi” “c:\WinPE_x86\ISO”
if exist “C:\Program Files\Windows AIK\Tools\PETools\x86\boot\etfsboot.com”copy “C:\Program Files\Windows AIK\Tools\PETools\x86\boot\etfsboot.com” “c:\WinPE_x86”
if exist “C:\Program Files\Windows AIK\Tools\PETools\x86\boot\efisys.bin” copy “C:\Program Files\Windows AIK\Tools\PETools\x86\boot\efisys.bin” “c:\WinPE_x86”
if exist “C:\Program Files\Windows AIK\Tools\PETools\x86\boot” xcopy /cherky “C:\Program Files\Windows AIK\Tools\PETools\x86\boot” “c:\WinPE_x86\ISO\boot\”
if exist “C:\Program Files\Windows AIK\Tools\PETools\x86\EFI” xcopy /cherky “C:\Program Files\Windows AIK\Tools\PETools\x86\EFI” “c:\WinPE_x86\ISO\EFI\”
copy “C:\Program Files\Windows AIK\Tools\PETools\x86\winpe.wim” “c:\WinPE_x86\winpe.wim”
copy “C:\Program Files\Windows AIK\Tools\PETools\x86\winpe.wim” “c:\WinPE_x86\ISO\sources\boot.wim”
if exist c:\tftpboot rd c:\tftpboot /S /Q
md c:\tftpboot
md c:\tftpboot\Boot
md c:\tftpboot\Boot\Fonts
bcdedit -createstore c:\tftpboot\Boot\BCD
Bcdedit /store c:\tftpboot\Boot\BCD /create {ramdiskoptions} /d “Ramdisk options”
bcdedit /store c:\tftpboot\Boot\BCD /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store c:\tftpboot\Boot\BCD /set {ramdiskoptions} ramdisksdipath \Boot\boot.sdi
for /f “Tokens=3” %%i in (‘bcdedit /store c:\tftpboot\Boot\BCD /create /d “WinPE 2.0” /application osloader’) do set GUID=%%i
bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% systemroot \Windows
bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% detecthal Yes
bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% winpe Yes
bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% osdevice ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
bcdedit /store c:\tftpboot\Boot\BCD /set %GUID% device ramdisk=[boot]\Boot\winpe.wim,{ramdiskoptions}
bcdedit /store c:\tftpboot\Boot\BCD /create {bootmgr} /d “WinPE 2.0”
bcdedit /store c:\tftpboot\Boot\BCD /set {bootmgr} timeout 1
bcdedit /store c:\tftpboot\Boot\BCD /set {bootmgr} displayorder %GUID%
bcdedit /store c:\tftpboot\Boot\BCD
“C:\Program Files\Windows AIK\Tools\x86\imagex.exe” /mountrw c:\WinPE_x86\winpe.wim 1 c:\WinPE_x86\mount
“c:\Program Files\Windows AIK\Tools\PETools\peimg.exe” /install=WinPE-HTA-Package c:\winpe_x86\mount\Windows
“c:\Program Files\Windows AIK\Tools\PETools\peimg.exe” /install=WinPE-MDAC-Package c:\winpe_x86\mount\Windows
“c:\Program Files\Windows AIK\Tools\PETools\peimg.exe” /install=WinPE-Scripting-Package c:\winpe_x86\mount\Windows
“c:\Program Files\Windows AIK\Tools\PETools\peimg.exe” /install=WinPE-XML-Package c:\winpe_x86\mount\Windows
imagex /unmount c:\WinPE_x86\mount /commit
copy c:\winpe_x86\mount\Windows\Boot\PXE\*.* c:\tftpboot\
copy “c:\Program Files\Windows AIK\Tools\PETools\x86\boot\boot.sdi” c:\tftpboot\
copy c:\winpe_x86\winpe.wim c:\tftpboot\
copy “c:\WinPE_x86\ISO\boot\fonts\wgl4_boot.ttf” c:\tftpboot\Boot\Fonts
DHCP
<code>
apt-get install dhcp3-server
….
</code>
edit /etc/dhcpd/dhcpd.conf
host tftpclient {
hardware ethernet [MAC-Adresse des PXE Clients];
fixed-address [IP-Adresse des PXE Clients];
filename “Boot/pxeboot.n12”;
TFTP
apt-get install tftpd-hpa
edit /etc/default/tftpd-hpa
RUN_DAEMON=”yes”
OPTIONS=”-v -l -m /etc/default/tftpd.rules -s /tftpboot”
create /etc/default/tftpd.rules
rg \\ / # Convert backslashes to slashes
PXE
[[http://syslinux.zytor.com/pxe.php]]
….
/tftpdboot/pxelinux.cfg/default
label winpe2
kernel /Boot/pxeboot.n12