From ElectroDragon
Jump to: navigation, search

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/, and follow the instructions on screen.

For ubuntu or lubuntu -> just enter into folder run

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 16GB:
VBoxManage modifyhd F:\VM\VM_System\debian-8.5-2\debian-8.vdi --resize 15960
  • Use Gparted ISO tool to resize it, and remember to add swap at the end.


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


  • 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


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


  • 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 1080 only, and dns also use proxy