Forum Discussion
Windows Server 2022 Hyper-V : vmconnect introuvable pour accéder à la console VM (Server Core)
Contexte
Windows Server 2022 [Standard/Datacenter — à préciser], rôle Hyper-V installé. J'ai créé une VM invitée Linux nommée « Wazuh » (installation d'une plateforme SIEM), elle démarre correctement. ce serveur est une VM imbriquée dans un autre hyperviseur type VMware Workstation. je suis en simple groupe de travail (workgroup).
Ce que je constate
PS C:\Users\Administrator> Start-VM -Name 'Wazuh'
PS C:\Users\Administrator> vmconnect localhost Wazuh
vmconnect : The term 'vmconnect' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ vmconnect localhost Wazuh
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (vmconnect:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator> Get-VM -Name 'Wazuh' | Select-Object State, Status
State Status
----- ------
Running Operating normally
PS C:\Users\Administrator> vmconnect localhost Wazuh
vmconnect : The term 'vmconnect' is not recognized as the name of a cmdlet, function, script file, or operable program...
La VM est bien « Running / Operating normally » selon Get-VM, donc le souci n'est pas la VM elle-même mais l'accès à sa console.
Ce que j'ai déjà essayé
- Get-WindowsFeature *Hyper-V* → [colle ici la sortie exacte que tu as obtenue]
- Install-WindowsFeature -Name RSAT-Hyper-V-Tools -IncludeAllSubFeature → toujours pas de vmconnect.exe fonctionnel après coup
- Je soupçonne que ce serveur est installé en mode Server Core (pas d'interface graphique locale), et j'ai lu que la conversion Core → Desktop Experience n'est plus possible après coup depuis Server 2016.
Ma question pour la communauté
- Est-il vraiment impossible d'obtenir une console graphique locale (vmconnect / Hyper-V Manager) sur un Server Core, même une fois les outils de gestion Hyper-V installés ?
- Quelle est la méthode la plus fiable pour accéder à la console d'une VM Hyper-V hébergée sur un Server Core, en environnement non-domaine (workgroup) : Windows Admin Center, Hyper-V Manager distant (config WinRM/TrustedHosts), ou faut-il simplement réinstaller en Desktop Experience ?
- Si quelqu'un a déjà mis en place Windows Admin Center ou du Hyper-V Manager distant sur un lab en groupe de travail (sans AD), un retour d'expérience serait très utile.
Merci d'avance !
1 Reply
Your VM is running correctly; the failure occurs because vmconnect.exe is a graphical management client, not part of the normal Server Core local interface. Installing RSAT-Hyper-V-Tools on Core does not turn the host into Desktop Experience. Microsoft supports managing a Core Hyper-V host remotely, so reinstalling the host is unnecessary unless a local GUI is a firm requirement. From a Windows 10/11 Pro/Enterprise or Windows Server Desktop Experience management computer, install Hyper-V Management Tools. On the Core host, run Enable-PSRemoting as administrator. Because this is a workgroup, configure the host for CredSSP and add its FQDN to TrustedHosts on the management computer; then enable client CredSSP delegation and connect through Hyper-V Manager as an administrator of the host. Prefer the FQDN and a private network. Windows Admin Center is also a supported remote GUI option. Server Core cannot be converted in place to Desktop Experience; that requires a clean installation.