RECOMMENDED Amnezia Premium: Works Where Other VPNs Fail

Unblockable AmneziaWG 2.0 & XRay protocols. Perfect for lag-free access to ChatGPT, Claude AI, global freelance marketplaces, and restricted streaming networks with clean RAM-only privacy.

How to connect a physical disk in VirtualBox

How to connect a physical disk in VirtualBox

Usually for hosting virtual machines use virtual hard disks. They represent a file on a normal hard drive, which has its own partition table and the data partitions. But in some situations it may be necessary to access real hard disk from virtual machine.

It may be useful to install an additional operating system while you are working in the main or for sharing data between the virtual machine and the real world. In this article we will look how to connect a physical disk in VirtualBox.

For this you should know the file the hard disk in the /dev directory of the Linux operating system. You can watch it using a utility Gparted:

In this example we will connect to the virtual machine NVMe drive identifier /dev/nvme0p1. To create on the basis of the identifier of the disk file to VirtualBox, run the following command in the terminal:

sudo VBoxManage internalcommands createrawvmdk -filename ~/nvme0p1.vmdk-rawdisk /dev/nvme0p1

File for VirtualBox stored in our home folder. The command should be run as root. To be able to use the disk in VirtualBox, you need to run a virtual machine, as root:

sudo VirtualBox

You can now select this disk when creating a new machine or connect to an existing machine in the settings. In Windows the command would look similar, only it is necessary to add the extension .exe and the drive ID will be different. It can be viewed with the utility disk Management, which you can open from menu Control the icon My computer. Now that you know how you connect the physical drive to virtualbox.

Source: losst.ru

🛠️ Top Temporary VPS for Testing & Experiments (2026)

Need a fast cloud server for a few hours or days? Deploy an isolated testing environment, run your scripts, and destroy it without any monthly commitments. Secure payments via Crypto (USDT) & PayPal supported.

AÉZA — Ultimate Testing Environment Flexible rates: from €0.01/hr depending on the billing period (the longer you rent, the cheaper it gets).
Exclusive Welcome Bonus: Get an extra 15% on your first balance top-up within 24 hours after registration.
Deploy on Aeza
Friendhosting — High-Storage VDS Hourly VDS infrastructure (from €0.03/hr) deployed across massive global locations.
• Best-in-class Storage VDS configurations with huge disk space for heavy data testing.
Deploy on Friend
Zomro — Premium Daily Node Daily billing model starting at just €0.16/day (~€0.007/hr) for optimal cost control.
• High-speed hardware platform with a stable presence in the Netherlands (Europe).
Deploy on Zomro
Rork

Linux hobbyist into networking and digital privacy. I use this hub to translate and store technical notes on sysadmin tasks and anonymity tools. Tech should work for people, not the other way around.

Rate author
Add a comment