At the moment, the VirtualBox port on FreeBSD is already quite stable and quite suitable for permanent use. But when installed on gui-less machines there are several problems. The following discussion focuses on installing and using VirtualBox on a FreeBSD machine without X11.cd /usr/ports/net/libvncserver && make
make install
cd /usr/ports/emulators/virtualbox-ose-kmod && make
make installcd ~/patches
fetch www.mail-archive.com/freebsd-stable@freebsd.org/msg108586/vboxvnc-20100211.tar.gz
cd /usr/ports/emulators/virtualbox-ose
tar xvf ~/patches/vboxvnc-20100211.tar.gzmake configmake
make installecho 'vboxdrv_load="YES"' >> /boot/loader.conf
echo 'vboxnet_enable="YES"' >> /etc/rc.confkldload vboxdrv
/etc/rc.d/vboxnet start# ( ostype: VBoxManage list ostype)
VBoxManage createvm --name MicroXP --ostype WindowsXP --register
# (bridgeadapter1 , )
VBoxManage modifyvm MicroXP --memory 256 --floppy disabled --audio none --nic1 bridged --bridgeadapter1 eth0 --vram 4 --accelerate3d off --boot1 disk --acpi on --cableconnected1 on
# ,
VBoxManage createhd --filename /usr/local/vbox/iso/MicroXP.vdi --size 1000 --register
#
VBoxManage storagectl MicroXP --name "IDE Controller" --add ide
#
VBoxManage storageattach MicroXP --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /usr/local/vbox/MicroXP.vdi
#
VBoxManage storageattach MicroXP --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /usr/local/vbox/MicroXP-v0.82.iso
#
VBoxManage modifyvm MicroXP --boot1 dvdVBoxHeadless --startvm MicroXP -v on -a 192.168.1.1 -p 5900 -S passwordVBoxManage storageattach MicroXP --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /usr/local/lib/virtualbox/additions/VBoxGuestAdditions_3.1.2.iso
Source: https://habr.com/ru/post/84469/
All Articles