This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vmware:vsan:vsanlab [2020/02/03 08:51] – [vSAN Lab HW & SW] mschubi | vmware:vsan:vsanlab [2020/12/17 20:22] (current) – [PowerShell zur Vorbereitung von ESXi Lab] mschubi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== vSAN Lab HW & SW ====== | ====== vSAN Lab HW & SW ====== | ||
| + | ===== Neuzugang ESXi ARM Fling ===== | ||
| + | Endlich ist mein Raspi 4 mit 8GB RAM und einem 4" Display fertig und bootet mit dem ESXi für ARM Fling. | ||
| + | Zwei schnelle Samsung USB Sticks (128GB & 256GB) dienen als SSD Ersatz. Dank Advanced Parameter kann man diese auch für vSAN verwenden. | ||
| + | |||
| + | Somit habe ich jetzt eine Witness für den NUC Cluster :-) | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | / | ||
| + | chkconfig usbarbitrator off | ||
| + | |||
| + | esxcli system settings advanced set -o / | ||
| + | esxcli system settings advanced set -o / | ||
| + | |||
| + | [root@witness-arm: | ||
| + | [ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | |||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | |||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | |||
| + | ] | ||
| + | |||
| + | [root@witness-arm: | ||
| + | Name Device | ||
| + | -------------- | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | VMW_SATP_LOCAL | ||
| + | |||
| + | |||
| + | [root@witness-arm: | ||
| + | [ | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | |||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | |||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | |||
| + | ] | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== PowerShell zur Vorbereitung von ESXi Lab ==== | ||
| + | |||
| + | Einige Einstellungen zur Vorbereitung des Labs | ||
| + | <code powershell> | ||
| + | Connect-VIServer esx-arm-2.schubi.local | ||
| + | |||
| + | Set-VMHostAdvancedConfiguration -Name " | ||
| + | Set-VMHostAdvancedConfiguration -Name " | ||
| + | |||
| + | Set-VMHostAdvancedConfiguration -Name " | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ===== NUC Lab ===== | ||
| {{: | {{: | ||
| Line 8: | Line 137: | ||
| Bei mir hat es nur für 1GB gereicht... | Bei mir hat es nur für 1GB gereicht... | ||
| - | Um in der gesamten Infrastruktur DNS, DHCP u.s.w. zu haben, wird ein RaspberryPi eingesetzt. Der ist gleichzeitig WLAN Accesspoint, | + | Um in der gesamten Infrastruktur DNS, DHCP u.s.w. zu haben, wird ein RaspberryPi |
| aus dem Internet laden kann. | aus dem Internet laden kann. | ||
| Line 37: | Line 166: | ||
| Dieser sollte neben Ethernet auch gleichzeitig ein WLAN Access Point und ein WLAN Client sein. | Dieser sollte neben Ethernet auch gleichzeitig ein WLAN Access Point und ein WLAN Client sein. | ||
| Hier eine Config von mir. eth0 und wlan0 sind die DNS/DHCP Netze. wlan0 ist Accesspoint. wlan1 (Edimax mini) ist WLAN Client. | Hier eine Config von mir. eth0 und wlan0 sind die DNS/DHCP Netze. wlan0 ist Accesspoint. wlan1 (Edimax mini) ist WLAN Client. | ||
| + | |||
| + | Hostname und ssh Key ändern | ||
| + | <code bash> | ||
| + | raspi-config | ||
| + | reboot | ||
| + | #/etc/hosts | ||
| + | 127.0.0.1 | ||
| + | 192.168.10.1 | ||
| + | # | ||
| + | rm / | ||
| + | dpkg-reconfigure openssh-server | ||
| + | service ssh restart | ||
| + | #/ | ||
| + | PermitRootLogin yes | ||
| + | PasswordAuthentication yes | ||
| + | # | ||
| + | touch /boot/ssh | ||
| + | </ | ||
| Wir brauchen einige Pakete.... | Wir brauchen einige Pakete.... | ||
| Line 111: | Line 258: | ||
| </ | </ | ||
| + | Falls hostapd.service nicht startet (// | ||
| + | |||
| + | <code bash> | ||
| + | systemctl unmask hostapd | ||
| + | systemctl enable hostapd | ||
| + | systemctl start hostapd | ||
| + | </ | ||
| In der bash Shell wird die Bridge gebaut | In der bash Shell wird die Bridge gebaut | ||
| Line 144: | Line 298: | ||
| wpa-ssid " | wpa-ssid " | ||
| wpa-psk " | wpa-psk " | ||
| + | wireless-power off | ||
| + | ###check mit iw wlan1 get power_save | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | post-up iw dev wlan0 set power_save off | ||
| + | post-up iw dev wlan1 set power_save off | ||
| </ | </ | ||
| Line 149: | Line 310: | ||
| Durch das // | Durch das // | ||
| <code bash> | <code bash> | ||
| + | sysctl -w net.ipv4.ip_forward=1 | ||
| + | sysctl -w net.ipv4.conf.all.rp_filter=0 | ||
| + | sysctl -p | ||
| + | |||
| iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE | iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE | ||
| - | iptables -t nat -L | + | iptables -t nat -L -v -n |
| + | iptables-save > / | ||
| </ | </ | ||
| Line 353: | Line 519: | ||
| hwclock -w | hwclock -w | ||
| </ | </ | ||
| + | |||
| + | ===== Lighttpd als Info Server ===== | ||
| + | |||
| + | Nur für die Lab Umgebung eine kurze Info Seite. | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | apt-get install lighttpd | ||
| + | vi / | ||
| + | -> | ||
| + | server.modules = ( | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ) | ||
| + | |||
| + | server.document-root | ||
| + | server.upload-dirs | ||
| + | server.errorlog | ||
| + | server.pid-file | ||
| + | server.username | ||
| + | server.groupname | ||
| + | server.port | ||
| + | .... | ||
| + | |||
| + | fastcgi.server = ( " | ||
| + | " | ||
| + | " | ||
| + | ))) | ||
| + | |||
| + | <- | ||
| + | service lightttpd start | ||
| + | service lighttpd status | ||
| + | |||
| + | apt-get install php php-cgi | ||
| + | </ | ||
| + | |||
| + | ===== Samba einrichten ===== | ||
| + | |||
| + | <code bash> | ||
| + | apt-get install samba | ||
| + | mv / | ||
| + | vi / | ||
| + | |||
| + | -> | ||
| + | |||
| + | [global] | ||
| + | workgroup = workgroup | ||
| + | security = user | ||
| + | map to guest = Bad Password | ||
| + | |||
| + | [homes] | ||
| + | comment = Home Directories | ||
| + | browsable = no | ||
| + | read only = no | ||
| + | create mode = 0750 | ||
| + | |||
| + | [public] | ||
| + | path = / | ||
| + | public = yes | ||
| + | writable = yes | ||
| + | comment = www share | ||
| + | printable = no | ||
| + | guest ok = yes | ||
| + | |||
| + | <- | ||
| + | |||
| + | systemctl restart smbd.service | ||
| + | systemctl status smbd.service | ||
| + | </ | ||
| + | |||
| + | <code cmd> | ||
| + | net use W: \\rasp-dns\public | ||
| + | </ | ||
| + | |||
| + | ===== XRDP ===== | ||
| + | |||
| + | <code bash> | ||
| + | apt-get install xrdp | ||
| + | </ | ||
| + | |||