-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to boot ordinary linux distributions in VMs? #18
Comments
Yes, that's the way of doing it currently. |
I more or less managed to build everything for x86_64 (without proper devices trees and whatnot) and have it include the vmlinuz and initrd of Ubuntu 22, but it fails to start the guest in qemu:
I guess I am crashing out here: Vcpu_ptr::Vm_state_t
Vcpu_ptr::determine_vmm_type()
{
if (!l4util_cpu_has_cpuid())
throw L4::Runtime_error(-L4_ENOSYS,
"Platform does not support CPUID. Aborting!\n");
l4_umword_t ax, bx, cx, dx;
l4util_cpu_cpuid(0, &ax, &bx, &cx, &dx);
if (bx == 0x756e6547 && cx == 0x6c65746e && dx == 0x49656e69)
return Vm_state_t::Vmx;
else if (bx == 0x68747541 && cx == 0x444d4163 && dx == 0x69746e65)
return Vm_state_t::Svm;
else
throw L4::Runtime_error(-L4_ENOSYS, "Platform not supported. Aborting!\n");
} Since I am currently working in a Linux VM w/o nested virt, I assume that uvmm requires the virtualization extensions and cannot do emulation. Therefore I tried to build an iso image which I could throw into my local Hyper-V (for nested virt) or boot on real hardware, but it says
Am I missing some dependencies required for |
I have built an iso image with |
Could be difference with UEFI vs. PC-BIOS. Does the type of GRUB (system GRUB) used to generate the ISO match the ones used on the target boxes? A T520 probably does not use EFI...(?) |
I have now plugged the stick into an Asus PRIME X570-P, explicitly selected it in the boot device menu, but it don't get to see anything of grub, and after a few seconds my windows starts coming up (probably because it is next in line). The iso should work out-of-the-box, right? I just threw it into Rufus and flashed the first USB device I could find. |
I would hope so. At least the following works for me in QEMU.
Or
|
After examining your isos and prowling through your perl scripts I have noticed a few things:
Any idea why the bootloader is missing in my efi images? Do you have CI scripts that build certain L4Re variations which I could have a look at? |
Hey, your tutorial on booting linux guests goes into detail how to explicitly supply the kernel image and initrd to uvmm, and the uvmm documentation has some more details.
How do you get from official distribution isos to a functional guest in uvmm? Should I just extract vmlinux and initrd and plug it in?
The text was updated successfully, but these errors were encountered: