Category:Virtualbox

From ElectroDragon Wiki
Revision as of 22:48, 28 April 2021 by Chao (talk | contribs) (Created page with " == New Install == * Install addon ./VBoxLinuxAdditions.run * setup share folder, setup ENV * apt-get update && upgrade * Compiler ARM GCC, IDE Sublime * Other too...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

New Install

Guest Addtions

Prequiste

  • apt-get install gcc make

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.
sh /media/cdrom/VBoxLinuxAdditions.run
./VBoxLinuxAdditions.run

ubuntu For ubuntu or lubuntu -> just enter into folder run

autorun.sh

Operations

  • 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

Disk resize

  • VBoxManage list hdds


  • resize to 60GB:
cd C:\Program Files\Oracle\VirtualBox
VBoxManage modifyhd E:\VM\win7-64\win7-64.vdi --resize 60000
  • 20GB -> "c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifymedium --resize 20000 "F:\VM_local\lubuntu-nginx\lubuntu.vdi"

Partitions Change

  • Use Gparted ISO tool to resize it, and remember to add swap at the end.

Change UUID

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

Subcategories

This category has only the following subcategory.