windows azure migrate a VM across datacenters - azure-virtual-machine

I have an azure vm (windows server 2012) in data region X. Azure has just opened a new data center in geo region Y which is much closer to me. How can I easily mygrate my VM? Short downtimes are tolerable.
If I blob-copy the VM and then copy to a new container in the new datacenter, I'm not seeing how to attach the VHD as osdisk to a new VM when creating the VM via the management portal. Is this process only possible via PowerShell. Any other methods?
If only possible via PowerShell, pointers appreciated.

You can move the machines (including the blob-storage) as exampled here:
http://gauravmantri.com/2012/07/04/how-to-move-windows-azure-virtual-machines-from-one-subscription-to-another/
He explains how you can attach your disk from the portal as well.

Related

Unable to launch Jupyter notebook "Setting up proxy to JupyterLab"

I created a VM Instance (n1-standard-8) for a project. I was using AI Platform > Workbench (Jupyter Notebook). I was able to read the data from Cloud storage and process it. After 2 months, I tried to start the notebook and clicked on 'OPEN JUPYTERLAB'. It just spins up saying "Setting up proxy to Jupyterlab".
Environment: Kaggle Python
Machine Type: n1-standard-8 (8 vCPUs, 30
GB RAM)
What is the possible issue?
PS: New to Google Cloud
One possible solution is to create a new VPC without adding the DNS rules for the various notebooks endpoints.
Then, use the configured network with a new notebook instance clicking the “OPEN JUPYTERLAB” URL.
You can see more information here.
Another possible thing that could be happening if you check your logs is an error that shows this “ - Required 'compute.instances.get' permission for project'”. This happens because you are using the non-default service account that you specified during the notebook creation. So the solution to this is to use the default service account.

Making Exact Copy of Server Google Cloud

I have recently started using Google Cloud over Digital Ocean because they are now offering a free trial. Although I am having an issue with figuring out how to make an exact copy of a server.
On Digital ocean, I can create an exact copy of a server as a new server, this will copy over all installd files and configurations to the new server. But all I have been able to find on GCP is a way to create a similar instance, but this only copies the settings of the ubuntu image. Is there a way to make an exact copy of a server on Google Cloud Platform? Thank you in advance!
You have two options:
a. Using persistent disk snapshots
b. Using machine image(Beta)
The same point of those methods is create some "Image" from your original server, and create new instance from the "Image".
The difference between (a.) and (b.) is, the scope of backup.
(a.) is only about a disk.
(b.) contains all the configuration, metadata, permissions, and data from one or more disks for a VM instance running on Compute Engine.
Please refer the official documents below.
Reference
Persistent Disk Snapshots
https://cloud.google.com/compute/docs/disks/create-snapshots
Machine Images
https://cloud.google.com/compute/docs/machine-images

How to get CentOS 8 option available as a VM option in GCP / GCE?

How would I go about getting CentOS 8 as a VM option in GCP/GCE? or creating my own CentOS 8 VM to run on GCP?
Any guides (README's, documents) there or contacts on how to get this done?
There is an article on GCP that talks about a technique/recipe for creating a boot image that is custom. The article is called Manually importing virtual disks. If I understand the basics of the story, you could use a technology such as VirtualBox to create a local VM image and then prepare that for import into Google Cloud Storage. From there, one could then seem to use that as a source for a new Compute Engine instance.
Currently GCP supports Centos-7 as a public image. As suggested by the previous member you can create a Custom image from source disks, images, snapshots, or images stored in Cloud Storage.
See instructions HERE
Your other option is to wait for Google to introduce Centos-8 in their supported family
Centos 8 is already available on GCE but it is without shielded VM support.

Create Custom Image from GCP VM with OS and data disks

I set up centos and windows VMs in Google Cloud which has many custom installations and configuration, with 1 boot disk and 4 data disks.
I am trying to create an image of both VMs. Only options I see in google cloud to create an image from disk, snapshot, another image, cloud file or virtual disk.
Looking for some way to create an image at VM level, which I can reuse to create new VMs something similar to custom ami in AWS or custom image in Azure.
The intention is if I create VM out of that image, my new VM will come up with all 5 disks. On GCP console, when I try to create an image, it has no option of using whole VM as a source instead, I can choose single disk as source.
Is there any way or workaround to achieve this in Google Cloud?
Thanks in advance.
I found GCP Instance Templates as a solution to my problem. I can reuse Instance Templates to deploy my custom VMs.

How to take a Virtual Machine's Snapshot using Puppet when using VMWare

The answers i found lead me towards using perl api for VMware orchestration.
or VirtuallyGhetto
but cannot find puppet samples, where a user can get permissions to create a VM SnapShot, and also revert it, without having root access, or admin rights.
I also found vmth but VMTH currently only works in a QEMU+KVM environment
You need to create a Exec resource and map it to the VMWare Api that allows you to create a VM Snapshot.
Note: Creating Snapshots are not usable anymore since you can create new VMs everytime.