1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="rawdisk">
|
---|
4 | <title>Using a Raw Host Hard Disk From a Guest</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>As an alternative to using virtual disk images as described in <xref href="storage.dita">Virtual Storage</xref>,
|
---|
8 | <ph conkeyref="vbox-conkeyref-phrases/product-name"/> can also present either entire physical hard disks or
|
---|
9 | selected partitions as virtual disks to virtual machines. </p>
|
---|
10 | <p>With <ph conkeyref="vbox-conkeyref-phrases/product-name"/>, this type of access is called <i>raw hard disk
|
---|
11 | access</i>. It enables a guest operating system to access its virtual hard disk without going through the host
|
---|
12 | OS file system. The actual performance difference for image files compared to raw disk varies greatly depending on
|
---|
13 | the overhead of the host file system, whether dynamically growing images are used, and on host OS caching
|
---|
14 | strategies. The caching indirectly also affects other aspects such as failure behavior. For example, whether the
|
---|
15 | virtual disk contains all data written before a host OS crash. Consult your host OS documentation for details on
|
---|
16 | this. </p>
|
---|
17 | <note type="caution">
|
---|
18 | <p>Raw hard disk access is for expert users only. Incorrect use or use of an outdated configuration can lead to <b
|
---|
19 | outputclass="bold">total loss of data</b> on the physical disk. Most importantly, <i>do not</i> attempt to
|
---|
20 | boot the partition with the currently running host operating system in a guest. This will lead to severe data
|
---|
21 | corruption. </p>
|
---|
22 | </note>
|
---|
23 | <p>Raw hard disk access, both for entire disks and individual partitions, is implemented as part of the VMDK image
|
---|
24 | format support. As a result, you will need to create a special VMDK image file which defines where the data will
|
---|
25 | be stored. After creating such a special VMDK image, you can use it like a regular virtual disk image. For
|
---|
26 | example, you can use the Virtual Media Manager, see <xref href="virtual-media-manager.dita">The Virtual Media
|
---|
27 | Manager</xref>, or <userinput>VBoxManage</userinput> to assign the image to a virtual machine. </p>
|
---|
28 | </body>
|
---|
29 | </topic>
|
---|