NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18k stars 14.01k forks source link

Update request: kvmtool 2023-07-12 → New snapshot version #319611

Closed peigongdsd closed 1 week ago

peigongdsd commented 4 months ago

Notify maintainers

@astro @mfrw

Kvmtool-2023-07-12 does not run on Linux 6.9.3 #1-NixOS. It complains about some lacked features of KVM.

lkvm run -k /boot/EFI/nixos/kernel-6.9.3-43phjnq2svdisbrjsw27ilko7tccnfvo3ll7bfaio4vvguotngja.efi  -i /boot/EFI/nixos/initrd-6.9.3-5gy36mie4gpyzbgis2ljarxswu7lfb3hf6xd5tpxgaxqlsfx343a.efi --loglevel debug
  Info: # lkvm run -k /boot/EFI/nixos/kernel-6.9.3-43phjnq2svdisbrjsw27ilko7tccnfvo3ll7bfaio4vvguotngja.efi -m 1472 -c 20 --name guest-6001
KVM_CREATE_PIT2 ioctl: No such file or directory

However the master-branch version built directly from github does.

./lkvm run -k /boot/EFI/nixos/kernel-6.9.3-43phjnq2svdisbrjsw27ilko7tccnfvo3ll7bfaio4vvguotngja.efi  -i /boot/EFI/nixos/initrd-6.9.3-5gy36mie4gpyzbgis2ljarxswu7lfb3hf6xd5tpxgaxqlsfx343a.efi                 
  Info: # lkvm run -k /boot/EFI/nixos/kernel-6.9.3-43phjnq2svdisbrjsw27ilko7tccnfvo3ll7bfaio4vvguotngja.efi -m 1472 -c 20 --name guest-6098
PPrroobbiinngg  EEDDDD  ((eedddd==ooffff  ttoo  ddiissaabbllee))......  ookk

No EFI environment detected.
early console in extract_kernel
input_data: 0x0000000003ab12cc
input_len: 0x0000000000a9a8a5
output: 0x0000000001000000
output_len: 0x00000000034f6070
kernel_total_size: 0x0000000002a30000
needed_size: 0x0000000003600000
trampoline_32bit: 0x0000000000000000
Physical KASLR using RDRAND RDTSC...
Virtual KASLR using RDRAND RDTSC...

Decompressing Linux... No EFI environment detected.
Parsing ELF... Performing relocations... done.
Booting the kernel (entry_offset: 0x000000000000007a).
[    0.000000] Linux version 6.9.3 (nixbld@localhost) (gcc (GCC) 13.2.0, GNU ld (GNU Binutils) 2.41) #1-NixOS SMP PREEMPT_DYNAMIC Thu May 30 07:45:04 UTC 2024
[    0.000000] Command line: noapic noacpi pci=conf1 reboot=k panic=1 i8042.direct=1 i8042.dumbkbd=1 i8042.nopnp=1 earlyprintk=serial i8042.noaux=1 console=ttyS0 root=/dev/vda rw 
[    0.000000] BIOS-provided physical RAM map:
......

Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

astro commented 4 months ago

@peigongdsd Why not open a PR?

peigongdsd commented 4 months ago

@peigongdsd Why not open a PR?

Not sure what version should I use, since there are other projects relying on kvmtool (like your microvm.nix) and also not sure whether the problem happens on others' machines or not. What do you think? Just take the snapshot of master branch?

astro commented 4 months ago

Exactly, I created the package with the latest available revision.

astro commented 4 months ago

Also, if you use and test kvmtool, consider adding yourself to the package's maintainers list.

peigongdsd commented 4 months ago

Okay, I'll do it.

peigongdsd commented 4 months ago

Hey bro, the url kvm-tool-a-new-release keeps returning 403 on my side. So does the older url you included in the package, namely kvm-tool-original. Any idea on this?

FliegendeWurst commented 1 week ago

Fixed in #320221