Skip to content

Commit f2379c5

Browse files
authored
Updates from editor
1 parent 621adea commit f2379c5

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

support/windows-server/virtualization/linux-virtual-machine-issue-hyper-v.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
ms.date: 08/05/2025
55
manager: dcscontentpm
66
audience: itpro
@@ -12,15 +12,15 @@ ms.custom:
1212
---
1313
# Troubleshoot Linux virtual machine issues on Hyper-V
1414

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.
1616

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.
1818

1919
## Common issues observed in Linux VMs on Hyper-V
2020

2121
- VM installation and boot issues:
2222

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.
2424
- Installation menus appear, but the process fails to complete.
2525

2626
- Live migration and VM state errors:
@@ -33,7 +33,7 @@ These issues might include installation challenges, live migration failures, tim
3333
- Management console and integration data issues:
3434

3535
- 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.
3737

3838
- Time synchronization issues:
3939

@@ -45,9 +45,9 @@ These issues might include installation challenges, live migration failures, tim
4545
- Missing CPU flags, such as `sse4_2`, inside Linux VMs (`cat /proc/cpuinfo`).
4646
- Applications or tools fail due to missing CPU instructions.
4747

48-
- Frequent VM disconnects:
48+
- Frequent VM disconnections:
4949

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.
5151
- Error messages appear when connecting via Hyper-V Manager.
5252

5353
- Licensing, support, and feature inquiries:
@@ -61,13 +61,13 @@ These issues might include installation challenges, live migration failures, tim
6161
- Configuration and compatibility:
6262

6363
- 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.
6565
- Licensing and support gaps: Documentation might not cover all scenarios for OS/distribution/version compatibility.
6666

6767
- Integration services and VM data reporting:
6868

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.
7171

7272
- File/state corruption and migration failures:
7373

@@ -76,7 +76,7 @@ These issues might include installation challenges, live migration failures, tim
7676

7777
- Guest OS settings and platform differences:
7878

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.
8080
- CPU compatibility mode: Enabling this mode restricts available CPU instructions for the guest, causing feature gaps.
8181

8282
- External or unsupported scenarios:
@@ -86,7 +86,7 @@ These issues might include installation challenges, live migration failures, tim
8686

8787
## Resolve VM installation issues (Generation 2 Linux VMs)
8888

89-
1. Review VM configuration:
89+
1. Review the VM configuration:
9090

9191
- Disable Secure Boot or set it to use the correct template (for example, `MicrosoftUEFICertificateAuthority` for supported Linux distributions).
9292
- Ensure the VM generation matches the Linux distribution's requirements.
@@ -96,20 +96,20 @@ These issues might include installation challenges, live migration failures, tim
9696
- Set the firmware to boot from the correct device (DVD or ISO).
9797
- Remove unnecessary hardware, such as legacy network adapters.
9898

99-
3. Retry installation: Reattempt the OS installation after making the necessary changes.
99+
3. Retry the OS installation after making the necessary changes.
100100
4. If issues persist, install the OS on a Generation 1 VM.
101101

102102
## Resolve live migration and state file errors
103103

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.
106106
3. Create a new VM:
107107

108108
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.
110110

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.
113113

114114
## Resolve management console and integration data issues
115115

@@ -118,19 +118,19 @@ These issues might include installation challenges, live migration failures, tim
118118
- Use the `lsmod | grep hv` command in the guest OS to confirm that Hyper-V modules are loaded.
119119
- Ensure the latest Linux integration services are installed.
120120

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):
124124

125125
1. Back up the SCVMM database.
126126
2. Use SQL queries to update missing VM names or IP addresses.
127127

128128
## Resolve time synchronization issues
129129

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.
134134

135135
## Resolve CPU feature/instruction set issues
136136

@@ -140,15 +140,15 @@ These issues might include installation challenges, live migration failures, tim
140140
Set-VMProcessor -VMName -CompatibilityForMigrationEnabled $false
141141
```
142142
143-
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.
145145
146-
## Resolve frequent VM disconnects
146+
## Resolve frequent VM disconnections
147147
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.
152152
153153
## Resolve licensing, support, and feature inquiries
154154
@@ -158,7 +158,7 @@ These issues might include installation challenges, live migration failures, tim
158158
159159
## Data collection
160160
161-
To assist in troubleshooting, gather the following logs and information:
161+
To help with troubleshooting, gather the following logs and information:
162162
163163
- VML traces (for live migration):
164164
@@ -195,7 +195,7 @@ To assist in troubleshooting, gather the following logs and information:
195195
196196
## References
197197
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)
199-
- [Linux Integration Services Documentation](/windows-server/virtualization/hyper-v/supported-debian-virtual-machines-on-hyper-v)
198+
- [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)
200200
201201
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

Comments
 (0)