kvmtool icon indicating copy to clipboard operation
kvmtool copied to clipboard

lkvm dumps core

Open keerthanabs1 opened this issue 9 years ago • 5 comments

I am trying to run virtual machine using the tools .... and I see a core dump ... the dump points to location where it complains for missing kernel parameter. Can you please check and let me know what could be missing here?

./lkvm run -d ./linux-0.2.img -k ../../linux-3.13.0/arch/x86/boot/bzImage --network virtio

keerthanabs1 avatar Oct 30 '15 00:10 keerthanabs1

Please can you provide the core dump details you are referring to?

Note that this version of kvmtool is designed to be called with --oci-config and --oci-runtime, but the default command-line options should of course still work for testing.

jamesodhunt avatar Oct 30 '15 12:10 jamesodhunt

Here s the core dump details

(gdb) where #0 __strstr_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S:40 #1 0x0000000000405a72 in kvm_cmd_run_init (argc=, argv=) at builtin-run.c:608 #2 0x000000000040673d in kvm_cmd_run (argc=, argv=, prefix=) at builtin-run.c:659 #3 0x00000000004131f2 in handle_command (command=0x62c700 <kvm_commands>, argc=3, argv=0x7fffe0559f40) at kvm-cmd.c:84 #4 0x00007f6334c3fec5 in __libc_start_main (main=0x403840

, argc=4, argv=0x7fffe0559f38, init=, fini=, rtld_fini=, stack_end=0x7fffe0559f28) at libc-start.c:287 #5 0x0000000000403c62 in _start ()

(gdb) frame 1 #1 0x0000000000405a72 in kvm_cmd_run_init (argc=, argv=) at builtin-run.c:608 608 } else if (!strstr(kvm->cfg.kernel_cmdline, "root=")) {

(gdb) p kvm->cfg.kernel_cmdline $1 = 0x0

I have provided the "--kernel" or "-k" option when I execute the tool.

keerthanabs1 avatar Oct 30 '15 16:10 keerthanabs1

http://article.gmane.org/gmane.comp.emulators.kvm.devel/142415 ?

xnox avatar Nov 02 '15 12:11 xnox

Thanks, this worked.

keerthanabs1 avatar Nov 03 '15 22:11 keerthanabs1

@jamesodhunt have you, or could you please cherry-pick the patch mentioned above?

xnox avatar Nov 04 '15 11:11 xnox