- Offline the Physical Disk 0 and clear the read-only flag
- run diskpart.exe
- run "SELECT DISK 0" -- 0 is the physical disk I would like to use.
- run "OFFLINE DISK"
- run "ATTRIBUTES DISK CLEAR READONLY"
- run "ATTRIBUTES DISK" to check the readonly flag has been cleared.
- Create the raw disk in the Virtualbox Host - Ubuntu-Local
- Open up a command prompt.
- cd C:\Program Files\Oracle\VirtualBox
- VBoxManage internalcommands createrawvmdk -filename "G:\Ubuntu.vmdk" -rawdisk "\\.\PhysicalDrive0"
- VBoxManage storageattach "Ubuntu-Local" --storagectl "IDE" --port 0 --device 0 --type hdd --medium G:\Ubuntu.vmdk
(Noted: You are able to create this by VirtualBox GUI, but be sure to run as an administrator when launching VirtualBox GUI) - Run VirtualBox as an administrator
2014年4月13日 星期日
Using VirtualBox raw disk on Win7
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言