简体   繁体   中英

Running docker and 64 bit linux VM on my host windows10

As you all know Docker runs natively on windows 10 OS. This requires Hyper-V to be enabled. I did that and docker is running fine on my win 10. I wanted to run a 64 bit linux VM on my win 10. So I downloaded the oracle virtual box and ubuntu iso and when I opened the oracle vb it was showing only 32-bit guest versions. When I checked the online info, it recommends to turn off the Hyper-V for 64-bit guest versions to appear. I did that and was able to install the 64 bit ubuntu VM on my win 10 but it broke my docker running on win 10.

Is there any way where we can have both docker running and 64 bit virtual machine installed and running on my guest win 10 OS ??

It is not possible to run Hyper-V and Virtualbox at the same time. If Hyper-V is installed on the system then VT-x is not available for VirtualBox.

I have heard of workarounds, that make switching easy, but you have to reboot the system every time.

Ubuntu is supported on Hyper-V . This question on Microsoft forums suggests Hyper-V doesn't really care if you install a 32 bit or 64 bit OS in the virtual machine.

There are a lot of tutorials online on how to create a Hyper-V Linux virtual machine, 5 steps to create Ubuntu Hyper V Image seems as good as any.

Is there any way where we can have both docker running and 64 bit virtual machine installed and running on my guest win 10 OS ??

Double-check with VirtualBox 6.0.x (starting Dec. 2018):

2.34. Using Hyper-V with Oracle VM VirtualBox

Oracle VM VirtualBox can be used on a Windows host where Hyper-V is running. This is an experimental feature.

No configuration is required. Oracle VM VirtualBox detects Hyper-V automatically and uses Hyper-V as the virtualization engine for the host system. The CPU icon in the VM window status bar indicates that Hyper-V is being used.

Note

When using this feature, you might experience significant Oracle VM VirtualBox performance degradation on some host systems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM