Running WSL and Oracle Virtual Box - Hypervisor issue
Linux - ContainersThis forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Running WSL and Oracle Virtual Box - Hypervisor issue
Hi all,
This is my 1st thread, hope I am adding it to the right section
I recently started a new job and my primary OS at the moment is Windows 10 for work purposes. I am branching out to start doing a bit of DevOps and was recommended to try Windows Subsystem Linux for setting my light Linux distros and Docker for Windows to run with WSL 2. Unfortunately, I'm running Oracle Virtual Box as well with another Win 10 VM that is configured for work use and this is where my problem comes in.
Hypervisor is causing issues having me utilize both Virtual Box as well as Hyper-V at the same time. Running WSL 2 causes Virtual Box VM to slow heavily, Hypervisor disabled to combat this prevents WSL from running. I have tried to configure both to manage resources accordingly but they can't function together. I recently had the ram upgraded to compensate for the memory and cpu throttling usage which made the machine perform a bit better, but the core issue still remains.
My only workaround at the moment is to enable and disable Hypervisor and Hyper-V whenever I need to use one of the 2 but I have to reboot my machine every time I apply the change.
If anyone has any advice or a workaround for this issue it would be greatly appreciated thank you Please let me know if you need any additional system info
Been a while since I used Hyper-V. Are you not able to export the VDI from VirtualBox in a format that is compatible with Hyper-V and import it? It would eliminate the need to use VirtualBox altogether. Unless I am missing something?
Thank you for the warm welcome! I have not thought about exporting the VDI to Hyper-V but I'm working with limited space usage, so the only option I can think of to make it work is running off an external drive using a Linux distro VM on Virtual Box as my physical storage is limited and I'm already using 60gb for the VM I'm running on a 256gb SSD.
P.S I tried to click "Add to reputation" but I may be blind as a bat as I can't find the radio/icon button to do so :P
I plan to use Docker for most of what I will be doing with some cloud integration but I although configuring the containers are lightweight I need to take into consideration other utilities I may need for future use
Sounds like you may be using a laptop so adding another internal HDD to the system in not an option. You could export the VDI to the external, run a test mount on Hyper-V and when you are satisfied that it works delete the old Vbox data altogether. Plenty of options to play around with. I guess it would be a matter of choosing which option would best suite your needs.
Guess you have a choice. Unfortunately you have only one choice, since the underlying CPU has only one set of "virtualization support" facilities.
"... was recommended to try [...]Docker for Windows to run with [...]. Unfortunately, I'm running Oracle Virtual Box"
"Docker for Windows" in fact runs an entire [Linux ...] hypervisor" of its own. It does so with the full intention of "concealing the magic, as much as possible," and it is certainly not wrong in doing so. But, right now, you really need to educate yourself as to exactly what the Microsoft engineers did. You are not technically at liberty to run another hypervisor – neither VirtualBox nor anything else – alongside their hypervisor. The hardware allows the presence of only one.
Last edited by sundialsvcs; 04-27-2021 at 08:09 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.