Re: [VBOX] Failure while attaching the physical hard drive to the guest

2013-05-04 Thread Bernhard Fröhlich
Am 04.05.2013 03:20 schrieb Yuri y...@rawbw.com:

 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:
 HardDisk uuid={408da1c6-8939-42d3-a03b-da6d3c4d36ad}
location=ada3.vmdk format=VMDK type=Normal/
 And also this hard drive's description under StorageController
name=SATA type=AHCI PortCount=2 useHostIOCache=false
Bootable=true IDE0MasterEmulationPort=0 IDE0SlaveEmulationPort=1
IDE1MasterEmulationPort=2 IDE1SlaveEmulationPort=3:
  AttachedDevice type=HardDisk port=1 device=0
 Image uuid={408da1c6-8939-42d3-a03b-da6d3c4d36ad}/
   /AttachedDevice

 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: WDC WD1600BEVT-22ZCT0 11.01A11 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.
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBOX] Failure while attaching the physical hard drive to the guest

2013-05-04 Thread Yuri

On 05/03/2013 23:02, Bernhard Fröhlich wrote:
My first guess is that permissions for /dev/ada3 are not sufficient 
for your vbox user.


Changing permissions of /dev/ada3 to 0777 didn't change anything.
But changing permissions of ada3.vmdk to 0777 changed the situation: now 
it fails with the message Failed to open session, No error info,


S_ERROR_CALL_FAILED (0x800706BE)
And there is an assert in log:
00:00:01.267946 DrvBlock: Async flushes will be passed to the disk
00:00:01.268193 AIOMgr: Endpoint for file '/home/yuri/VirtualBox 
VMs/Mint-mate-32/ada3.vmdk' (flags 0723) created successfully

00:00:01.270518
00:00:01.270520 !!Assertion Failed!!
00:00:01.270521 Expression: stamR3SlashCompare(pPrev-pszName, pszName)  0
00:00:01.270522 Location : 
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/VMM/VMMR3/STAM.cpp(632) 
int stamR3RegisterU(UVM*, void*, void (*)(VM*, void*), void (*)(VM*, 
void*, char*, size_t), STAMTYPE, STAMVISIBILITY, const char*, STAMUNIT, 
const char*)



Yuri

___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBOX] Failure while attaching the physical hard drive to the guest

2013-05-04 Thread Mario Lobo
On Fri, 03 May 2013 23:34:42 -0700
Yuri y...@rawbw.com wrote:

 On 05/03/2013 23:02, Bernhard Fröhlich wrote:
  My first guess is that permissions for /dev/ada3 are not sufficient 
  for your vbox user.
 
 Changing permissions of /dev/ada3 to 0777 didn't change anything.
 But changing permissions of ada3.vmdk to 0777 changed the situation:
 now it fails with the message Failed to open session, No error
 info,
 
 S_ERROR_CALL_FAILED (0x800706BE)
 And there is an assert in log:
 00:00:01.267946 DrvBlock: Async flushes will be passed to the disk
 00:00:01.268193 AIOMgr: Endpoint for file '/home/yuri/VirtualBox 
 VMs/Mint-mate-32/ada3.vmdk' (flags 0723) created successfully
 00:00:01.270518
 00:00:01.270520 !!Assertion Failed!!
 00:00:01.270521 Expression: stamR3SlashCompare(pPrev-pszName,
 pszName)  0 00:00:01.270522 Location : 
 /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/VMM/VMMR3/STAM.cpp(632)
  
 int stamR3RegisterU(UVM*, void*, void (*)(VM*, void*), void (*)(VM*, 
 void*, char*, size_t), STAMTYPE, STAMVISIBILITY, const char*,
 STAMUNIT, const char*)
 
 
 Yuri
 
 ___
 freebsd-emulation@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
 To unsubscribe, send any mail to
 freebsd-emulation-unsubscr...@freebsd.org


Have you tried installing guest additions and sharing your drive
through the shared folders feature?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBOX] Failure while attaching the physical hard drive to the guest

2013-05-04 Thread Yuri

On 05/04/2013 07:45, Mario Lobo wrote:

Have you tried installing guest additions and sharing your drive
through the shared folders feature?


Shared folders do work. But I need to access the drive from Linux as a 
whole, not on the file system level.


On the side note, this is Linux Mint, and for some reason, even without 
installing the guest additions, all features normally enabled by 
additions work without me installing them (shared folders, screen 
resize, non-sticky mouse). I am not sure if mint comes with additions in 
it, or how does this work.


Yuri
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBOX] Failure while attaching the physical hard drive to the guest

2013-05-04 Thread Kevin Oberman
On Sat, May 4, 2013 at 9:12 AM, Yuri y...@rawbw.com wrote:

 On 05/04/2013 07:45, Mario Lobo wrote:

 Have you tried installing guest additions and sharing your drive
 through the shared folders feature?


 Shared folders do work. But I need to access the drive from Linux as a
 whole, not on the file system level.

 On the side note, this is Linux Mint, and for some reason, even without
 installing the guest additions, all features normally enabled by additions
 work without me installing them (shared folders, screen resize, non-sticky
 mouse). I am not sure if mint comes with additions in it, or how does this
 work.


Mint includes VBox support, so no Guest Additions are needed or available.
(I think Ubuntu, from which Mint is descended, also is VBox ready.)

-- 
R. Kevin Oberman, Network Engineer
E-mail: rkober...@gmail.com
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org