I'm trying to use a raw disk in virtualbox, following this guide.
Anyhow I get an error:
mamluck@mamluck:~/VirtualBox VMs/disks$ VBoxManage internalcommands createrawvmdk -filename /home/mamluck/VirtualBoxVMs/disks/disk1.vmdk -rawdisk /dev/sda
VBoxManage: error: Cannot open the raw disk '/dev/sda': VERR_ACCESS_DENIED
VBoxManage: error: The raw disk vmdk file was not created
and:
mamluck@mamluck:~/VirtualBox VMs/disks$ sudo !!
sudo VBoxManage internalcommands createrawvmdk -filename /home/mamluck/VirtualBoxVMs/disks/disk1.vmdk -rawdisk /dev/sda
VBoxManage: error: VMDK: could not create new file '/home/mamluck/VirtualBoxVMs/disks/disk1.vmdk'
VBoxManage: error: Error code VERR_ALREADY_EXISTS at /home/vbox/vbox-4.0.6/src/VBox/Storage/VMDK.cpp(3591) in function int vmdkCreateRawImage(VMDKIMAGE*, VBOXHDDRAW*, uint64_t)
VBoxManage: error: Cannot create the raw disk VMDK: VERR_ALREADY_EXISTS
VBoxManage: error: The raw disk vmdk file was not created
what am I doing wrong?