- Virtualbox no virtual optical disk file created how to#
- Virtualbox no virtual optical disk file created windows 10#
Set the hard disk – our VMDK file to use our raw disk.Set the memory to the virtual machine – for example 1024Mbytes. Create Virtual Machine with name “test”.
Virtualbox no virtual optical disk file created windows 10#
Confirm administrator privileges escalation under Windows 10 (and 7).Under Windows 10 (and 7) we must run VirtualBox as administrator.* Create virtual machine under Linux and Windows using raw disk
As you can see now we have a generated file, which can use when creating a virtual machine (look at STEP3)). RAW host disk access VMDK file c:\Users\homer\.VirtualBox\physical-sdc.vmdk created successfully. All rights reserved.Ĭ:\Windows\system32>cd C:\Program Files\Oracle\VirtualBoxĬ:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename "c:\Users\homer\.VirtualBox\physical-sdc.vmdk" -rawdisk \\.\PhysicalDrive3 Use your path for “filename” (c:\Users\homer\.VirtualBox\physical-sdc.vmdk – change to your path), your home user directory or nay other directory you use for storing the VirtualBox files. Change the directory to the VirtualBox executables and then execute the command. Search for command prompt and with right click you hit “Run as administrator”. First you must start the command line tool under linux also with administrative privileges!. Yours could be with different name so change the name accordingly. “/home/myuser” is my home user directory. RAW host disk access VMDK file /home/myuser/.VirtualBox/physical-sdc.vmdk created ~ $ sudo VirtualBox With root ~ $ sudo VBoxManage internalcommands createrawvmdk -filename /home/myuser/.VirtualBox/physical-sdc.vmdk -rawdisk /dev/sdc. RAW host disk access VMDK file /home/myuser/.VirtualBox/physical-sdc.vmdk created successfully.Īs you can see no root is required and now you can start VirtualBox without root permissions as always you have done it. With ordinary user and WRITE permission is ~ $ VBoxManage internalcommands createrawvmdk -filename /home/myuser/.VirtualBox/physical-sdc.vmdk -rawdisk /dev/sdc. Under Linux (use one of these solutions). Under Windows 10 (or 7) – you must start the command prompt and Virtualbox with “run as Administrator” – look at the next step (STEP 2). change the permission of the physical device you want to use (this is temporary, because next time you reboot you must change it ~ $ sudo chmod o+rw /dev/sdc. The log out and log in (if you are using a GUI – gnome, kde or something else, you must log out from the GUI, too and then log in again). “myuser” is the username of the user I am logged in. Probably you must log off your GUI (Gnome, KDE and so on), ~ $ sudo sudo usermod -a -G disk myuser After you log in you’ll have WRITE permissions to the disks. add your user to “disk” group and log out. We want to add our third disk the “/dev/sdc” so the examples are with this device: There are at least two ways to give WRITE permission to the raw disk (use one of them, the first one is preferred). Under Linux (Ubuntu, Centos, Fedora, Gentoo and probably all other). Virtualbox no virtual optical disk file created how to#
In most cases your user do not have write permission to the disk – it is the same under MS Windows and any Linux distribution (and probably MAC)! So here is the right way how to give permissions under Linux and Windows: Here are the right steps to add a raw disk: STEP 1) Permissions – your user must have (write) permissions to access raw disks To use a raw disk in our virtual machine we must create a special VMDK file and then to use it when adding a hard drive to our virtualbox virtual machine with “Use an existing virtual hard disk dile”. This is strange there is no way to add a physical disk to your virtual machine under virtualbox! Still it is possible and it is simple, but you need to execute few commands under console so you need to open a terminal and to have a root privileges!