?

Log in

No account? Create an account
 
 
10 September 2016 @ 07:21 pm
VirtualBox  
УСТАНОВКА
======
# cd /usr/ports/emulators/virtualbox-ose-kmod
# make install clean
В настройках выбираем:
[ ] DEBUG Debug symbols, additional logs and assertions
[x] VIMAGE VIMAGE virtual networking support


# cd /usr/ports/emulators/virtualbox-ose
# make install clean
В настройках выбираем:
[x] DBUS D-Bus IPC system support
[ ] DEBUG Debug symbols, additional logs and assertions
[x] GUESTADDITIONS Build with Guest Additions
[ ] MANUAL Build with user manual
[ ] NLS Native Language Support
[ ] PULSEAUDIO PulseAudio sound server support
[ ] PYTHON Python bindings or support
[ ] QT4 Build with QT4 Frontend
[x] UDPTUNNEL Build with UDP tunnel support
[ ] VDE Build with VDE support
[x] VNC Build with VNC support
[ ] VPX Use vpx for video capturing
[ ] WEBSERVICE Build Webservice
[ ] X11 X11 (graphics) support

Создание VM из образа:
=========
VBoxManage createvm --name winvista --ostype WindowsVista --register
VBoxManage list vms
VBoxManage modifyvm winvista --memory 888 --floppy disabled --audio none --nic1 bridged --bridgeadapter1 re0 --vram 1 --accelerate3d off --boot1 disk --acpi on --cableconnected1 on --usb on
VBoxManage createhd --filename /usr/home/vbox/hdd/winvista.vdi --size 12000 --variant Fixed
VBoxManage showhdinfo /usr/home/vbox/hdd/winvista.vdi
VBoxManage storagectl winvista --name "IDE Controller" --add ide
VBoxManage storagectl winvista --name "SATA Controller" --add sata
VBoxManage storageattach debian1 --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium /usr/home/vbox/hdd/winvista.vdi

удаление
VBoxManage unregistervm winvista –delete
=====