Access the web console for an Azure virtual machine?

Is there a way to access a virtual machine with boot problems in azure windows?

I have a Linux virtual machine and I did not configure the swap file correctly, causing boot problems, but Azure doesn't let me check the details. In the portal, I have only the ability to restart or shut down or delete.

When I solve the problem, the only solution found:

  • Download an Azure Hard Drive Attached to a Virtual Machine
  • Install it locally on a virtual instance on my PC.
  • Correct the configuration and save it
  • Download the entire HD back to the azure virtual machine and pray.

Any other solutions?

DigitalOcean has a web interface that allows you to view boot files on your virtual machines. Is there something similar on azure?

+4
source share
1 answer

When I contact Azure Support, they give this solution:

Since access to the console is not an available feature in Azure, basically you will install the problem OS disk as a data disk on a working virtual machine to fix changes to the file system configuration:

A = Original virtual machine (inaccessible virtual machine) B = New virtual machine (new Temp VM)

1) Stop Virtual Machine A through the Azure Management Portal

2) Remove VM A BUT select "save attached drives"

3) A VM B Azure Portal, , "A", " "

4) VM "B" , .

5) , "B" , , linux .

grep SCSI/var/log/kern.log(ubuntu)

6) /tempmount

df -h
mkdir /tempmount
mount /dev/sdc1 /tempmount
df –h

7) /etc,

cd /tempmount/etc/
cp fstab fstab_orig

8) , fstab, vi, nano .

vi fstab
cd /
umount /tempmount

9) VM B

10) A ( , ), , A - .

, .

+6

Source: https://habr.com/ru/post/1536012/


All Articles