-
Notifications
You must be signed in to change notification settings - Fork 797
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
Libvirt stop working after few minutes #11564
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. Diagnostic information
|
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. Diagnostic information
|
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
Ok problem founded. I installed cloud-init on my machine and it changes the network configuration a few moments after the starts of the distribution. That's why I lost connection to the qemu/KVM. I got the same problem later in the day. It seems the problem comes with snapd. I saw the following with
I suspect snapd to run a program that change time/date and/or network. After removing snapd, the problem is solved. I can now use libvirt/qemu/kvm without issues. |
Windows Version
Microsoft Windows [version 10.0.22631.3447]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
After a reboot, start a VM with libvirt with the following command.
After 3 or 4 minutes, the VM will freeze and become unavailable.
virsh list
still list the VM as running and the qemu process is still here. But I cannot destroy the VM or do anything on the VM (reboot, shutdown, ...):And the VM loose it's mac adress (don't know if it's related) :
# arp -e Address HWtype HWaddress Flags Mask Iface _gateway ether 00:15:5d:68:d5:2d C eth0 192.168.100.10 (incomplete) virbr1
Expected Behavior
The VM and libvirt should work everytimes.
Actual Behavior
Hello,
Got a problem with libvirt/kvm/qemu VM on my WSL2. After a windows reboot, I can start a VM and connect it to the NAT network. But after a short period of time. libvirt stop working and I can't do anything.
# virsh list Id Name State --------------------- 2 u26 paused
I can restart the libvirt service but it results in the same situation after a short period of time.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: