From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 8 18:44:59 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9CA1ACB7 for ; Mon, 8 Apr 2013 18:44:59 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id E54B2DA for ; Mon, 8 Apr 2013 18:44:58 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id C918B1E007A3; Mon, 8 Apr 2013 20:44:50 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.5/8.14.4) with ESMTP id r38Ih0qa058175; Mon, 8 Apr 2013 20:43:00 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.5/8.14.3/Submit) id r38Ih0sg058174; Mon, 8 Apr 2013 20:43:00 +0200 (CEST) (envelope-from nox) Date: Mon, 8 Apr 2013 20:43:00 +0200 (CEST) From: Juergen Lock Message-Id: <201304081843.r38Ih0sg058174@triton8.kn-bremen.de> To: zaphod@berentweb.com Subject: Re: qemu-system-x86_64 refuses to boot HDD X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <1365179827998-5801797.post@n5.nabble.com> Organization: Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Apr 2013 18:44:59 -0000 In article <1365179827998-5801797.post@n5.nabble.com> you write: >I have installed qemu-devel-1.1.1_2 and kqemu-kmod-devel-1.4.0.p1_5 >In the past I could boot from the HDD with qemu even if it was running host >system - ada0p2 is root, but I could still boot to ada0 in qemu. Instead >now, just a strange error: > ># qemu-system-x86_64 -hda /dev/ada1 => >qemu-system-x86_64: -hda /dev/ada1: could not open disk image /dev/ada1: >Operation not permitted > >Is this a qemu error or a devfs.rules problem? >[localrules=10] >add path 'da[0-9]*' mode 0660 group wheel >add path 'cd[0-9]*' mode 0660 group wheel > Hmm you dont have a rule for ada* but usually disk devices are group operator already so you could also add yourself to that group. (And log back in afterwards.) But actually up there you were running qemu as root so it's not a permission problem but probably the anti-foot-shooting protection needs to be disabled: # sysctl kern.geom.debugflags=16 (it protects against writing to mounted geoms and their parents so now you need to take care not to mount stuff on host and guest at the same time yourself.) HTH, :) Juergen