Jacek
Jacek

Reputation: 1088

Is it possible to start a VM inside a WorkerRole?

I have a little OS that I'd like to start and use in Azure and thought about running a VM inside a WorkerRole. I know it is possible to use Azure VM roles for that but my exercise is to run it from inside a Worker/WebRole. Is that possible?

I tried installing VirtualBox and running that in a WorkerRole but when running the OS my WorkerRole just reboots.

Any help appreciated.

Upvotes: 3

Views: 162

Answers (2)

David Makogon
David Makogon

Reputation: 71067

You cannot run a VM inside a VM in Azure. A Worker Role (or instances of a Worker Role) are already Windows Server 2008 / 2012 VMs. As @Robert pointed out, Azure has support for Virtual Machines, whether Linux or Windows, where you have complete control of its contents.

Regarding I have a little OS that I'd like to start: You can only run supported OS's that are listed in the Virtual Machine gallery: Ubuntu, CentOS, Windows Server, SUSE currently. More info on Linux VMs here, Windows Server here.

Upvotes: 2

Robert Greiner
Robert Greiner

Reputation: 29722

What you are trying to do is not technically supported by Microsoft and is not recommended (even if you could easily) since Azure is constantly taking down and bringing back up your Web/Worker role instances in a deployment.

This means that any manual changes made to your WorkerRole will be undone any time Azure bounces your deployment (i.e. data center issues, migrations, etc.) This happens much more often than you'd think.

You should check out Azure's VM support which may have what you need.

Upvotes: 2

Related Questions