2020-06-20 11:35 am

Получение информации о хосте изнутри виртуальной машины

Hyper-V
Get the Physical Host name of a Virtual Machine - easy identify host name
Looking the following registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters is easy to find the physical hostname
https://gallery.technet.microsoft.com/scriptcenter/Get-the-Physical-Host-name-1e3485bd

VMware
How to extract host information from within a VM?
From time to time, I see this question come up asking how one might be able to extract a certain piece of information from either ESX(i) or the management APIs (vSphere API) from within a virtual machine. The simple answer is you can not, by default the guest operating system has no idea of the underlying hypervisor nor does it have the access to the management APIs. This of course, assumes you are following VMware's best practices in isolated and segregating off your management network from your virtual machine network.

Having said that, there are certain bits of information that you can extract about your ESX(i) host from within the guestOS using some of the utilities that is installed with VMware Tools.
https://www.virtuallyghetto.com/2011/01/how-to-extract-host-information-from.html
2020-06-17 01:05 pm

Hyper-V KVP - (key-value-pair) Data Exchange Host to VM

KVP.
Hyper-V KVP - (key-value-pair) Data Exchange Host to VM
Это механизм, который позволяет обмениваться сообщениями с виртуалкой в виде KeyValuePair через WMI. Но, придётся на виртуалку сначала записать инфу, которую тебе надо достать на хосте
Собсна, именно так сам Hyper-V и получает данные из ВМ, типа айпишника её итд
https://blogs.msdn.microsoft.com/kebab/2014/06/24/sending-messages-and-commands-to-a-hyper-v-virtual-machine-guest-os-using-the-kvp-exchange/
2020-06-15 11:59 am
Entry tags:

Windows Hyper-V generation 2 VM conversion utility (Convert-VMGeneration) sample

Hyper-V generation 2 VM conversion utility (Convert-VMGeneration)
Convert-VMGeneration converts a Hyper-V generation 1 virtual machine running on Windows Server 2012 R2 or Windows 8.1 to generation 2.
https://i4.code.msdn.s-msft.com/Convert-VMGeneration-81ddafa2/view/Discussions
2020-02-23 12:17 am
Entry tags:

Для любителей Hyper-V and Numa nodes

Вопрос клубу: А можно как то узнать на какой numa ноде висит вм?
Отвечает Борис Бурда сами знаете кто
hyper-v vm vid numa node это про нуму
vid partition как раскидало память vm по нума узлам
2020-02-01 12:31 pm

При потере удаленного управления сервером под Windows

Ситуация:
Windows Hyper-V host lost host OS management after firewall disabled.
No any IPMI on the host
No RDP or powershell connections
VM on the host works correct.
Cluster management avalaible
Solution:
Cнаружи стал недоступен хост но я придумал подлость- напилил политику и попросил через планировщик сразу ребут. Сработало.
Ситуация:
Входящий умер трафик (кстати почему -вопрос, интересно) а исходящий я подумал что должен жить. Так и вышло. ipmi не было
Ну ничего умнее не придумал.
Был запасной вариант врубить кластер аваре апдейты + запасной план сделать фейлбек. Кластер слушался всех команд и дал тачки эвакуировать. И поскольку все тачки на нем работали (был рдп туда) то я так и подумал, что увезем машины и наверное сделаем вот так.