| | 26 | * [備忘] 把 Raw Image 變成 Linux 上跑的 VirtualBox Image |
| | 27 | * [錯誤作法] 如果給 Raw Image 的話,會出現不是 block device 的訊息。因此要用 losetup 把 image 變成 block device |
| | 28 | {{{ |
| | 29 | jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /home/jazz/A8J_WinXP_100823.img |
| | 30 | Oracle VM VirtualBox Command Line Management Interface Version 3.2.8 |
| | 31 | (C) 2005-2010 Oracle Corporation |
| | 32 | All rights reserved. |
| | 33 | |
| | 34 | File '/home/jazz/A8J_WinXP_100823.img' is no block device |
| | 35 | The raw disk vmdk file was not created |
| | 36 | }}} |
| | 37 | * [正確作法] |
| | 38 | {{{ |
| | 39 | jazz@jazzbook:~$ sudo losetup /dev/loop2 /home/jazz/A8J_WinXP_100823.img |
| | 40 | [sudo] password for jazz: |
| | 41 | jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /dev/loop2 |
| | 42 | Oracle VM VirtualBox Command Line Management Interface Version 3.2.8 |
| | 43 | (C) 2005-2010 Oracle Corporation |
| | 44 | All rights reserved. |
| | 45 | |
| | 46 | RAW host disk access VMDK file .VirtualBox/HardDisks/A8J.vdi created successfully. |
| | 47 | }}} |