-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting Hyper-V on Windows 10/11? #3327
Comments
Well - it looks like some progress has been made, but there are no docs. #3152 It also appears that it only configures VMs from a premade VHD/VHDX file, rather than doing a distro install. Can you provide any more info on how this is intended to be used, and if it is still a work-in-progress? |
@anirudhrb can you help add document for hyperv platform here and an example runbook? @PatrickLang , the hyperv platform completed first phase, it looks enough for your scenario. Please check below example, and let us know, if there is any question. For checks of guest Linux, you can create your own test case, and reference it in LISA to run. The tools of LISA can help dealing with compatibility of different distros. platform:
- type: hyperv
keep_environment: $(keep_environment)
admin_username: $(vhd_admin_username)
admin_password: $(vhd_admin_password)
requirement:
core_count:
min: 32
memory_mb:
min: 65536
hyperv:
hyperv_generation: 2
hyperv:
source:
type: local
files:
- source: $(vhd)
unzip: true
servers:
- address: $(hv_server_address)
username: $(hv_server_username)
password: $(hv_server_password) |
@squirrelsc ack, I will add documentation. |
Background
I use Hyper-V on Windows 10/11 desktops regularly for development and testing. This is mostly for my personal interest and open-source contributions, but I sometimes use it to reproduce issues developers report at work related to our internal tools.
I have some rough scripts I use to speed up setting up new distros, and generally use those instead of Vagrant so that I can also review and understand changes to the setup experience. Additionally, some desktop distributions still lack a full 'kickstart' or cloud-init which makes them much harder to manage through Vagrant.
Once installed, I generally do some basic checks with
lsmod
,journalctl
, and other tools to verify the correct modules are installed. I look at reported resolutions, errors, and other clues around Wayland or X11 initialization. I have been able to submit bugs and/or fixes to Fedora to make hyperv_drm the default, and more recently to diagnose and test a bug that prevented KDE Plasma's wayland compositor from starting in a Hyper-V VM. Resolution switching now works well in Fedora, but some issues still remain in Ubuntu 22+.Proposal
Since there are already ways to run on Azure, AWS, QEmu, I would like to see a way to wrap up local Hyper-V management with Lisa as well. The desktop distros I normally test are not often used in cloud environments, so I don't see Azure being a replacement for this testing.
Right now it looks like the best way I could take advantage of Lisa is to use the "Ready" runbook, but that still leaves VM management up to me. I think that could work as a good starting point for tests once a VM has been deployed.
One possible workflow I'm considering is:
The text was updated successfully, but these errors were encountered: