Changes between Version 1 and Version 2 of jazz/VirtualBox


Ignore:
Timestamp:
Oct 5, 2011, 12:04:34 AM (13 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/VirtualBox

    v1 v2  
    11[[PageOutline]]
    22
    3 = VirtualBox =
     3= VirtualBox on Windows =
    44
    5 == VirtualBox on Windows ==
     5 * 在 Windows 平台上,讓 VirtualBox 直接使用實體硬碟(Physical Disk)的做法 ([wiki:jazz/10-07-20 2010-07-20])
     6   * [參考] [http://www.sysprobs.com/access-physical-disk-virtualbox-desktop-virtualization-software Access Physical Disk in VirtualBox- Desktop Virtualization Software]
     7{{{
     8D:\>set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox"
     9D:\>VBoxManage internalcommands createrawvmdk -filename d:\VirtualBox\HardDisks\mydisk.vmdk -rawdisk \\.\PhysicalDrive0
     10}}}
    611
    7 == VirtualBox on Linux ==
     12 * Windows 上怎麼讓 VirtualBox Guest 的 port 穿透到 Host 來 - NAT 底下用 add port forwarding rule ([wiki:jazz/10-04-21 2010-04-21])
     13{{{
     14VBoxManage.exe setextradata "Ubuntu 9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP
     15VBoxManage.exe setextradata "Ubuntu 9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22
     16VBoxManage.exe setextradata "Ubuntu 9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 8022
     17}}}
    818
    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{{{
     24jazz@jazzbook:~$ dd if=/dev/sdb of=A8J_WinXP_100823.img bs=1M
     25jazz@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{{{
     30jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /home/jazz/A8J_WinXP_100823.img
     31Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
     32(C) 2005-2010 Oracle Corporation
     33All rights reserved.
     34
     35File '/home/jazz/A8J_WinXP_100823.img' is no block device
     36The raw disk vmdk file was not created
     37}}}
     38   * [正確作法]
     39{{{
     40jazz@jazzbook:~$ sudo losetup /dev/loop2 /home/jazz/A8J_WinXP_100823.img
     41[sudo] password for jazz:
     42jazz@jazzbook:~$ VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/A8J.vdi -rawdisk /dev/loop2
     43Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
     44(C) 2005-2010 Oracle Corporation
     45All rights reserved.
     46
     47RAW host disk access VMDK file .VirtualBox/HardDisks/A8J.vdi created successfully.
     48}}}
     49
     50= Reference =
    1051
    1152 * [wiki:jazz/10-07-20 2010-07-20]