Received: from eggs.gnu.org ([2001:4830:134:3::10]:55559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbYaw-0000FE-9x for qemu-devel@nongnu.org; Wed, 30 Oct 2013 12:26:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbYaq-0005BG-Ka for qemu-devel@nongnu.org; Wed, 30 Oct 2013 12:26:10 -0400 Received: from indium.canonical.com ([91.189.90.7]:45213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbYaq-0005BC-EO for qemu-devel@nongnu.org; Wed, 30 Oct 2013 12:26:04 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1VbYap-0007x6-3d for ; Wed, 30 Oct 2013 16:26:03 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 7DD8D2EA01C for ; Wed, 30 Oct 2013 16:26:01 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 30 Oct 2013 16:19:48 -0000 From: Manoj Iyer <1243287@bugs.launchpad.net> Sender: bounces@canonical.com References: <20131022162416.15428.47621.malonedeb@soybean.canonical.com> Message-Id: <20131030161948.18982.67510.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1243287] Re: [KVM/QEMU][ARM][SAUCY] fails to boot cloud-image due to host kvm fail Reply-To: Bug 1243287 <1243287@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Ubuntu kernels use CONFIG_STRICT_MEM which prevents access to physical mem other than BIOS and PCI region so that X or dmidecode tools can read this info. On a native ARM system since there is no BIOS (yet) this causes mmap() of /dev/mem to return a -1. But with KVM/QEMU emulating ARM (mach virt) on native ARM, mmap() /dev/mem does not return a -1 but returns a valid address (or what looks like a valid address). Could it be that kvm/qemu is not passing protections correctly for phy mem ? -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1243287 Title: [KVM/QEMU][ARM][SAUCY] fails to boot cloud-image due to host kvm fail Status in QEMU: New Bug description: On booting the cloud image using qemu/kvm fails with the following error: Cloud-init v. 0.7.3 running 'init' at Thu, 03 Oct 2013 16:45:21 +0000. Up= 360.78 seconds. ci-info: +++++++++++++++++++++++++Net device info+++++++++++++++++++++++++ ci-info: +--------+------+-----------+---------------+-------------------+ ci-info: | Device | Up | Address | Mask | Hw-Address | ci-info: +--------+------+-----------+---------------+-------------------+ ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . | ci-info: | eth0 | True | 10.0.2.15 | 255.255.255.0 | 52:54:00:12:34:56 | ci-info: +--------+------+-----------+---------------+-------------------+ ci-info: ++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++= ++++++ ci-info: +-------+-------------+----------+---------------+-----------+--= -----+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+-------------+----------+---------------+-----------+--= -----+ ci-info: | 0 | 0.0.0.0 | 10.0.2.2 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 10.0.2.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U | ci-info: +-------+-------------+----------+---------------+-----------+--= -----+ error: kvm run failed Function not implemented /usr/lib/python2.7/dist- packages/cloudinit/sources/DataSourceAltCloud.py assumes that dmidecode command is availabe (ie it assumes that system is x86) on arm systems there is no dmidecode command so host kvm fails with the message "error: kvm run failed Function not implemented" The patch makes get_cloud_type() function return with UNKNOWN for ARM systems. I was able to boot the cloud-image on ARM after applying this change. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1243287/+subscriptions