You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/windows-server/virtualization/linux-virtual-machine-issue-hyper-v.md
+35-35Lines changed: 35 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Troubleshoot Linux Virtual Machine Issues on Hyper-V
3
-
description: Provides a comprehensive guide to diagnosing and resolving common issues encountered when deploying and managing Linux virtual machines (VMs) on Microsoft Hyper-V environments.
3
+
description: Provides a comprehensive guide to diagnosing and resolving common issues encountered when deploying and managing Linux VMs in Microsoft Hyper-V environments.
4
4
ms.date: 08/05/2025
5
5
manager: dcscontentpm
6
6
audience: itpro
@@ -12,15 +12,15 @@ ms.custom:
12
12
---
13
13
# Troubleshoot Linux virtual machine issues on Hyper-V
14
14
15
-
This article provides a comprehensive guide to diagnosing and resolving common issues in deploying and managing Linux virtual machines (VMs) on Microsoft Hyper-V environments.
15
+
This article provides a comprehensive guide to diagnosing and resolving common issues in deploying and managing Linux virtual machines (VMs) in Microsoft Hyper-V environments.
16
16
17
-
These issues might include installation challenges, live migration failures, time synchronization problems, missing VM information in management consoles, central processing unit (CPU) compatibility discrepancies, and licensing or support inquiries. Resolving these issues is critical for ensuring reliability, compatibility, and optimal performance of Linux workloads in Hyper-V infrastructures.
17
+
These issues might include installation challenges, live migration failures, time synchronization problems, missing VM information in management consoles, central processing unit (CPU) compatibility discrepancies, and licensing or support inquiries. Resolving these issues is critical to ensuring the reliability, compatibility, and optimal performance of Linux workloads in Hyper-V infrastructures.
18
18
19
19
## Common issues observed in Linux VMs on Hyper-V
20
20
21
21
- VM installation and boot issues:
22
22
23
-
- Installations of Linux operating system (OS), such as SUSE Linux Enterprise Server (SLES) 15 SP5, stall or fail on Generation 2 VMs but succeed on Generation 1.
23
+
- Installations of a Linux operating system (OS), such as SUSE Linux Enterprise Server (SLES) 15 SP5, stall or fail on Generation 2 VMs but succeed on Generation 1 VMs.
24
24
- Installation menus appear, but the process fails to complete.
25
25
26
26
- Live migration and VM state errors:
@@ -33,7 +33,7 @@ These issues might include installation challenges, live migration failures, tim
33
33
- Management console and integration data issues:
34
34
35
35
- Linux VM IP addresses and hostnames aren't visible in Hyper-V Manager, System Center Virtual Machine Manager (SCVMM), or other management consoles.
36
-
- Integration services are installed and configured, but the data remains missing.
36
+
- Integration services are installed and configured, but the data is still missing.
37
37
38
38
- Time synchronization issues:
39
39
@@ -45,9 +45,9 @@ These issues might include installation challenges, live migration failures, tim
45
45
- Missing CPU flags, such as `sse4_2`, inside Linux VMs (`cat /proc/cpuinfo`).
46
46
- Applications or tools fail due to missing CPU instructions.
47
47
48
-
- Frequent VM disconnects:
48
+
- Frequent VM disconnections:
49
49
50
-
- Linux VMs, especially Red Hat Enterprise Linux (RHEL)-based, frequently disconnect from the Hyper-V console.
50
+
- Linux VMs, especially those based on Red Hat Enterprise Linux (RHEL), frequently disconnect from the Hyper-V console.
51
51
- Error messages appear when connecting via Hyper-V Manager.
52
52
53
53
- Licensing, support, and feature inquiries:
@@ -61,13 +61,13 @@ These issues might include installation challenges, live migration failures, tim
61
61
- Configuration and compatibility:
62
62
63
63
- Generation 2 VM incompatibility: Certain Linux distributions require specific Generation 2 Hyper-V settings, such as Secure Boot or UEFI, for successful installation.
64
-
- Unsupported Linux versions: Earlier or unlisted Linux versions might not work with Hyper-V integration components, leading to missing data or failed operations.
64
+
- Unsupported Linux versions: Earlier or unlisted Linux versions might not work with Hyper-V integration components, leading to data loss or operational failures.
65
65
- Licensing and support gaps: Documentation might not cover all scenarios for OS/distribution/version compatibility.
66
66
67
67
- Integration services and VM data reporting:
68
68
69
-
- Missing or misconfigured Integration services: Without proper configuration, Linux Integration services might fail to report data like IP addresses and hostnames.
70
-
- Console/SCVMM synchronization issues: Synchronization delays or database errors might prevent updated VM data from displaying.
69
+
- Missing or misconfigured integration services: Without proper configuration, Linux integration services might fail to report data like IP addresses and hostnames.
70
+
- Console/SCVMM synchronization issues: Synchronization delays or database errors might prevent updated VM data from being displayed.
71
71
72
72
- File/state corruption and migration failures:
73
73
@@ -76,7 +76,7 @@ These issues might include installation challenges, live migration failures, tim
76
76
77
77
- Guest OS settings and platform differences:
78
78
79
-
- RTC and time zone handling: Hyper-V provides system time to the guest RTC without time zone metadata; the guest OS settings determine interpretation.
79
+
- RTC and time zone handling: Hyper-V provides the system time to the guest RTC without time zone metadata; the guest OS settings determine the interpretation.
80
80
- CPU compatibility mode: Enabling this mode restricts available CPU instructions for the guest, causing feature gaps.
81
81
82
82
- External or unsupported scenarios:
@@ -86,7 +86,7 @@ These issues might include installation challenges, live migration failures, tim
86
86
87
87
## Resolve VM installation issues (Generation 2 Linux VMs)
88
88
89
-
1. Review VM configuration:
89
+
1. Review the VM configuration:
90
90
91
91
- Disable Secure Boot or set it to use the correct template (for example, `MicrosoftUEFICertificateAuthority` for supported Linux distributions).
92
92
- Ensure the VM generation matches the Linux distribution's requirements.
@@ -96,20 +96,20 @@ These issues might include installation challenges, live migration failures, tim
96
96
- Set the firmware to boot from the correct device (DVD or ISO).
97
97
- Remove unnecessary hardware, such as legacy network adapters.
98
98
99
-
3. Retry installation: Reattempt the OS installation after making the necessary changes.
99
+
3. Retry the OS installation after making the necessary changes.
100
100
4. If issues persist, install the OS on a Generation 1 VM.
101
101
102
102
## Resolve live migration and state file errors
103
103
104
-
1. Check event logs and error codes: Review Hyper-V logs for Event ID 21502 and error codes such as 0xC0370027, 0x80048054, or 0x80070037.
105
-
2. Inspect VM state files: Ensure `.vmrs` and `.vmcx` files are accessible on both source and destination nodes.
104
+
1. Check event logs and error codes. Review Hyper-V logs for Event ID 21502 and error codes such as 0xC0370027, 0x80048054, or 0x80070037.
105
+
2. Inspect VM state files. Ensure `.vmrs` and `.vmcx` files are accessible on both the source and destination nodes.
106
106
3. Create a new VM:
107
107
108
108
1. Shut down the affected VM.
109
-
2. Create a new VM and attach the original OS/data disks. Match CPU and RAM settings to the original configuration.
109
+
2. Create a new VM and attach the original OS/data disks. Match the CPU and RAM settings to the original configuration.
110
110
111
-
4. Test migration: Attempt live migration with the new VM.
112
-
5. Monitor for recurrence: If the issue is resolved, continue monitoring the VM. If the issue persists, escalate for further disk or file system investigation.
111
+
4. Test migration. Perform a live migration with the new VM.
112
+
5. Monitor for recurrence. If the issue is resolved, continue monitoring the VM. If the issue persists, escalate for further disk or file system investigation.
113
113
114
114
## Resolve management console and integration data issues
115
115
@@ -118,19 +118,19 @@ These issues might include installation challenges, live migration failures, tim
118
118
- Use the `lsmod | grep hv` command in the guest OS to confirm that Hyper-V modules are loaded.
119
119
- Ensure the latest Linux integration services are installed.
120
120
121
-
2. Enable data exchange: In the VM settings, ensure "Data Exchange" is enabled under integration services.
122
-
3. Update management console: Apply the latest updates to Hyper-V, SCVMM, or other management platforms.
123
-
4. Correct SCVMM database (if needed):
121
+
2. Enable data exchange. In the VM settings, ensure "Data Exchange" is enabled under integration services.
122
+
3. Update the management console. Apply the latest updates to Hyper-V, SCVMM, or other management platforms.
123
+
4. Correct the SCVMM database (if needed):
124
124
125
125
1. Back up the SCVMM database.
126
126
2. Use SQL queries to update missing VM names or IP addresses.
127
127
128
128
## Resolve time synchronization issues
129
129
130
-
1. Update integration services: Ensure the guest OS has the latest Linux integration services installed.
131
-
2. Verify time synchronization settings: In Hyper-V Manager, ensure "Time Synchronization" is enabled.
132
-
3. Adjust guest OS settings: Use `timedatectl` to configure the system clock and time zone correctly. For example, `timedatectl set-timezone UTC`.
133
-
4. Delay application startup: For time-sensitive applications, delay startup until synchronization completes.
130
+
1. Update integration services. Ensure the guest OS has the latest Linux integration services installed.
131
+
2. Verify time synchronization settings. In Hyper-V Manager, ensure "Time Synchronization" is enabled.
132
+
3. Adjust guest OS settings. Use `timedatectl` to configure the system clock and time zone correctly. For example, `timedatectl set-timezone UTC`.
133
+
4. Delay application startup. For time-sensitive applications, delay startup until synchronization completes.
134
134
135
135
## Resolve CPU feature/instruction set issues
136
136
@@ -140,15 +140,15 @@ These issues might include installation challenges, live migration failures, tim
2. Validate in guest OS: Run `cat /proc/cpuinfo` to confirm that required CPU flags are present.
144
-
3. Restart VM: Restart the VM to apply changes.
143
+
2. Validate in the guest OS. Run `cat /proc/cpuinfo` to confirm that the required CPU flags are present.
144
+
3. Restart the VM to apply the changes.
145
145
146
-
## Resolve frequent VM disconnects
146
+
## Resolve frequent VM disconnections
147
147
148
-
1. Check network and VM health: Verify that network adapters are correctly configured and functioning.
149
-
2. Review VM cloning practices: Ensure unique MAC addresses and proper cleanup after cloning.
150
-
3. Adjust Secure Boot settings: Enable or disable Secure Boot as required by the Linux distribution.
151
-
4. Contact Linux vendor support: Escalate issues that persist to the Linux distribution vendor.
148
+
1. Check network and VM health. Verify that network adapters are correctly configured and functioning.
149
+
2. Review VM cloning practices. Ensure unique MAC addresses and proper cleanup after cloning.
150
+
3. Adjust Secure Boot settings. Enable or disable Secure Boot as required by the Linux distribution.
151
+
4. Contact Linux vendor support. Escalate issues that persist to the Linux distribution vendor.
152
152
153
153
## Resolve licensing, support, and feature inquiries
154
154
@@ -158,7 +158,7 @@ These issues might include installation challenges, live migration failures, tim
158
158
159
159
## Data collection
160
160
161
-
To assist in troubleshooting, gather the following logs and information:
161
+
To help with troubleshooting, gather the following logs and information:
162
162
163
163
- VML traces (for live migration):
164
164
@@ -195,7 +195,7 @@ To assist in troubleshooting, gather the following logs and information:
195
195
196
196
## References
197
197
198
-
- [Supported Linux and FreeBSD Virtual Machines on Hyper-V](/windows-server/virtualization/hyper-v/supported-centos-and-red-hat-enterprise-linux-virtual-machines-on-hyper-v)
- [Supported CentOS and Red Hat Enterprise Linux virtual machines on Hyper-V](/windows-server/virtualization/hyper-v/supported-centos-and-red-hat-enterprise-linux-virtual-machines-on-hyper-v)
199
+
- [Supported Debian virtual machines on Hyper-V](/windows-server/virtualization/hyper-v/supported-debian-virtual-machines-on-hyper-v)
200
200
201
201
If issues persist after following these steps, collect the relevant logs and contact Microsoft Support or your Linux distribution vendor for further assistance.
0 commit comments