9 | | == Reference == |
| 19 | = VirtualBox on Linux = |
| 20 | |
| 21 | * [備忘] 把 Windows 變成 Linux 上跑的 VirtualBox Image ([wiki:jazz/10-07-20 2010-07-20]) |
| 22 | * [參考] [http://www.virtualbox.org/wiki/Migrate_Windows VirtualBox 官網維基 Migrate Windows] |
| 23 | {{{ |
| 24 | jazz@jazzbook:~$ dd if=/dev/sdb of=A8J_WinXP_100823.img bs=1M |
| 25 | jazz@jazzbook:~$ VBoxManage convertfromraw A8J_WinXP_100823.img A8J_WinXP.vdi |
| 26 | }}} |
| 27 | * [備忘] 把 Raw Image 變成 Linux 上跑的 VirtualBox Image ([wiki:jazz/10-07-20 2010-07-20]) |
| 28 | * [錯誤作法] 如果給 Raw Image 的話,會出現不是 block device 的訊息。因此要用 losetup 把 image 變成 block device |
| 29 | {{{ |
| 30 | jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /home/jazz/A8J_WinXP_100823.img |
| 31 | Oracle VM VirtualBox Command Line Management Interface Version 3.2.8 |
| 32 | (C) 2005-2010 Oracle Corporation |
| 33 | All rights reserved. |
| 34 | |
| 35 | File '/home/jazz/A8J_WinXP_100823.img' is no block device |
| 36 | The raw disk vmdk file was not created |
| 37 | }}} |
| 38 | * [正確作法] |
| 39 | {{{ |
| 40 | jazz@jazzbook:~$ sudo losetup /dev/loop2 /home/jazz/A8J_WinXP_100823.img |
| 41 | [sudo] password for jazz: |
| 42 | jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /dev/loop2 |
| 43 | Oracle VM VirtualBox Command Line Management Interface Version 3.2.8 |
| 44 | (C) 2005-2010 Oracle Corporation |
| 45 | All rights reserved. |
| 46 | |
| 47 | RAW host disk access VMDK file .VirtualBox/HardDisks/A8J.vdi created successfully. |
| 48 | }}} |
| 49 | |
| 50 | = Reference = |