Changes between Version 9 and Version 10 of jazz/10-07-20


Ignore:
Timestamp:
Oct 20, 2010, 9:13:19 AM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-07-20

    v9 v10  
    2424jazz@jazzbook:~$ VBoxManage convertfromraw A8J_WinXP_100823.img A8J_WinXP.vdi
    2525}}}
     26 * [備忘] 把 Raw Image 變成 Linux 上跑的 VirtualBox Image
     27   * [錯誤作法] 如果給 Raw Image 的話,會出現不是 block device 的訊息。因此要用 losetup 把 image 變成 block device
     28{{{
     29jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /home/jazz/A8J_WinXP_100823.img
     30Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
     31(C) 2005-2010 Oracle Corporation
     32All rights reserved.
     33
     34File '/home/jazz/A8J_WinXP_100823.img' is no block device
     35The raw disk vmdk file was not created
     36}}}
     37   * [正確作法]
     38{{{
     39jazz@jazzbook:~$ sudo losetup /dev/loop2 /home/jazz/A8J_WinXP_100823.img
     40[sudo] password for jazz:
     41jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /dev/loop2
     42Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
     43(C) 2005-2010 Oracle Corporation
     44All rights reserved.
     45
     46RAW host disk access VMDK file .VirtualBox/HardDisks/A8J.vdi created successfully.
     47}}}
    2648 * [http://virtualboxes.org/images/ VirtualBoxes] – Free VirtualBox® Images - 有一些已經建好的環境可以快速測試