From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Gebert Subject: Nested KVM: Inner VM fails to execute /init Date: Thu, 01 Sep 2011 16:35:23 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from lo.gmane.org ([80.91.229.12]:59161 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757624Ab1IAOkL (ORCPT ); Thu, 1 Sep 2011 10:40:11 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qz8R7-0003b1-In for kvm@vger.kernel.org; Thu, 01 Sep 2011 16:40:09 +0200 Received: from win3099.informatik.uni-wuerzburg.de ([132.187.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Sep 2011 16:40:09 +0200 Received: from steffen.gebert by win3099.informatik.uni-wuerzburg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Sep 2011 16:40:09 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I started playing with nested KVMs, but the inner VM doesn't boot. It fails after grub's "Starting up ..." with > Failed to execute /init > Kernel panic - not syncing: No init found. Try passing init= option > to kernel. See Linux Documentation/init.txt for guidance. > Pid: 1, comm: init Not tainted 2.6.38-11-virtual #48-Ubuntu > Call trace is panic <- init_post <- kernel_init <- > kernel_thread_helper <- kernel_init <- kernel_thread_helper Outer VM uses kernel from kvm's git repository and latest libvirt release (0.9.4) on Ubuntu 10.04. The inner VM uses Ubuntu's standard kernel + kvm. I'm using kvm_intel (arch amd64), loaded kvm_intel with nested=1 and created a custom emulator script, which passes "-enable-nesting -cpu host" to the kvm command. I also tried "-cpu qemu64,+vmx". Do you have a clue, why /init cannot be executed? I extracted the initrd image of inner VM and it looks okay. /init is executable and a readable shell script. Inner and outer VMs have been built with ubuntu-vm-builder. > ubuntu-vm-builder kvm natty --domain innervm3 --hostname innervm3 --dest innervm3 --mem 128 --addpkg acpid --addpkg openssh-server --addpkg avahi-daemon --libvirt qemu:///system The output is exactly the same for both runs (thus no errors are printed out). How can I further debug that? I must admit that I'm not that familar with the whole init process. Thank you very much for your help! Kind regards Steffen