complete windows app development on hyper-v virtual machine - windows

I am about to buy a Windows 8 enabled machine and I intend to write a windows mobile app. I don't have access to any windows 8 machine but I am really curious about one feature.
Can I use hyper-v virtual machine of windows 8.1 guest OS to emulate windows phones? I mean complete app development in virtual machine itself. I suspect that virtualization of hardware could be a problem like in windows 7 virtual machine on oracle VirtualBox.
I intend not to install visual studio on host OS, probably its the best way to keep it working for years. Windows OS is touchy.

It is possible, but not with Hyper-V. You have to use VMWare. VMWare supports nested virtualization. You disable Hyper-V in your host OS, install VMWare, enabled nested virtualization in VMWare and than you can install and enable Hyper-V (needed by the emulators) in the guest OS.

Related

Enable VT support for intel haxm on Hyper-V vm (Windows 10 Pro)?

Objective: To enable intel haxm on Guest OS (win 10 pro), for increasing the speed of Android emulator 10x then default visual studio emulator.
More on intelhaxm here
Issue:
When I check for pre-requisites for enabling haxm, the haxm_check.exe output says "VT support -- no"
Questions:
How to enable "VT support" on Hyper-V machine with Windows 10 Pro on it?
Is there a way to add delay during boot process and press some key to get into BIOS settings of Guest OS (WIndows 10 Pro)?
Here is Host setup:
Host machine: Windows 10 Pro
Virtualization in BIOS: Enabled
Hyper-V windows feature: Turned ON.
Here is Guest VM setup:
VM created with Hyper-V
Guest OS: Windows 10 Pro
Hyper-V windows feature: Turned OFF.
Unfortunately, this setup will not work. Intel HAXM has to run directly on the physical hardware and not as a guest. Moreover, if you have both technologies on the same hardware, Hyper-V and Intel HAXM can not co-exist at the same. See:
https://developer.android.com/studio/run/emulator-acceleration.html#vm-windows
Even with the upcoming nested- virtualization support in Microsoft Windows, HAXM will not work in it's current state because it is based on QEMU (https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/README) and not Hyper-V. The entire Android Emulator kernel and virtualization stack would have be re-written with Hyper-V in order to work in a nested scenario.

Docker For Windows kills my network on Windows 10 Bootcamp

Running Windows 10 Pro in bootcamp on my Mac. When I install Docker for Windows, the system reboots after enabling HyperV and when it comes back, my network adapters are dead. Any solutions for this? I'm not a Windows guy, and not very familiar with how the network drivers work. They all appear to be set up correctly, but the main Windows driver just wont fire up.
For testing, you can use the alternative approach of:
not enabling the Hyper-V feature
add a VirtualBox for Windows on that Windows 10 pro (in Mac bootcamp)
See if you can create containers with the -d virtualbox driver instead of relying on Hyper-V.

Is enabling Hyper-V is requisite to run the emulator for Windows Phone 8?

Is it NOT possible to run the emulator for Windows Phone 8 only by installing the Windows Phone SDK 8.0 with Visual Studio 2013 without enabling Hyper-V for the emulator?
No. Yes the Hyper-V is required, the reason I needed to buy a new laptop. It uses the virtual machine system / setup to run up a VM for the phone. In fact, you cannot start MS virtual machine manager on a PC without Hyper-v
See: https://msdn.microsoft.com/en-us/library/windows/apps/ff626524(v=vs.105).aspx
System requirements
•In the BIOS, the following features must be supported:
◦Hardware-assisted virtualization.
Hyper-V requirements
•In the BIOS, the following features must be enabled:
◦Hardware-assisted virtualization.
◦Second Level Address Translation (SLAT).
◦Hardware-based Data Execution Prevention (DEP).
•In Windows, Hyper-V must be enabled and running.
•You have to be a member of the local Hyper-V Administrators group.

Windows 8.1 phone emulator in Windows 8.1 VM?

I connect to a Windows 8.1 Pro VM through Hyper-V running on Windows Server 2008.
It looks like in order to run the Windows 8.1 phone emulator, you need to be running Windows 8.1 Pro that is capable on running Hyper-V.
Since I am already connecting to Windows through a VM, will I not be able to enable the necessary Hyper-V features to be able to start the Windows phone emulator?
An often found solution is to run the VM inside VMWare. This allows you to enable Hyper-V inside the virtual machine. Here's a detailed step-by-step guide.
As an alternative, it appears to be possible to enable Hyper-V inside the VM using the powershell command Add-WindowsFeature -name RSAT-Hyper-V-Tools, as found on this blog.
Both of these scenario's are unsupported, but appear to work fine.

Windows Phone Emulator error, Hyper-V components not running, Windows 8.1 hosted in VMWare Player

Environment:
Windows 7 Enterprise 64-bit as host o/s
Windows 8.1 Enterprise 64-bit hosted in VMWare Player (current version)
Visual Studio Express 2012 for Windows Phone (Update 4)
I get the following error when trying to run a very simple phone app. I know MS says a VM-within-a-VM environment isn't supported, but I know it can work. Has anyone had success with this? Any help is greatly appreciated.
Windows Phone Emulator
The Windows Phone Emulator wasn't able to ensure the virtual machine
was running:
Something happened while starting a virtual machine: 'Emulator WVGA
512 MB.' failed to start. (Virtual machine ID
CADD6546-129A-4683-9A2D-52EAE777E888)
The Virtual Machine Management Service failed to start the virtual
machine 'Emulator WVGA 512 MB.' because one of the
Hyper-V components is not running (Virtual machine ID
CADD6546-129A-4683-9A2D-52EAE777E888).
Prior to seeing the error, the emulator emits the on-screen messages:
Loading ...
The Windows Phone OS is starting ...
And then the error. Of all the Hyper-V services available, the Hyper-V Virtual Machine Management service is the only one which is running.
I've got Windows Phone 8 (and 8.1) emulators working in a VMware Player VM (running Windows 8, obviously) on a Windows 7 host.
You must first check the physical processor supports SLAT. If it does, you can set the "Virtualize Intel VT-x/EPT or AMD/RVI" in your VM's processor settings (Manage/Virtual Machine Settings/Processors). Then make sure the hypervisor.cpuid.v0 is set to "FALSE" in the vmx file for the VM. (exit VMware player before doing this). And you should be good to go.
See http://developer.nokia.com/community/wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator for a step-by-step guide on how to do this when creating a new VM.

Resources