Replies: 4 comments 2 replies
-
In the log output (including the serial) it looks like it boots fine - I see that you're using --console null and --serial tty but specifying |
Beta Was this translation helpful? Give feedback.
-
The thing is – my getty shows up perfectly fine on the serial interface (and hypervisor’s CPU utilization stays at a reasonable level of 0%) if the Regardless changing I have also looked at the guest’s journal (by putting it on a shared filesystem), but it does not really have anything suspicious either. All things considered, if my deduction that this is a hang somewhere, is correct, then I wouldn't expect systemd or similar logs to show anything terribly wrong either. |
Beta Was this translation helpful? Give feedback.
-
I have the exact same problem
It boots fine without --net |
Beta Was this translation helpful? Give feedback.
-
I have also experienced this issue when using a virtio-net devices. The cloud-hypervisor integration tests worked on my machine, but using a virtio-net with a stock ubuntu 22.04 image did not. This indicates that the issue is with triggered by specific guest behavior. Perhaps there is a virtio-net feature flag being negotiated that isn't fully supported and/or tested be cloud-hypervisor. In my case, the guest kernel logs indicated a hang in the virtio-net client code. I don't use virtio-net (and am not entirely familiar with the spec), so I haven't looked into this too deeply. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When I boot a systemd-based VM with a TAP network interface enabled, I find that somewhere along the boot the VM stops making progress. I see 100% CPU usage on the hypervisor process. The guest linux kernel sometimes prints
If I boot this same VM with
qemu
orcrosvm
, using exactly the same guest and equivalent hypervisor settings, the guest boots successfully. This suggests to me that an issue is more likely incloud-hypervisor
, but I cannot really tell for sure. Similarly if I just remove the--net
argument the guest boots withcloud-hypervisor
just as well.Unfortunately I don’t really have the knowledge necessary to figure out how to investigate this further, and hence the help request.
To Reproduce
Steps to reproduce the behaviour: Will try to come up with something if there is no way for me to investigate this by myself.
Version
Output of
cloud-hypervisor --version
: 33.0Did you build from source, if so build command line (e.g. features):
VM configuration
What command line did you run (or JSON config data):
On the host side I created the TAP interface as such:
I also tried
--net tap=,mac=,ip=,mask=
as presented in the README as well asiommu=on/off
but the result was the same in either case.Guest OS version details: An "empty" NixOS 23.11 system built from sources from 2 weeks ago or so
Host OS version details: NixOS 23.11 system built from sources from 2 weeks ago
In either case linux kernel is 6.1.46.
Logs
Output of
cloud-hypervisor -v
from either standard error or via--log-file
: log.txtLinux kernel output: no logs from the host kernel as far as I can tell.
Beta Was this translation helpful? Give feedback.
All reactions