I have a Ubuntu 24.04 LTS device. i want to install Windows 10 and enable Windows hypervisor platform / Hyper-V and virtual machine platform. What's the best solution for achieve this goal?
Note:
I do not want to set-up dual boot. It should be easy to use like virtualbox (turn on and off anytime when using ubuntu)
I do not have a problem about CPU or RAM capacity.
I expect good hardware performance in windows 10 virtual machine and no lags or graphical issues.
I do not need to know how to install windows 10 or enable windows hypervisor platform and virtual machine platform.
1 https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v#enable-the-hyper-v-role-through-settings
2 https://support.microsoft.com/en-us/windows/enable-virtualization-on-windows-c5578302-6e43-4b4b-a449-8ced115f58e1
If anyone is curious why I want to do this:
(a) I want to enable and test Windows Subsystem for Android.
(If you want to use android apps on Linux. I recommend you to use https://waydro.id/. Alternatively, you can install (credit: @raj comment) Android x86, BlissOS or other on KVM, virtualbox or vmware.
(b) I want to use Onenote. I couldn't find a successful way to install it through Wine on Ubuntu. I also know https://snapcraft.io/onenote-desktop https://github.com/patrikx3/onenote but it is cloud based. I know other popular Onenote alternatives and I don't feel satisfied. So I am doing this as a 2-in-1 solution.
If someone has similar requirement, you can follow this simple guide to install KVM, Create Windows 10 / Windows 11 VM and set-up Windows Subsystem for Android. You can also install offline Onenote from MS store. This is the best solution i can recommend.
Please check if your CPU supports hardware virtualization and can use KVM acceleration. (If kvm-ok doesn't work, install cpu-checker package.
sudo apt install cpu-checker
)Install KVM Packages and Virt Manager.
Members of the
libvirt
andkvm
user groups can run virtual machines. If you want specific users to run VMs, add them to those user groups.Start virt manager and create VM. Launch!
(You can choose resources as you need. If you allocate more resources, guest os will run smoothly)
Notes:
If you check the guest os systeminfo. you'll see "a hypervisor has been detected. features required for hyper-v will not be displayed". You can ignore it. Search for Turn Windows features on or off and enable
Hyper-V
,Virtual Machine Platform
andWindows Hypervisor Platform
. After that, you can set-up Windows subsystem for Android. "Microsoft is ending support for the Windows Subsystem for Android™️ (WSA). source. There're many linux solutions, you can try them.