From owner-freebsd-emulation@FreeBSD.ORG Sat May 4 06:02:08 2013 Return-Path: Delivered-To: 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 4F6A6E9E for ; Sat, 4 May 2013 06:02:08 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail-oa0-f45.google.com (mail-oa0-f45.google.com [209.85.219.45]) by mx1.freebsd.org (Postfix) with ESMTP id 1931415AA for ; Sat, 4 May 2013 06:02:07 +0000 (UTC) Received: by mail-oa0-f45.google.com with SMTP id o17so2295801oag.32 for ; Fri, 03 May 2013 23:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=PXFNFI9EIurL1NvjR2SvsCWthn+7uiQG2O93qlXGGSU=; b=UTBQ7DGrh5BhBOhgQma7AnUwRhH5FP6+GQ3BxII33bvESywVY0VTIvO16tcjD4QbfV 9pJIv50VyhDZzT7QssKTPewsEPcRvx6+ViLKoeq0oM9p0rcjaNQYyaZbkmvIlPARie0j z/uyg0oIn8B4f7d8ar9u6zieCYPaZTspMd5+4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=PXFNFI9EIurL1NvjR2SvsCWthn+7uiQG2O93qlXGGSU=; b=ctExDoMButOiAsgYrgVIQEWE5ifbVww2c5ogsdkPTQCfZmzvD9pRzh3Xq/vcowPTL7 hJ+t44QYmD6ego7Fb1TJeDh7kqOE53tr6LTy1IWf7/zFHTeYMWRWVR9ROSpYYHX35VyT FaKg7nkxLqUfvWRQw74ViG/7jlB24Pk3fRLqmA2cJGTJ65Zn/q9p1meuCAkYACnWYVXD mKayAeLC7hMoxpLodNZcwfMUl1/CI75DPNS5TsExFYjy21rTYjPWCA1vdZ7UFAfAANDN F23rXAiAXsEWJUs2Yr/hEWaCIgWEcNIuGykQsRb20Mjd4QNK1EfO1M/K6gP6F0PmiNT7 Mmgg== MIME-Version: 1.0 X-Received: by 10.60.42.104 with SMTP id n8mr3605657oel.94.1367647327196; Fri, 03 May 2013 23:02:07 -0700 (PDT) Received: by 10.76.83.163 with HTTP; Fri, 3 May 2013 23:02:07 -0700 (PDT) X-Originating-IP: [89.144.192.95] Received: by 10.76.83.163 with HTTP; Fri, 3 May 2013 23:02:07 -0700 (PDT) In-Reply-To: <5184623A.7090603@rawbw.com> References: <5184623A.7090603@rawbw.com> Date: Sat, 4 May 2013 08:02:07 +0200 Message-ID: Subject: Re: [VBOX] Failure while attaching the physical hard drive to the guest From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Yuri X-Gm-Message-State: ALoCoQl4VmamKl02ucWv6AbgTfzLVHyVEL65qQj19i0DQtkfZ5GCMEVFoEZ4uCsmxptjL3cQrYTH Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: 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: Sat, 04 May 2013 06:02:08 -0000 Am 04.05.2013 03:20 schrieb "Yuri" : > > I have a Linux guest with VDI hard drive. > I want to attach the physical (on host) hard drive to this guest. > > So I created the ada3.vmdk pointing to /dev/ada3: > VBoxManage internalcommands createrawvmdk -filename ada3.vmdk -rawdisk /dev/ada3 > Then I ran this command to attach ada3.vmdk to the machine Mint-mate-32: > VBoxManage storageattach "Mint-mate-32" --storagectl "SATA" --port 1 --device 0 --type hdd --medium "/home/yuri/VirtualBox VMs/Mint-mate-32/ada3.vmdk" > > This added another HardDrive in Mint-mate-32.vbox: > > And also this hard drive's description under : > > > > > However, this machine fails to start now: VERR_ACCESS_DENIED on ada3.vmdk > No further explanation, except NS_ERROR_FAILURE (0x80004005) > Log provides no further insight also. > > Hard drive is recognized by the host system as: > ada3 at ahcich7 bus 0 scbus7 target 0 lun 0 > ada3: ATA-8 SATA 2.x device > ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada3: Command Queueing enabled > ada3: 152627MB (312581808 512 byte sectors: 16H 63S/T 16383C) > > How can I get information what the error actually is? > Is such operation reasonable? Is it supposed to work? > > Yuri My first guess is that permissions for /dev/ada3 are not sufficient for your vbox user.