question

JuanFalguera-5130 avatar image
0 Votes"
JuanFalguera-5130 asked Hai-7784 commented

Cannot connect to VM Linux after cloning

Hi. I need to clone a Linux Centos VM without losing the original VM. So, instead of generalizing and deallocating it (which would make it useless), I just created a snapshot and then a disk form it.

Then I created a new VM attaching the cloned disk. VM boots normally, but I can't access it through ssh.

Accessing the VM using Serial Console and running a “ifconfig”, I can see the IP address is 127.0.0.1. So, off course VM is not allowing SSH connections.

What can I do to make the VM get an IP from DHCP VNET?
Thanks




azure-virtual-machines
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JuanFalguera-5130 Apologies for the delay in response and all the inconvienince caused because of the issue.
I have reached out to our internal team on the issue and once I have an update will keep you posted on same.

Thank you for your patience over the matter.

Thanks.

0 Votes 0 ·

@JuanFalguera-5130 Any update on the issue?

Please let me know if you need any further help on the issue.

Thanks

0 Votes 0 ·

1 Answer

prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered Hai-7784 commented

@JuanFalguera-5130 Thank you for your patience over the matter!!!

I do suspect that VM is not having an Associate Public ip address. If it is normal deployment, a Public/Private ip should be created while the VM is created, but if only 127.0.0.1 appears, it is suspected that the ip is not normally assigned. Have you tried allocating a public IP by referring to the document here.

If not can you please check it and let me know if it works for you or not.

Thanks

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.







· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Having similar issue
After creating an image of a RH linux VM can not logging to the new VM, the original VM uses username / password not ssh, the image is not generalized as it it has the configurations that we want to keep. Both VM's have private IP's and using Bastion to connect and can connect to the original VM

0 Votes 0 ·