Virtualbox

From ElectroDragon
Jump to: navigation, search

Step by Step

  • Install addon
  • setup share folder

Guest Addtions for Debian

  • Login as root;
  • Update your APT database with apt-get update;
  • Install the latest security updates with apt-get upgrade;
  • Install required packages with apt-get install build-essential module-assistant;
  • Configure your system for building kernel modules by running m-a prepare;
  • Click on Install Guest Additions… from the Devices menu, then run mount /media/cdrom.
  • Run sh /media/cdrom/VBoxLinuxAdditions.run, and follow the instructions on screen.

For ubuntu or lubuntu -> just enter into folder run autorun.sh

Disk resize

  • VBoxManage list hdds
  • Change vmds to vdi
VBoxManage clonehd "F:\VM\VM_System\debian-8.5-2\debian-8.5-disk2.vmdk" "F:\VM\VM_System\debian-8.5-2\debian-8.vdi" --format vdi

or use in new versoin:

VBoxManage clonemedium --format VDI D:\Work\03_VM\WIN7-32-SP1-Electronics\win7-32-sp1-disk1.vmdk D:\Work\03_VM\WIN7-32-SP1-Electronics\server2-disk1.vdi
  • resize to 60GB:
cd C:\Program Files\Oracle\VirtualBox
VBoxManage modifyhd E:\VM\win7-64\win7-64.vdi --resize 60000
  • Use Gparted ISO tool to resize it, and remember to add swap at the end.

WIN OS

  • Set network connection to NAT, try control IC to yours
  • Win 8.1 remove usb filter to enable assigning USB

XP

  • turn on option I/O APIC
  • use Windows PE format to 2 disk, main disk need 6GB, system files 3GB, temp files 1GB, install software 2GB, at least. Best should be C-9GB/D-1GB
  • disk use VDI
  • use ghost to quick install

misc

  • 修改磁盘-控制面板-磁盘管理工具

Network

  • Can use local network ss shared connection
  • bridge network -> can not reach LAN share
  • Internal network -> no internet
  • Host only -> no internet

Other solution

  • Install ss-libev, config at /etc/s*ev/config.json, start network by ss-local
  • Change ss-libev auto start, in /etc/init.d/ss-libev change running file ss-server to ss-local, ss-server can not work
  • set firefox proxy socks5 to 127.0.0.1 1080 only, and dns also use proxy