Re: [kvm-devel] boot stops after console handover?
Antoine Martin wrote: Carlo Marcelo Arenas Belon wrote: On Sat, Jan 12, 2008 at 06:07:19PM +, Antoine Martin wrote: If that doesn't work, maybe you can upload an image for me to debug. http://194.145.196.85/kvm/vmlinuz-2.6.24-rc7.bz2 Any luck? Any other ideas for me to try? see if the problem goes away with -no-kvm-irqchip and using nolapic in the guest kernel No change. if that doesn't fix it, use the last kvm code as an external module No change. :( All good now. FYI: Once I got the console output after boot using a cmdline like earlyprintk=serial,ttyS0,115200,keep console=ttyS0,115200 I found that the kernel was spinning, failing because of some problem with the fstab or something like that (can't remember now.. need sleep) That's using 2.6.24.2 Note that I have to use the '-kernel' switch otherwise it doesn't work. Cheers Antoine - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
Carlo Marcelo Arenas Belon wrote: On Sat, Jan 12, 2008 at 06:07:19PM +, Antoine Martin wrote: If that doesn't work, maybe you can upload an image for me to debug. http://194.145.196.85/kvm/vmlinuz-2.6.24-rc7.bz2 Any luck? Any other ideas for me to try? see if the problem goes away with -no-kvm-irqchip and using nolapic in the guest kernel No change. if that doesn't fix it, use the last kvm code as an external module No change. :( Antoine - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
If that doesn't work, maybe you can upload an image for me to debug. http://194.145.196.85/kvm/vmlinuz-2.6.24-rc7.bz2 Any luck? Any other ideas for me to try? FYI, just tried building 2.6.24-rc7-git4 and got this warning: (...) LD vmlinux.o MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x2cb657): Section mismatch: reference to .init.text:register_cpu_notifier (between 'kvm_init_x86' and 'kvm_sched_in') WARNING: vmlinux.o(.text.head+0xe4): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') WARNING: vmlinux.o(.text.head+0xeb): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') LD vmlinux Cheers Antoine - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
Antoine Martin wrote: If that doesn't work, maybe you can upload an image for me to debug. http://194.145.196.85/kvm/vmlinuz-2.6.24-rc7.bz2 Any luck? Any other ideas for me to try? Haven't got around to it yet, sorry. FYI, just tried building 2.6.24-rc7-git4 and got this warning: (...) LD vmlinux.o MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x2cb657): Section mismatch: reference to .init.text:register_cpu_notifier (between 'kvm_init_x86' and 'kvm_sched_in') WARNING: vmlinux.o(.text.head+0xe4): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') WARNING: vmlinux.o(.text.head+0xeb): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') LD vmlinux Probably harmless, but worth reporting to lkml. -- Any sufficiently difficult bug is indistinguishable from a feature. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
On Sat, Jan 12, 2008 at 11:01:28PM +0200, Avi Kivity wrote: Antoine Martin wrote: FYI, just tried building 2.6.24-rc7-git4 and got this warning: (...) LD vmlinux.o MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x2cb657): Section mismatch: reference to .init.text:register_cpu_notifier (between 'kvm_init_x86' and 'kvm_sched_in') WARNING: vmlinux.o(.text.head+0xe4): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') WARNING: vmlinux.o(.text.head+0xeb): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') LD vmlinux Probably harmless, but worth reporting to lkml. couldn't replicate it here, but I'd seen usually those kind of errors when building a kernel that hasn't been mrproper between re-configurations Carlo - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
Carlo Marcelo Arenas Belon wrote: On Sat, Jan 12, 2008 at 11:01:28PM +0200, Avi Kivity wrote: Antoine Martin wrote: FYI, just tried building 2.6.24-rc7-git4 and got this warning: (...) Probably harmless, but worth reporting to lkml. couldn't replicate it here, but I'd seen usually those kind of errors when building a kernel that hasn't been mrproper between re-configurations cp .config ../config-2.6.24-rc7-git4 make mrproper cp ../config-2.6.24-rc7-git4 .config make -j 4 (...) MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x2cb657): Section mismatch: reference to .init.text:register_cpu_notifier (between 'kvm_init_x86' and 'kvm_sched_in') WARNING: vmlinux.o(.text.head+0xe4): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') WARNING: vmlinux.o(.text.head+0xeb): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map You can grab the .config here: http://194.145.196.85/kvm/config-2.6.24-rc7-git4 Antoine - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
On Sun, Jan 13, 2008 at 01:19:13AM +, Antoine Martin wrote: Carlo Marcelo Arenas Belon wrote: On Sat, Jan 12, 2008 at 11:01:28PM +0200, Avi Kivity wrote: Antoine Martin wrote: FYI, just tried building 2.6.24-rc7-git4 and got this warning: (...) Probably harmless, but worth reporting to lkml. couldn't replicate it here, but I'd seen usually those kind of errors when building a kernel that hasn't been mrproper between re-configurations cp .config ../config-2.6.24-rc7-git4 make mrproper cp ../config-2.6.24-rc7-git4 .config make oldconfig # presumed make -j 4 replicated with your configuration, but can't still reproduce it with mine even when forcing as you do CONFIG_KVM=y CONFIG_KVM_INTEL=y available from : http://tapir.sajinet.com.pe/kvm/config-2.6.24-rc7-git4 (...) MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x2cb657): Section mismatch: reference to .init.text:register_cpu_notifier (between 'kvm_init_x86' and 'kvm_sched_in') WARNING: vmlinux.o(.text.head+0xe4): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') WARNING: vmlinux.o(.text.head+0xeb): Section mismatch: reference to .init.data.2:trampoline_level4_pgt (between 'ident_complete' and 'secondary_startup_64') LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map You can grab the .config here: http://194.145.196.85/kvm/config-2.6.24-rc7-git4 is this the configuration for the host kernel? if you want to use the last code for kvm you should have CONFIG_KVM disabled and instead use the external module as instructed in (HINT: you don't have a patched kernel) : http://kvm.qumranet.com/kvmwiki/HOWTO1 not sure which version will be part of 2.6.24 but I suspect it might not be kvm 59. Carlo - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
On Sat, Jan 12, 2008 at 06:07:19PM +, Antoine Martin wrote: If that doesn't work, maybe you can upload an image for me to debug. http://194.145.196.85/kvm/vmlinuz-2.6.24-rc7.bz2 Any luck? Any other ideas for me to try? see if the problem goes away with -no-kvm-irqchip and using nolapic in the guest kernel if that doesn't fix it, use the last kvm code as an external module Carlo - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
Antoine Martin wrote: Avi Kivity wrote: Antoine Martin wrote: Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 Does regular boot (without -kernel) work? Nope, it's just spinning at 100% cpu, tried stock 2.6.23.12 and 2.6.24-rc6, lots of clock_gettime(CLOCK_MONOTONIC,... Do I need to enable/disable some RTC / HPET options? It's worth trying. If that doesn't work, maybe you can upload an image for me to debug. -- error compiling committee.c: too many arguments to function - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Avi Kivity wrote: Antoine Martin wrote: Avi Kivity wrote: Antoine Martin wrote: Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 Does regular boot (without -kernel) work? Nope, it's just spinning at 100% cpu, tried stock 2.6.23.12 and 2.6.24-rc6, lots of clock_gettime(CLOCK_MONOTONIC,... Do I need to enable/disable some RTC / HPET options? It's worth trying. Didn't help... If that doesn't work, maybe you can upload an image for me to debug. http://194.145.196.85/kvm/vmlinuz-2.6.24-rc7.bz2 Thanks for your time Antoine -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREKAAYFAkeDxswACgkQGK2zHPGK1ru8ZgCfcbt/mXL8dE4tiAXcBYm4DjnN T5wAnA1fU9kEl5AUN7m7GN+r2yiLRxcx =cwev -END PGP SIGNATURE- - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
Antoine Martin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 Does regular boot (without -kernel) work? -- error compiling committee.c: too many arguments to function - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
Avi Kivity wrote: Antoine Martin wrote: Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 Does regular boot (without -kernel) work? Nope, it's just spinning at 100% cpu, tried stock 2.6.23.12 and 2.6.24-rc6, lots of clock_gettime(CLOCK_MONOTONIC,... Do I need to enable/disable some RTC / HPET options? Cheers Antoine here is the start of the strace: # execve(/usr/local/bin/qemu-system-x86_64, [qemu-system-x86_64, -hda, ./BusyBox-1.5.0-amd64-root_fs, -m, 384, -nographic, -append, earlyp rintk=serial,115200...], [/* 26 vars */]) = 0 brk(0) = 0x62541000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ae8327b7000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ae8327b8000 access(/etc/ld.so.preload, R_OK) = -1 ENOENT (No such file or directory) open(/etc/ld.so.cache, O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=23976, ...}) = 0 mmap(NULL, 23976, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ae8327b9000 close(3)= 0 open(/lib/libm.so.6, O_RDONLY)= 3 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\0?\0\0\0\0\0\0..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=526472, ...}) = 0 mmap(NULL, 2621672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae8329b8000 mprotect(0x2ae832a38000, 2093056, PROT_NONE) = 0 mmap(0x2ae832c37000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7f000) = 0x2ae832c37000 close(3)= 0 open(/lib/libz.so.1, O_RDONLY)= 3 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0P\35\0\0\0\0\0\0..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=84272, ...}) = 0 mmap(NULL, 2179560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae832c39000 mprotect(0x2ae832c4d000, 2093056, PROT_NONE) = 0 mmap(0x2ae832e4c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x2ae832e4c000 close(3)= 0 open(/usr/lib/libSDL-1.2.so.0, O_RDONLY) = 3 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0pe\0\0\0\0\0\0..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=255360, ...}) = 0 mmap(NULL, 2361936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae832e4e000 mprotect(0x2ae832e8a000, 2097152, PROT_NONE) = 0 mmap(0x2ae83308a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3c000) = 0x2ae83308a000 mmap(0x2ae83308c000, 10832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ae83308c000 close(3)= 0 open(/lib/libpthread.so.0, O_RDONLY) = 3 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\260W\0\0\0\0\0\0..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=131897, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ae83308f000 mmap(NULL, 2204528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae83309 mprotect(0x2ae8330a5000, 2097152, PROT_NONE) = 0 mmap(0x2ae8332a5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x2ae8332a5000 mmap(0x2ae8332a7000, 13168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ae8332a7000 close(3)= 0 open(/lib/librt.so.1, O_RDONLY) = 3 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\300\\0\0\0\0\0\0..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=35688, ...}) = 0 mmap(NULL, 2132968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae8332ab000 mprotect(0x2ae8332b3000, 2093056, PROT_NONE) = 0 mmap(0x2ae8334b2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x2ae8334b2000 close(3)= 0 open(/lib/libutil.so.1, O_RDONLY) = 3 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\320\16\0\0\0\0\0\0..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=10488, ...}) = 0 mmap(NULL, 2105624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae8334b4000 mprotect(0x2ae8334b6000, 2093056, PROT_NONE) = 0 mmap(0x2ae8336b5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x2ae8336b5000 close(3)= 0 open(/lib/libc.so.6, O_RDONLY)= 3 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\220\334\1\0\0\0\0\0..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1293456, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2ae8336b7000 mmap(NULL, 3399928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2ae8336b8000 mprotect(0x2ae8337ee000, 2093056, PROT_NONE) = 0 mmap(0x2ae8339ed000, 20480, PROT_READ|PROT_WRITE,
Re: [kvm-devel] boot stops after console handover?
On Mon, Jan 07, 2008 at 07:30:44PM +, Antoine Martin wrote: Avi Kivity wrote: Antoine Martin wrote: Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 Does regular boot (without -kernel) work? Nope, it's just spinning at 100% cpu, tried stock 2.6.23.12 and 2.6.24-rc6, lots of clock_gettime(CLOCK_MONOTONIC,... this is a big guess as I have no way to test it or know the internals well enough to come with an authoritative answer, but I remember having a similar problem once which was fixed by using the kernel option nolapic Do I need to enable/disable some RTC / HPET options? there used to be a bug about it before which was closed by the reported even though I was able to reproduce it after all (haven't looked since) and it was related to the use of CONFIG_HPET_EMULATE_RTC=y in the guest kernel. sorry for not giving you any hard evidence, but I am just going from memory here and though I would mention it just in case it could help. Carlo - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
Carlo Marcelo Arenas Belon wrote: On Mon, Jan 07, 2008 at 07:30:44PM +, Antoine Martin wrote: Avi Kivity wrote: Antoine Martin wrote: Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 Does regular boot (without -kernel) work? Nope, it's just spinning at 100% cpu, tried stock 2.6.23.12 and 2.6.24-rc6, lots of clock_gettime(CLOCK_MONOTONIC,... this is a big guess as I have no way to test it or know the internals well enough to come with an authoritative answer, but I remember having a similar problem once which was fixed by using the kernel option nolapic I assume this is for the host? (no effect on the guest) unfortunately that box won't boot with nolapic, the sata controllers timeout. (although I haven't tried turning apic off in the bios) Do I need to enable/disable some RTC / HPET options? there used to be a bug about it before which was closed by the reported even though I was able to reproduce it after all (haven't looked since) and it was related to the use of CONFIG_HPET_EMULATE_RTC=y in the guest kernel. I've disabled that, and everything else I could trim. Still no luck :( sorry for not giving you any hard evidence, but I am just going from memory here and though I would mention it just in case it could help. Thanks, much appreciated. gdb gives me this, dunno if this helps: #0 0x2b231784d777 in ioctl () from /lib/libc.so.6 #1 0x600ef2df in kvm_run (kvm=0x62541010, vcpu=0) at libkvm.c:901 #2 0x6008bdb6 in kvm_cpu_exec (env=value optimized out) at /usr/src/kvm-59/qemu/qemu-kvm.c:143 #3 0x6008bf80 in kvm_main_loop_cpu (env=0x62546100) at /usr/src/kvm-59/qemu/qemu-kvm.c:341 #4 0x600108f7 in main (argc=8, argv=0x7fff9422e758) at /usr/src/kvm-59/qemu/vl.c:7771 Which is this: r = ioctl(fd, KVM_RUN, 0); where int fd = kvm-vcpu_fd[vcpu]; Antoine - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
[kvm-devel] boot stops after console handover?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 Boot stops after: [0.509283] time.c: Detected 2393.985 MHz processor. [0.600090] Console: colour VGA+ 80x25 [0.600570] console handover: boot [earlyser0] - real [tty0] It sits there using 100% CPU until I kill it. If I add -serial file:serial.log, I get dropped to the qemu shell and the log file contains the same as above. Sorry if this has been covered before, couldn't find it. Cheers Antoine Strace of the spinning process: clock_gettime(CLOCK_MONOTONIC, {6003, 864979716}) = 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865075815}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865092971}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 0}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 25}}, NULL) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865156093}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865173715}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865192525}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865210519}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 162334}}) = 0 ioctl(5, 0xae80, 0) = -1 EINTR (Interrupted system call) rt_sigtimedwait([USR2 ALRM IO], {si_signo=SIGALRM, si_code=SI_TIMER, si_pid=0, si_uid=0, si_value={int=0, ptr=0x7fff}}, 0x7fff64781140, 8) = 14 rt_sigaction(SIGALRM, NULL, {0x60006e20, ~[KILL STOP RTMIN RT_1], SA_RESTORER, 0x2b6546c23ed0}, 8) = 0 rt_sigtimedwait([USR2 ALRM IO], 0x6026ee00) = -1 EAGAIN (Resource temporarily unavailable) select(1, [0], [], [], {0, 0}) = 0 (Timeout) clock_gettime(CLOCK_MONOTONIC, {6003, 874979291}) = 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875036807}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875054053}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 0}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 8781000}}, NULL) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875116694}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875134858}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875152025}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 8712787}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 8683000}}, NULL) = 0 ioctl(5, 0xae80 unfinished ... (ad-infinitum) Full boot log below: # qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,115200 [0.00] Linux version 2.6.23.12 ([EMAIL PROTECTED]) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) #2 SMP Fri Jan 4 21:25:37 GMT 2008 [0.00] Command line: earlyprintk=serial,115200 [0.00] BIOS-provided physical RAM map: [0.00] BIOS-e820: - 0009fc00 (usable) [0.00] BIOS-e820: 0009fc00 - 000a (reserved) [0.00] BIOS-e820: 000e8000 - 0010 (reserved) [0.00] BIOS-e820: 0010 - 17ff (usable) [0.00] BIOS-e820: 17ff - 1800 (ACPI data) [0.00] BIOS-e820: fffbd000 - 0001 (reserved) [0.00] console [earlyser0] enabled [0.00] end_pfn_map = 1048576 kernel direct mapping tables up to 1 @ 8000-d000 [0.00] DMI not present or invalid. [0.00] ACPI: RSDP 000FAD00, 0014 (r0 QEMU ) [0.00] ACPI: RSDT 17FF, 002C (r1 QEMU QEMURSDT1 QEMU1) [0.00] ACPI: FACP 17FF002C, 0074 (r1 QEMU QEMUFACP1 QEMU1) [0.00] ACPI: DSDT 17FF0100, 0948 (r1 BXPC BXDSDT1 INTL 20061109) [0.00] ACPI: FACS 17FF00C0, 0040 [0.00] ACPI: APIC 17FF0A48, 0040 (r1 QEMU QEMUAPIC1 QEMU1) [0.00] No mptable found. [0.00] Zone PFN ranges: [0.00] DMA 0 - 4096 [0.00] DMA324096 - 1048576 [0.00] Normal1048576 - 1048576 [0.00] Movable zone start PFN for each node [0.00] early_node_map[2] active PFN ranges [0.00] 0:0 - 159 [0.00] 0: 256 -98288 [0.00] ACPI: PM-Timer IO Port: 0xb008 [0.00] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) [0.00] Processor #0 (Bootup-CPU) [0.00] ACPI: IOAPIC (id[0x01] address[0xfec0] gsi_base[0]) [0.00] IOAPIC[0]: apic_id 1, address 0xfec0, GSI 0-23 [0.00] Setting APIC routing to flat [0.00] Using ACPI (MADT) for SMP configuration information [0.00]
Re: [kvm-devel] boot stops after console handover?
Antoine Martin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 what happen if you add -no-kvm? Boot stops after: [0.509283] time.c: Detected 2393.985 MHz processor. [0.600090] Console: colour VGA+ 80x25 [0.600570] console handover: boot [earlyser0] - real [tty0] It sits there using 100% CPU until I kill it. If I add -serial file:serial.log, I get dropped to the qemu shell and the log file contains the same as above. Sorry if this has been covered before, couldn't find it. Cheers Antoine Strace of the spinning process: clock_gettime(CLOCK_MONOTONIC, {6003, 864979716}) = 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865075815}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865092971}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 0}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 25}}, NULL) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865156093}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865173715}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865192525}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 865210519}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 162334}}) = 0 ioctl(5, 0xae80, 0) = -1 EINTR (Interrupted system call) rt_sigtimedwait([USR2 ALRM IO], {si_signo=SIGALRM, si_code=SI_TIMER, si_pid=0, si_uid=0, si_value={int=0, ptr=0x7fff}}, 0x7fff64781140, 8) = 14 rt_sigaction(SIGALRM, NULL, {0x60006e20, ~[KILL STOP RTMIN RT_1], SA_RESTORER, 0x2b6546c23ed0}, 8) = 0 rt_sigtimedwait([USR2 ALRM IO], 0x6026ee00) = -1 EAGAIN (Resource temporarily unavailable) select(1, [0], [], [], {0, 0}) = 0 (Timeout) clock_gettime(CLOCK_MONOTONIC, {6003, 874979291}) = 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 ioctl(4, 0x4008ae61, 0x7fff64780f10)= 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875036807}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875054053}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 0}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 8781000}}, NULL) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875116694}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875134858}) = 0 clock_gettime(CLOCK_MONOTONIC, {6003, 875152025}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 8712787}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 8683000}}, NULL) = 0 ioctl(5, 0xae80 unfinished ... (ad-infinitum) Full boot log below: # qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,115200 [0.00] Linux version 2.6.23.12 ([EMAIL PROTECTED]) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) #2 SMP Fri Jan 4 21:25:37 GMT 2008 [0.00] Command line: earlyprintk=serial,115200 [0.00] BIOS-provided physical RAM map: [0.00] BIOS-e820: - 0009fc00 (usable) [0.00] BIOS-e820: 0009fc00 - 000a (reserved) [0.00] BIOS-e820: 000e8000 - 0010 (reserved) [0.00] BIOS-e820: 0010 - 17ff (usable) [0.00] BIOS-e820: 17ff - 1800 (ACPI data) [0.00] BIOS-e820: fffbd000 - 0001 (reserved) [0.00] console [earlyser0] enabled [0.00] end_pfn_map = 1048576 kernel direct mapping tables up to 1 @ 8000-d000 [0.00] DMI not present or invalid. [0.00] ACPI: RSDP 000FAD00, 0014 (r0 QEMU ) [0.00] ACPI: RSDT 17FF, 002C (r1 QEMU QEMURSDT1 QEMU1) [0.00] ACPI: FACP 17FF002C, 0074 (r1 QEMU QEMUFACP1 QEMU1) [0.00] ACPI: DSDT 17FF0100, 0948 (r1 BXPC BXDSDT1 INTL 20061109) [0.00] ACPI: FACS 17FF00C0, 0040 [0.00] ACPI: APIC 17FF0A48, 0040 (r1 QEMU QEMUAPIC1 QEMU1) [0.00] No mptable found. [0.00] Zone PFN ranges: [0.00] DMA 0 - 4096 [0.00] DMA324096 - 1048576 [0.00] Normal1048576 - 1048576 [0.00] Movable zone start PFN for each node [0.00] early_node_map[2] active PFN ranges [0.00] 0:0 - 159 [0.00] 0: 256 -98288 [0.00] ACPI: PM-Timer IO Port: 0xb008 [0.00] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled) [0.00] Processor #0 (Bootup-CPU) [0.00] ACPI: IOAPIC (id[0x01] address[0xfec0] gsi_base[0]) [0.00] IOAPIC[0]: apic_id 1,
Re: [kvm-devel] boot stops after console handover?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Izik Eidus wrote: Antoine Martin wrote: Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 what happen if you add -no-kvm? # qemu-system-x86_64 -no-kvm -hda /home/uml/BusyBox-1.5.0-amd64-root_fs - -m 384 -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,115200 Segmentation fault strace: open(/usr/local/share/qemu/vgabios-cirrus.bin, O_RDONLY) = 4 lseek(4, 0, SEEK_END) = 35840 lseek(4, 0, SEEK_SET) = 0 read(4, U\252F\351\355\0Plex86/Bochs VGABios \0\0\0IB..., 35840) = 35840 close(4)= 0 brk(0x626b8000) = 0x626b8000 open(/boot/vmlinuz-2.6.23.12, O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0644, st_size=3365240, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b674d45f000 lseek(4, 0, SEEK_CUR) = 0 fstat(4, {st_mode=S_IFREG|0644, st_size=3365240, ...}) = 0 lseek(4, 3362816, SEEK_SET) = 3362816 read(4, [EMAIL PROTECTED]..., 2424) = 2424 lseek(4, 0, SEEK_SET) = 0 read(4, \352\5\0\300\7\214\310\216\330\216\300\216\3201\344\373\374\276-\0\254 \300t\t\264\16\273\7\0\315\20..., 4096) = 4096 read(4, [EMAIL PROTECTED]..., 4096) = 4096 read(4, \213\36Z2f\307\6`,[EMAIL PROTECTED]..., 4096) = 4096 read(4, 1\300\216\330\216\300\216\320\216\340\216\350\17\0\320\270 \0\0\0\17\0\330H\307\305\0\0 \0H\211..., 3350528) = 3350528 read(4, [EMAIL PROTECTED]..., 4096) = 2424 close(4)= 0 munmap(0x2b674d45f000, 4096)= 0 lseek(3, 0, SEEK_SET) = 0 read(3, \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0..., 512) = 512 open(/etc/localtime, O_RDONLY)= 4 fstat(4, {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 fstat(4, {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b674d45f000 read(4, TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0..., 4096) = 3661 lseek(4, -2338, SEEK_CUR) = 1323 read(4, TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10\0\0\0\0..., 4096) = 2338 close(4)= 0 munmap(0x2b674d45f000, 4096)= 0 lseek(3, 0, SEEK_END) = 16777216 lseek(3, 0, SEEK_END) = 16777216 lseek(3, 0, SEEK_END) = 16777216 brk(0x626db000) = 0x626db000 clock_gettime(CLOCK_MONOTONIC, {6697, 835147767}) = 0 clock_gettime(CLOCK_MONOTONIC, {6697, 835169254}) = 0 clock_gettime(CLOCK_MONOTONIC, {6697, 835187680}) = 0 clock_gettime(CLOCK_MONOTONIC, {6697, 835206704}) = 0 timer_gettime(0, {it_interval={0, 0}, it_value={0, 0}}) = 0 timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 25}}, NULL) = 0 - --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Antoine -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREKAAYFAkeBLnQACgkQGK2zHPGK1rsaPACfaWQz1umqsXDV9Zp6ZxGVkLUR OSAAmgOFNNRAxnqYxgbvjEZV2fSCJ83h =cEEm -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel
Re: [kvm-devel] boot stops after console handover?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Antoine Martin wrote: Izik Eidus wrote: Antoine Martin wrote: Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,ttyS0,115200 what happen if you add -no-kvm? # qemu-system-x86_64 -no-kvm -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.23.12 -append earlyprintk=serial,115200 Segmentation fault I thought maybe a newer kernel would help, so I tried 2.6.24-rc6: # qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 - -nographic -cpu qemu64 -kernel /boot/vmlinuz-2.6.24-rc6 -append earlyprintk=serial,115200 exception 13 (0) rax rbx rcx rdx 0600 rsi rdi rsp rbp r8 r9 r10 r11 r12 r13 r14 r15 rip 0001 rflags 00033046 cs f000 (000f/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ds (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) es (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) ss (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) fs (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) gs (/ p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0) tr (18c0/2088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0) ldt (/ p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0) gdt 0/ idt 0/ cr0 6010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0 code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 -- fc f6 86 11 02 00 00 40 75 0c fa b8 18 00 00 00 8e d8 8e c0 8e d0 8d a6 e8 01 00 00 e8 00 Aborted Am I being unlucky, doing something wrong or do you need a more specific configuration to get kvm working? Cheers Antoine -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREKAAYFAkeBVxcACgkQGK2zHPGK1rt81wCfWE7oGdo/mPfeG/Ig7JrB4QJT TQAAn0tffOWD/aY/hsxEpwZHUHMqM0GH =C9A+ -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel