Перейти до основного вмісту

Публікації

Remmina не під'єднується до Windows Server

Remmina не підключається до віддаленого робочого столу на Windows Server 2019. У remmina вказано Узгодження протоколу захисту Auto Тип передавання даних шлюзу Auto Але на декотрих комп'ютерах з'єднання встановлюється, а на декотрих отримуємо повідомлення, що неможливо підключитись до серверу. Ідея прийшла звідси  https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/rds-client-not-connect-to-rd-session-host-server Коли Windows Server 2019 був включений у експлуатацію відбулась заміна IP адреси з тимчасової на робочу. Але сервер ліцензування у налаштуваннях серверу RDP залишився старий. Тому потрібно через regedit замінити сервер ліцензування на новий.

Надсилання поштових повідомлень у Windows

Для інформування про виконання bat файлів у Windows потрібно надсилати поштові повідомлення. Існує кілька порад у  https://serverfault.com/questions/110057/easiest-way-to-send-an-email-from-the-command-line-using-windows-2003-r2 Але найкраще підішла утиліта SendEmail від https://github.com/zehm/sendEmail Але це perl програма, для Windows є скомпільована версія на http://caspian.dotconf.net/menu/Software/SendEmail/ Але потрібно звернути увагу, що полегшена версія не підтримує TSL та авторизацію на сервері.

Dell Idrac не відповідає і не пінгується

Перестав відповідати Idrac на сервері DELL R710. При цьому на сервері встановлено ESXI , і віртуальну машину Windows. У віртуальній машині Windows встановлено DELL OMSA (OpenManage Server Administrator). Через OMSA можна побачити і переналуштувати контролер Remote Access, але Idrac все рівно не відповідає. Потрібно в OMSA зайти в  System - Main System Chassis - Remote Access. Там доступно посилання Options: Reset to Defaults.  Після натискання потрібно чекати деякий час, поки пройде скидання. Потім потрібно знову зайти у System - Main System Chassis - Remote Access і через верхнє меню Configuration встановити потрібні атрибути  IPv4 Address (Mask, Gateway).

Оновлення firmware на DELL R710

Потрібно оновити firmware контролера PERC6i до останньої версії 6.3.3 На сайті DELL є файли оновлення для Windows і Linux, але на сервері встановлено ESXI 6.5. У форумах DELL є багато порад: 1. За допомогою openmanage та idrac, але в idrac express немає оновлення firmware контролера. 2. За допомогою bootable ISO (SSU) та repository manager, але в repository manager вже немає оновлення для такого старого сервера 3. ......... Тому найкращим варіантом виявилось створення завантажуючого USB накопичувача з CentOS7 Live CD Gnome з https://buildlogs.centos.org/centos/7/isos/x86_64/ а потім усі потрібні оновлення за допомогою другого USB накопичувача додати з https://www.dell.com/support/home/ru-rs/product-support/product/poweredge-r710/drivers Пораду знайшов у https://www.yinfor.com/2020/07/update-the-firmwares-on-my-dell-r710.html

Команда tail у Windows (DOS)

Для перегляду журналів у Windows відсутня Linux команда tail. Можна створити bat скрипт tail.bat на кшталт:  @echo off SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION rem tail.bat -d <lines> <file> rem tail.bat -f <file> rem ****** MAIN ****** IF "%1"=="-d" GOTO displayfile IF "%1"=="-f" GOTO followfile GOTO end rem ************ rem Show Last n lines of file rem ************ :displayfile SET skiplines=%2 SET sourcefile=%3 rem *** Get the current line count of file *** FOR /F "usebackq tokens=3,3 delims= " %%l IN (`find /c /v "" %sourcefile%`) DO (call SET find_lc=%%l) rem *** Calculate the lines to skip SET /A skiplines=%find_lc%-!skiplines! rem *** Display to screen line needed more +%skiplines% %sourcefile% GOTO end rem ************ rem Show Last n lines of file & follow output rem ************ :followfile SET skiplines=0 SET findend_lc=0 SET sourcefile=%2 :followloop rem *** Get the current

Міграція VM між серверами ESXI

Enable SSH Service on Source and Destination ESXI Servers To enable the SSH service, log in to the web interfaces for your ESXI servers. Then click on Host at the top right. Click Actions -> Services -> Enable Secure Shell (SSH) (if it is not already enabled). Enable SSH Client Service on Source ESXI Server. Log in to the SSH of the source ESXI server using the putty tool. You may need to run the below commands: esxcli network firewall ruleset list --ruleset-id sshClient Check if the SSH client service is enabled. If disabled, the command will return a result of ‘False’. If a ‘False’ response is returned, run this next command. If ‘False’ is not the returned response, proceed to the next step! esxcli network firewall ruleset set --ruleset-id sshClient --enabled=true Copy the VM from Source to Destination Before running the below commands, make sure the VM that will be migrated is turned off in the source ESXI server. Connect to your source ESXI server using putty or your favorite

Міграція з Proxmox на ESXI

Міграція https://www.rajaseelan.com/ posts/migrate-guest-vm-from- proxmox-to-vmware/ https://edywerder.ch/proxmox- to-vmware/# https://communities.vmware. com/t5/VMware-vSphere- Discussions/Migrating-from- KVM-to-VMware/td-p/2293576 https://blog.ktz.me/migrate- qcow2-images-from-kvm-to- vmware/ https:// possiblelossofprecision.net/? p=2293 Не завантажається (Switch the bios to EFI (or the other way around)) https://www.reddit.com/r/ Proxmox/comments/nbfjop/ export_proxmox_vm_for_use_ with_esxi/ Ковератція з IDE в SCSI https://cname.se/vmware- converting-a-virtual-ide-disk- to-a-virtual-scsi-disk/ https://www.virtualtothecore. com/convert-a-virtual-disk- from-ide-to-scsi/ https://www.wh33ly.nl/wp/?p= 495 https://kb.vmware.com/s/ article/1016192?sl ...