Rawdisk, invalid medium variant?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Weboh
Posts: 13
Joined: 8. Apr 2014, 21:17

Rawdisk, invalid medium variant?

Post by Weboh »

I'm running Virtualbox 6.1. I want to create a virtual machine on my Linux Mint 21 host that runs my Windows installation on the other partition. I've followed the tutorial here which tells me to use the following command:

Code: Select all

  VBoxManage createmedium disk --filename /home/weboh/VirtualBox/Windows.vmdk --format=VMDK --variant RawDisk --property RawDrive=/dev/sda --property Partitions=1,2
When I run that, it gives me the error, "Invalid medium variant 'RawDisk'" and doesn't proceed. What am I doing wrong? Do I need to install something extra to enable rawdisk support or something? Thanks.
granada29
Volunteer
Posts: 770
Joined: 3. Mar 2015, 07:27
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Linux, macOS, Windows

Re: Rawdisk, invalid medium variant?

Post by granada29 »

Unfortunately this syntax changed with the release of the VirtualBox 7.0.x software.

You need to look in the documentation that was installed with your VirtualBox 6.1.x software. You should be able to open this documentation from VirtualBox Manager.

I am not sure where it can be viewed on the web but maybe someone else can offer advice on that.

You will need something like:

Code: Select all

VBoxManage internalcommands createrawvmdk -filename <path> -rawdisk /dev/<x> -partitions <n1>,<n2>
Post Reply