Version 6 (modified by jazz, 12 years ago) (diff) |
---|
VirtualBox on Windows
- 在 Windows 平台上,讓 VirtualBox 直接使用實體硬碟(Physical Disk)的做法 (2010-07-20)
- [參考] Access Physical Disk in VirtualBox- Desktop Virtualization Software
D:\>set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox" D:\>VBoxManage internalcommands createrawvmdk -filename d:\VirtualBox\HardDisks\mydisk.vmdk -rawdisk \\.\PhysicalDrive0
- [參考] Access Physical Disk in VirtualBox- Desktop Virtualization Software
- Windows 上怎麼讓 VirtualBox Guest 的 port 穿透到 Host 來 - NAT 底下用 add port forwarding rule (2010-04-21)
VBoxManage.exe setextradata "Ubuntu 9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP VBoxManage.exe setextradata "Ubuntu 9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22 VBoxManage.exe setextradata "Ubuntu 9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 8022
VirtualBox on Linux
- [備忘] 把 Windows 變成 Linux 上跑的 VirtualBox Image (2010-07-20)
- [參考] VirtualBox 官網維基 Migrate Windows
jazz@jazzbook:~$ dd if=/dev/sdb of=A8J_WinXP_100823.img bs=1M jazz@jazzbook:~$ VBoxManage convertfromraw A8J_WinXP_100823.img A8J_WinXP.vdi
- [參考] VirtualBox 官網維基 Migrate Windows
- [備忘] 把 Raw Image 變成 Linux 上跑的 VirtualBox Image (2010-07-20)
- [錯誤作法] 如果給 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.
- [錯誤作法] 如果給 Raw Image 的話,會出現不是 block device 的訊息。因此要用 losetup 把 image 變成 block device
- 安裝 VirtualBox Oracle VM VirtualBox Extension Pack
~$ sudo apt-get install virtualbox-ose ~$ wget http://download.virtualbox.org/virtualbox/4.1.18/Oracle_VM_VirtualBox_Extension_Pack-4.1.18-78361.vbox-extpack ~$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.1.18-78361.vbox-extpack
Reference
Attachments (1)
- Port_Forward.png (90.1 KB) - added by jazz 12 years ago.
Download all attachments as: .zip