Skip to content
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

Boot loop when trying to install Xen #1818

Open
julie-nga opened this issue Nov 26, 2024 · 4 comments
Open

Boot loop when trying to install Xen #1818

julie-nga opened this issue Nov 26, 2024 · 4 comments

Comments

@julie-nga
Copy link

Hello,

I've tried to install drakvuf . I've downloaded the latest DRAKVUF builds (the .deb files for ubuntu-jammy) and launched them with sudo dpkg -i drakvuf-bundle-1.1-168dac3-ubuntu-jammy.deb and sudo dpkg -i xen-hypervisor-4.19.0-ubuntu-jammy-amd64.deb . This is the output I have for the second command :
image
[...]

image

It seems fine but when I do sudo reboot I have a boot loop : the screen switches between these two screens continuously and the VM never starts :
image
image

What could I do to solve this ?

(PS: I've also tried doing it on a Debian 11 VM instead of the Ubuntu 22.04 VM but I also had a boot loop so I'm really lost on what to do)

Setup (Nested virtualization)
Host OS: Windows 11
Host VM: Ubuntu 22.04.5 desktop
Virtualization of Host VM: with VMware Workstation
Drakvuf: Installation guide

@tklengyel
Copy link
Owner

If you attach a serial console to the VM you can probably see the Xen/dom0 boot log to determine what the issue is. My guess would be not enabling nested-VMX feature?

@julie-nga
Copy link
Author

If you attach a serial console to the VM you can probably see the Xen/dom0 boot log to determine what the issue is. My guess would be not enabling nested-VMX feature?

Actually I’ve already enabled the nested-VMX feature on VMware Workstation. For attaching a serial console to the VM, I’m not too familiar with how to set that up, and I’m a bit concerned it might take more time than I can manage right now since I’m new to this.

What confuses me is that I was able to install and run DRAKVUF Sandbox without encountering a boot loop for Xen (on a Debian 11 host VM). I’m not sure why it’s behaving differently in this setup. Any thoughts on what else could be causing this?

@Akenth0r
Copy link
Contributor

Same for latest xen

[�[0;32m  OK  �[0m] Mounted �[0;1;39mHuge Pages File System�[0m.
[    5.158885] systemd[1]: Mounted POSIX Message Queue File System.
[�[0;32m  OK  �[0m] Mounted �[0;1;39mPOSIX Message Queue File System�[0m.
[    5.160785] systemd[1]: proc-xen.mount: Mount process exited, code=exited, status=32/n/a
[    5.162184] systemd[1]: proc-xen.mount: Failed with result 'exit-code'.
[    5.163238] EXT4-fs (sda3): re-mounted cb7093e6-e77c-4ffc-ba36-f34f01181693 r/w. Quota mode: none.
[    5.164804] systemd[1]: Failed to mount /proc/xen.
[�[0;1;31mFAILED�[0m] Failed to mount �[0;1;39m/proc/xen�[0m.
See 'systemctl status proc-xen.mount' for details.
[    5.171316] systemd[1]: Dependency failed for xen-init-dom0, initialise Dom0 configuration (xenstore nodes, JSON configuration stub).
[�[0;1;38;5;185mDEPEND�[0m] Dependency failed for �[0;1;39mxen-…des, JSON configuration stub)�[0m.
[    5.179794] systemd[1]: xen-init-dom0.service: Job xen-init-dom0.service/start failed with result 'dependency'.
[    5.181482] systemd[1]: Dependency failed for qemu for xen dom0 disk backend.
[�[0;1;38;5;185mDEPEND�[0m] Dependency failed for �[0;1;39mqemu for xen dom0 disk backend�[0m.
[    5.184483] systemd[1]: xen-qemu-dom0-disk-backend.service: Job xen-qemu-dom0-disk-backend.service/start failed with result 'dependency'.
[    5.186083] systemd[1]: Dependency failed for Xenconsoled - handles logging from guest consoles and hypervisor.
[�[0;1;38;5;185mDEPEND�[0m] Dependency failed for �[0;1;39mXenc…guest consoles and hypervisor�[0m.
[    5.189040] systemd[1]: xenconsoled.service: Job xenconsoled.service/start failed with result 'dependency'.
[    5.189145] lp: driver loaded but no devices found
[    5.190270] systemd[1]: Dependency failed for The Xen xenstore.
[�[0;1;38;5;185mDEPEND�[0m] Dependency failed for �[0;1;39mThe Xen xenstore�[0m.
[    5.192675] systemd[1]: xenstored.service: Job xenstored.service/start failed with result 'dependency'.
[    5.194249] systemd[1]: Started Journal Service.
[�[0;32m  OK  �[0m] Started �[0;1;39mJournal Service�[0m.
[�[0;32m  OK  �[0m] Mounted �[0;1;39mKernel Debug File System�[0m.
[�[0;32m  OK  �[0m] Mounted �[0;1;39mKernel Trace File System�[0m.
[�[0;32m  OK  �[[    5.199091] ppdev: user-space parallel port driver
0m] Finished �[0;1;39mSet the console keyboard layout�[0m.
[�[0;32m  OK  �[0m] Finished �[0;1;39mCreate List of Static Device Nodes�[0m.
[�[0;32m  OK  �[0m] Finished �[0;1;39mMonitoring of LVM… dmeventd or progress polling�[0m.
[�[0;32m  OK  �[0m] Finished �[0;1;39mLoad Kernel Module configfs�[0m.
[�[0;32m  OK  �[0m] Finished �[0;1;39mLoad Kernel Module drm�[0m.
[�[0;32m  OK  �[0m] Finished �[0;1;39mLoad Kernel Module efi_pstore�[0m.
[�[0;32m  OK  �[0m] Finished �[0;1;39mLoad Kernel Module fuse�[0m.
[�[0;32m  OK  �[0m] Finished �[0;1;39mRemount Root and Kernel File Systems�[0m.
         Activating swap �[0;1;39m/swapfile�[0m...
         Mounting �[0;1;39mFUSE Control File System�[0m...
         Mounting �[0;1;39mKernel Configuration File System�[0m...
[    5.222125] Adding 2097148k swap on /swapfile.  Priority:-2 extents:6 across:2260988k 
         Starting �[0;1;39mFlush Journal to Persistent Storage�[0m...
[    5.225516] systemd-journald[346]: Received client request to flush runtime journal.
         Starting �[0;1;39mLoad/Save Random Seed�[0m...

@tklengyel
Copy link
Owner

Looks to me you are missing the dependencies. Did you run apt-get -f install after you installed the prebuilt deb file with dpkg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants