wiki:jazz/10-07-20

2010-07-20

VirtualBox

  • [備忘] 把 Windows 變成 Linux 上跑的 VirtualBox Image
  • [備忘] 把 Raw Image 變成 Linux 上跑的 VirtualBox Image
    • [錯誤作法] 如果給 Raw Image 的話,會出現不是 block device 的訊息。因此要用 losetup 把 image 變成 block device
      jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /home/jazz/A8J_WinXP_100823.img 
      Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
      (C) 2005-2010 Oracle Corporation
      All rights reserved.
      
      File '/home/jazz/A8J_WinXP_100823.img' is no block device
      The raw disk vmdk file was not created
      
    • [正確作法]
      jazz@jazzbook:~$ sudo losetup /dev/loop2 /home/jazz/A8J_WinXP_100823.img 
      [sudo] password for jazz: 
      jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /dev/loop2
      Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
      (C) 2005-2010 Oracle Corporation
      All rights reserved.
      
      RAW host disk access VMDK file .VirtualBox/HardDisks/A8J.vdi created successfully.
      
  • VirtualBoxes – Free VirtualBox® Images - 有一些已經建好的環境可以快速測試
Last modified 14 years ago Last modified on Oct 20, 2010, 9:13:19 AM