boot vm from usb

 

<1>

在 Disk Management 找出 USB 的碟ID

* 在一隻 Harddisk 的情況下, USB Stick 應該是 '1'

<2>

行 Administrator Shell

* 以下 internalcommands 要 admin 權限

<3>

cd C:\Program Files\Oracle\VirtualBox

VBoxManage internalcommands createrawvmdk -filename D:\VirtualBox\usb.vmdk -rawdisk \\.\PhysicalDrive#

這裡的 # 就是 '1'

 

D:\VirtualBox\usb.vmdk

# Disk DescriptorFile
version=1
CID=da4140dd
parentCID=ffffffff
createType="fullDevice"

# Extent description
RW 31686656 FLAT "\\.\PhysicalDrive1" 0

# The disk Data Base
#DDB

ddb.virtualHWVersion = "4"
ddb.adapterType="ide"
ddb.geometry.cylinders="16383"
ddb.geometry.heads="16"
ddb.geometry.sectors="63"
ddb.uuid.image="209ff6f4-c181-49ee-b37e-311552ac1c14"
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
ddb.uuid.modification="00000000-0000-0000-0000-000000000000"
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
ddb.geometry.biosCylinders="1024"
ddb.geometry.biosHeads="255"
ddb.geometry.biosSectors="63"

<4>

VirtualBox Run as administrator

# 要有 admin 權的 vbox 才用到 'D:\VirtualBox\usb.vmdk'

 

 

 

Creative Commons license icon Creative Commons license icon