Does Google Cloud services support nested virtual machines? - nested

I'm trying to configure an application to run on Google Cloud. I was able to start a VM running Windows 2008 Server (64bit) and install VMWare Player inside it. Then I tried to install and boot a second VM within VMWare Player, and Windows crashed.
So, my question is, does Google Cloud support "nesting" VMs in this fashion?
In case it matters, the "inner" VM's operating system was Linux (also 64-bit).

You cannot run Virtual Machine inside the GCE VM, as Virtualization is not enabled in any of the machines which are created under GCE. Currently Google doesn't have this functionality in its VMs.
Even if you tried to enable the Hyper-V in the Windows Sever GCE instance it will not allow you to do this because the processor should support the version of hardware assisted Virtualization.
I would suggest to create another Linux VM on Google Cloud Services, if you still need another machine.

Nested support in GCE is now in Beta (as of September 2017):
Documentation:
https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
Blog posting:
https://cloudplatform.googleblog.com/2017/09/introducing-nested-virtualization-for.html
Disclosure: I work at Google on GCE.

Related

Is running a Linux container on windows AWS instance possible?

I'm trying to run a Linux (ubuntu LTS) container inside a windows server 2019 OS. The problem is that the windows OS runs as an AWS instance.
There have been problem for me trying to achieve this and I've been reading somewhat different opinions on the internet regarding whether or not it is possible. Some say it will be possible on a .metal instance which is bare metal. Currently I've been trying running it on a regular t3 instance with has virtualization type HVM.
To sum up my questions are:
Is running a linux container on windows aws instance possible?
If yes, how?
If not, will it be possible on a bare metal instance?
Please keep in mind that I need the container to run in a Windows environment due to multiple tasks the the OS needs to achieve (and I don't want multiple instances)
In order to use Docker Desktop on Windows, you need either Hyper-V or Windows Susbsystem for Linux enabled (which at its turn requires Hyper-V). Both solutions demand of VT-x capabilities, but you're running inside a VM, which means that is not so easy to achieve.
It is called "nested virtualization", and it is not supported in common EC2 virtual machines. (source)
You can certainly run Linux containers on a bare metal Windows instance (but why you should? it is way cheaper and simpler to create a Linux virtual machine on EC2 and communicate it with your Windows host). Should still that be your purpose, you can install Windows Server 2019 with Hyper-V. (tutorial)
Another alternative for SMALL, SMALL things, that could work without nested virtualization (I haven't tried), would be using WSL1. (more info)
WSL1 uses a compatibility layer between Windows and Linux system calls, without actually virtualizing the operating system. Some folks have been able to install Docker 17.09 on WSL1, but this is a very adventurous path I would not recommend taking.

Is it possible to use Docker in the windows Data Science vm from azure?

I got a Data Science VM in Azure with Windows and i tried to install Docker in it but it doesnt work. I read some articles which say, nested VM is only possible in DSv3 or E3 instances (https://stackoverflow.com/a/44817200).
But I also read, that it is possible in other VMs though (https://blogs.msdn.microsoft.com/malte_lantin/2017/08/03/using-gpu-powered-virtual-machines-in-the-cloud-for-your-machine-learning-and-deep-learning-workloads/). Can anyone clearify that?
When I installed docker in the DataScience VM I got an Hyper-V error and I was unable to start Hyper-V. The error code says, that there is not enoug storage but I got 50 GB free!
So I guess, that it might be a problem with the VM itself.
You need one of Dv3 or Ev3 series virtual machines to have the feature of nested virtualization. Nested virtualization is a feature that allows you to run Hyper-V inside of a Hyper-V virtual machine (VM).
Ref:
How to enable nested virtualization in an Azure VM
Nested Virtualization in Azure

HoloLens emulator on a virtual machine

I'm trying to develop for HoloLens but my laptop doesn't support the needed specs, so I was trying to figure out a virtualized solution (namely, using an Azure VM).
After unsuccessfully running the emulator on the Azure VM, I found that according to Microsoft (https://technet.microsoft.com/en-gb/library/hh831531), "The Hyper-V role is not supported on a Microsoft Azure virtual machine", which kills that idea.
Does anyone know of an alternative virtual option for developing and running the HoloLens emulator, which doesn't rely on the host machine's (i.e. my laptop) specs?
Yes, in the latest version of Unity which is Unity 5.5, there's a new feature called "Holographic Emulation" that will enable you to run on a simulated device directly in the editor.
As for the requirements, you need to have
Unity 5.5 installed in your machine
Windows 10 Anniversary Update (or later) installed
Here's the link to the blog in case you want to check more details about the simulator
Hololens emulator IS the Hyper-V virtual machine with Windows 10 and 3D graphic capabilities. The host machine should be able to run Hyper-V (CPU/BIOS limitation) and have a 3D adapter. More details are here:
https://learn.microsoft.com/en-us/windows/mixed-reality/using-the-hololens-emulator
Then you could install the emulator from
https://learn.microsoft.com/en-us/windows/mixed-reality/install-the-tools
Hololens emulator is not supported in VM due to CPU limitation, you can use holographic simulation in Unity instead.

can we install virtual os(vm ware) on azure

I am new to azure i have a doubt that can we install more virtual operating systems in azure cloud operating system
actually i have tried to implement a linux server in virtual machine later i got to know that we can not connect to linux server using remote desktops now what i am thinking is to install a virtual box on server and install another os. is it works! if yes how to do this! i am faceing diffrent problems with diffrent iso files
You can't install a virtualization service in a virtualized OS so no, you can't install VirtualBox in an Azure VM.
Yes you can RDP to a Linux VM in Azure. This Microsoft blog page has all the info on how to do that:
http://blogs.technet.com/b/uktechnet/archive/2013/11/12/running-a-remote-desktop-on-a-windows-azure-linux-vm.aspx

Installation CloudStack on Virtual Machine

I want to install CloudStack 4.2.0 on my 32 bit ubuntu in virtual box. It is possible?
And advantages/disadvantages of this from real machine?
Thanks.
I presume that you're talking about running the Apache CloudStack management server in a 32-bit virtual machine that runs in Virtual Box.
To do anything meaningful with CloudStack, you need at least one hypervisor to control. To avoid the need for hardware, many CloudStack developers use DevCloud. DevCloud comes with configuration scripts that make it easier for a beginner to setup the Apache CloudStack management server.
One issue is memory. If the O/S running VirtualBox is 32-bit, you'll only have 3 gigs of RAM for user processes. Of this, DevCloud will use about 2 gigs, so memory can be quite tight.
Another issue is networking. Make sure that there is a network path from the management server to the hypervisors it is meant to control and the storage that it will use for templates (aka secondary storage).
Yes you can deploy apache cloudstack on a virtual machine; you can deploy even a whole cloudstack infrastructure on virtual machines provided that you have enough RAM.
You can deploy primary storage, secondary storage, mySQL server and cloudstack management server on Virtual Machines; however the host VMs which will provide the execution environment of your cloudstack instances need to provide nested virtualization which is not available in virtualbox, do use VMWare workstation instead as your type2 hypervisor .
good luck

Resources