Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Capturing a VM breaks the VM

$
0
0

Hi,

I created a VM using the Windows Server 2008 R2 SP1 August 2012 from the gallery, then customized it. I followed https://www.windowsazure.com/en-us/manage/windows/how-to-guides/capture-an-image/ and capture an image as MyImage of the VM. The results are:

1. The original VM is destroyed as expected

2. There is no MyImage in the portal

3. There is a new blob in the storage, that should be capture vm, and it IS attached to MyImage image

4. There is MyImage in `azure vm image list`, but attempt to create a VM based on it fails:

azure vm create -r 3389 <name>@cloudapp.net MyImage <USER> <PASS> -l "West US"
info:    Executing command vm create
+ Looking up image
+ Looking up cloud service
+ Creating cloud service
error:   The hosted service name is invalid.
info:    Error information has been recorded to azure_error
error:   vm create command failed

4. Creating a new VM based on the original image works, the machine is reported as running, but

I am not able to connect to it using remote desktop and the custom service seem to not be running.

5. Re-creating the original VM (with azure vm create-from previously exported VM settings) gives again VM that is working according to the portal, but I am not able to connect via remote desktop or the custom survice running on it.

So my question is how to recover the original VM and the capture clone?


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>