wiki:jazz/VirtualBox

Version 6 (modified by jazz, 12 years ago) (diff)

--

VirtualBox on Windows

  • 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)
  • [備忘] 把 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.
      
  • 安裝 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)

Download all attachments as: .zip