Page 1 of 1

Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:10
by mrmajik45
I can't make my system the VMs hdd. Command used

Code: Select all

sudo VBoxManage internalcommands createrawvmdk -filename "~/VirtualBox VMs/reactos/disk.vmdk" -rawdisk /dev/sda
Here's the error info:

Code: Select all

VBoxManage: error: VMDK: could not create new file '~/VirtualBox VMs/reactos/disk.vmdk'
VBoxManage: error: Error code VERR_FILE_NOT_FOUND at /home/vbox/vbox-5.2.16/src/VBox/Storage/VMDK.cpp(3392) in function int vmdkCreateRawImage(PVMDKIMAGE, PVDISKRAW, uint64_t)
VBoxManage: error: Cannot create the raw disk VMDK: VERR_FILE_NOT_FOUND
VBoxManage: error: The raw disk vmdk file was not created
Can i fix this?

Re: Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:17
by socratis
See ch. 9.9.1 Using a raw host hard disk from a guest of the User Manual for the proper format of the command. You need an absolute path, not a relative one.

And for the love of bytes, are you trying to raw access your primary disk "/dev/sda"? Do you want to kill your host?

Re: Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:20
by mrmajik45
YEP I WANNA INSTALL A NEW OS.

Re: Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:25
by socratis
You want to install a new OS from a VM that's running on your existing OS? And how exactly are you going to overwrite your OS that you are actively using?

Can't do that. You need to boot from a CD your host if you want to do that.

Re: Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:27
by mrmajik45
Now i can't add the disk to the vm.

Code: Select all

Permission problem accessing the file for the medium '/home/wabbitswife/VirtualBox VMs/reactos/disk.vmdk' (VERR_ACCESS_DENIED).
All permissions are granted for all users.

Re: Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:51
by socratis
Whatever you want to do, will NOT work. You'd better forget the whole experiment.

Re: Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:52
by mrmajik45
I don't care i actually am going to install a OS i after i destroy this.

Re: Virtualbox unable to make Vdisk

Posted: 31. Jul 2018, 23:54
by socratis
The operation CANNOT work. I don't really care what you do with your computer. But you can't cut your legs while you're standing, do you understand that concept? If you want to install a new OS on your computer you got to boot your computer from a CD/DVD/USB. Not a VM.