WSL: Can't find kernel headers for 3.4.0
I’m not sure if it is even possible to do what I want - I want to run vagrant inside Bash on Ubuntu on Windows. And I’d like to run it with the VirtualBox hypervisor. This means that Ubuntu on Windows needs to do the virtualizing 👯
The problem I ran into is that I need to load virtualbox-dkms in the running kernel, but Ubuntu on Windows does not seem to provide these:
$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.4.0
E: Couldn't find any package by regex 'linux-headers-3.4.0'
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 2
- Comments: 19 (6 by maintainers)
Ooh, that’s an interesting use case. Unfortunately, though, it probably won’t work: VirtualBox has (and, I believe, requires) custom kernel modules; WSL only provides a Linux userspace at present, not a Linux kernel-space.
Could you install Windows Vagrant and run that from Linux? There’s a tool out there (mentioned elsewhere in this bug tracker) that lets you call Windows tools from Linux.
Not good news.
We use VirtualBox + Vagrant + Ansible… And we see we still need Linux host 😦 On Windows we cannot configure our development env (python, pip + depends). Sad.
@netcreatoreu – VirtualBox, Vagrant, Ansible, and most Python things all work directly on Windows. I’d be curious to know more about exactly what piece of your workflow you’re having trouble getting to work there.