Run Hyper-V and VirtualBox on the same machine

    I am a Microsoft man and of course i always use Enterprise or Datacenter Servers. License for Datacenter is not cheap if you just want to have a lab environment. Special when you have more than 4 Virtual machine running under testing.

    Enterprise with hyperv: Max 4 VMs
    Datacenter with hyperv: Unlimited of VMs

    Alternativ is to you Oracle Virtualbox (free License) running, and you wil more VMs running without costing you alots.  The challenge is that VirtualBox and Hyper-V cannot co-exist on the same machine.  Only one hypervisor can run at a time, and since Hyper-V runs all the time, while VirtualBox only runs when it is launched, VirtualBox is the loser in this scenario.

    It took me a lots of time to find out a workaround way. Maybe there is another way, but i don't find it yet. Please email me if you find another workaround way.

    The workaround is to disable Hyper-V when you want to run VirtualBox. It is to change the boot configuration using bcdedit and reboot server after that.

    So Problem is:

                           Cannot install x64 bits OS on VirtualBox, when you already have hyper-v running.


                           If you run bcdedit with no arguments, you should see a property called hypervisorlaunchtype.  This will be set to off or auto.


    To disable Hyper-V in order to use VirtualBox, open a command prompt as administrator and run the command:

                       bcdedit /set hypervisorlaunchtype off

    You’ll need to reboot, but then you’ll be all set to run VirtualBox.  To turn Hyper-V back on, run:

              bcdedit /set hypervisorlaunchtype auto

    and then reboot.

    Some of you have followed Microsoft's Best practice for Folder Redirection, that also mean that you have configure the default settings and allowed the systems to create folders.

    It is wonderful, because the system choose what is best for you. But later you will have some problem that stop you when you want to check users redirected folders. YOU DON'T HAVE ACCESS TO THE FOLDERS!!.
    It is because by default "Grant the user exclusive rights to My Documents" check box is selected, and it means that the user and local system have full control over the folder, and no one else. NOT EVEN administrator, and you are one of them. 

    It does not help when you clear this check box, because it does not effect what have been created. Just what will be create. If you clear the checkbox, and next time you create new you, you will have permission to the users folders.
    So what can we do the get access to those folders. There is a script made by Don Jones, that help you to change the permissions. You will need to download some application too. Just follow the solution under.


          Administrators does not have access to the Redirected Folders. It make problem if administrators want to check users folder.
           Big problem is that when administrator using StorageCraft backup and want to restore users files/folders.


            STEP 1: Download and install PsExec and PowerShell (if you don't have it -  Powershell is standard on W2K8 and newer OS.)

            STEP 2: Create a file called ChangePermissions.ps1 or something.
                         Copy and paste the script to the file.

    # CACLS rights are usually
    # F = FullControl
    # C = Change
    # R = Readonly
    # W = Write

    $StartingDir= "C:\Users"



    $Verify=Read-Host `n "You are about to change permissions on all" `
    "files starting at"$StartingDir.ToUpper() `n "for security"`
    "principal"$Principal.ToUpper() `
    "with new right of"$Permission.ToUpper()"."`n `
    "Do you want to continue? [Y,N]"

    if ($Verify -eq "Y") {

    foreach ($file in $(Get-ChildItem $StartingDir -recurse)) {
    #display filename and old permissions
    write-Host -foregroundcolor Yellow $file.FullName
    #uncomment if you want to see old permissions
    #CACLS $file.FullName

    #ADD new permission with CACLS
    CACLS $file.FullName /E /P "${Principal}:${Permission}" >$NULL

    #display new permissions
    Write-Host -foregroundcolor Green "New Permissions"
    CACLS $file.FullName

                Make change two lines.

    $StartingDir= "C:\Users"       >>> To redirected folders share

    $Principal="Administrators"    >>> To Administrator groups - DOMAINNAME\ADMINGROUPS


    Make and directory in C: ( temp)
    Copy script and psexec to the temp directory

    Open command prompt
    Run the script

    psexec -s -i powershell -noexit "& 'C:\temp\ChangePermissions.ps1'"

    A Powershell window popup like this:

    Just choose Y.

    Here is some result:


    What does the parameter means:

    psexec -s -i powershell -noexit "& 'C:\temp\ChangePermissions.ps1'"


    -s : Run remote process in the System account.

    -i : Run the program so that it interacts with the desktop of the specified session on the remote system. If no session is specified the process runs in the console session.

    -noexit : switch will prevent PowerShell from closing when the script terminates, so you get a chance to read the output.



    Some of you might have problem when creating Virtual Machine with hyperv. It's also a problem when running Windows 8.

    Question: Cannot create VM. HyperV failed to add Device "Microsoft Synthetic Ethernet Port"


    Solution: Could be the antivirus that blocked the network for hyperv to add Device. Try to disable antivirus and then create VM. After that start antivirus.

    © 2017 IT SATS

    Please publish modules in offcanvas position.