Voiced by Amazon Polly |
Introduction
Azure is a platform for open-source cloud computing. It offers numerous cloud services, such as computation, analytics, storage, and networking. These services are available for users to choose from while creating and scaling new apps or using the public cloud to operate existing applications.
You can design your virtualization environments using nested virtualization, which permits you to run virtual machine (VM) instances inside other VMs.
If you have virtual machines (VMs) that cannot be run on Compute Engine, such as a disaster recovery system for an on-premises application that utilizes VMs to fail over to Compute Engine VMs. You could save time by using nested virtualization instead of porting your VMs to Compute Engine.
Customized Cloud Solutions to Drive your Business Success
- Cloud Migration
- Devops
- AIML & IoT
Step-by-Step Guide for troubleshooting faulty Virtual Machines and the Creation of Rescue Virtual Machines
Step 1: Sign into the Azure portal, In the VM Blade Copy the Public IP and RDP to the VM. If you will find a similar error as shown in the below Image, then follow step 2.
Step 2: Creation of the snapshot using the OS Disk and the snapshot to create the new OS disk.
- In faulty VM and on the left side of VM Blade find Disks.
- In Disks click on the description below the Disk name.
- After clicking on the OS disk, Create a snapshot.
4. After creating the snapshot in the snapshot directory, Create a new disk with the same configuration.
Step 3: Creation of the Rescue VM and attach the disk created.
- Create a rescue VM with no redundancy required in the availability zone.
- Choose a windows server data center, with a min of Dv3 or Dv4 core processor.
- Rescue VM should be in the same location as the Storage account of the faulty VM resides.
- Select the RDP port and all the licenses required.
- Attach the data disk created using a snapshot to the VM.
- Keep all the settings to default.
- Review and create the VM after validation is successful.
Step 4: Install Hyper-V in the rescue VM.
- RDP to the Rescue VM.
2. Inside VM, search for disk Management.
3. In disk management, right-click on Disk 2 and make it offline.
4. In server Manager, Select Manage -> Add Roles and Features.
5. In the installation type select Role-based or feature-based installation.
6. In server roles, select Hyper-V, click install, and keep others to default. Proceed with next.
7. On the confirmation page, confirm the Check box to restart the server automatically and install.
8. It will take a few minutes to restart, there will be a connection lost to the VM, so you need to RDP again to the server.
Step 5: Create a new VM in the Hyper-V manager and attach the faulty disk.
- Open Hyper-V manager and create a New VM.
- Type the name of the VM and select next.
- Select the Generation based on the faulty VM.
- Keep all the settings to default and select virtual Hard disk to attach later.
5. Right-click on the VM we created and select the setting.
6. For Gen 1 select IDE Controller 0 and SCSI Controller for Gen 2.
7. Double-click on the VM and start IT, this will take some time.
8. Use the credential of the faulty VM to login.
9. In the VM run the command Regedit.
10. In Regedit, Navigate to HKEY_LOACL-MACHINE -> SYSTEM -> CurrentControlSet -> Control -> Terminal Server -> Winstation -> RDP -> In RDP change port number to 3389.
Step 6: Swap the OS disk of the faulty VM with the newly created OS disk.
- Shut down the VM in the Hyper-V manager.
- remove the repaired OS disk.
- Replace the OS disk used by the VM with the repaired OS disk.
- RDP to the faulty VM.
Conclusion
Nested Virtualization allows you to run Virtualization on a Virtual Machine. With the release of Windows Server 2016, features were added to Azure and Hyper-V virtual machines that can aid in problem-solving. Here when a client or customer working remotely faces RDP issues it will be difficult to resolve but with the help of Nested vitalization, we can repair a faulty Virtual machine easily.
Get your new hires billable within 1-60 days. Experience our Capability Development Framework today.
- Cloud Training
- Customized Training
- Experiential Learning
About CloudThat
CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.
CloudThat is the first Indian Company to win the prestigious Microsoft Partner 2024 Award and is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 850k+ professionals in 600+ cloud certifications and completed 500+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner, AWS Training Partner, AWS Migration Partner, AWS Data and Analytics Partner, AWS DevOps Competency Partner, AWS GenAI Competency Partner, Amazon QuickSight Service Delivery Partner, Amazon EKS Service Delivery Partner, AWS Microsoft Workload Partners, Amazon EC2 Service Delivery Partner, Amazon ECS Service Delivery Partner, AWS Glue Service Delivery Partner, Amazon Redshift Service Delivery Partner, AWS Control Tower Service Delivery Partner, AWS WAF Service Delivery Partner, Amazon CloudFront Service Delivery Partner, Amazon OpenSearch Service Delivery Partner, AWS DMS Service Delivery Partner, AWS Systems Manager Service Delivery Partner, Amazon RDS Service Delivery Partner, AWS CloudFormation Service Delivery Partner, AWS Config, Amazon EMR and many more.
FAQs
1. What happens when you use Dv2 size for nested virtualization?
ANS: – Nested virtualization requires a large amount of size and a lesser size as Dv2 will stop the server when we install Hyper-V.
2. Can we Install nested virtualization in the Linux server?
ANS: – Yes, we can install nested virtualization in the Linux server.
3. Should the OS Disk of the faulty and rescue VM reside in the same region?
ANS: – Yes, they should be in the same region, and it will be better to choose no infrastructure redundancy in AZ.

WRITTEN BY H S Yashas Gowda
Yashas Gowda works as a Research Associate at CloudThat. He has good hands-on experience working on Azure and AWS services. He is interested to learn new technologies and tries to implement them.
Comments