sudo apt-get install dkms
deb download.virtualbox.org/virtualbox/debian karmic non-free
deb download.virtualbox.org/virtualbox/debian karmic non-free
) in /etc/apt/sources.list
or download and install the deb package. When I registered the source and did sudo apt-get install virtualbox-3.1
, I pulled a bunch of dependency packages (including some for the GUI interface). Therefore, it is better to download the deb package. Download, install:sudo dpkg -i virtualbox-3.1_3.1.0-55467_Ubuntu_karmic_i386.deb
sudo apt-get -f install
VBoxManage createvm --name ubuntu --ostype Ubuntu --register
VBoxManage list ostypes
)VBoxManage modifyvm ubuntu --memory 512 --floppy disabled --audio none --nic1 bridged --bridgeadapter1 eth0 --vram 4 --accelerate3d off --boot1 disk --acpi on --cableconnected1 on --usb off --vrdp on --vrdpport 3390
--nic1 nat
). also include rdpVBoxManage createhd --filename /home/user/vbox/ubuntu.vdi --size 20000 --register
VBoxManage storagectl ubuntu --name "IDE Controller" --add ide
VBoxManage storageattach ubuntu --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /home/user/vbox/ubuntu.vdi
VBoxManage storageattach ubuntu --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /home/user/vbox/iso/ubuntu-9.10-alternate-i386.iso
VBoxManage modifyvm ubuntu --boot1 dvd
nohup VBoxHeadless --startvm ubuntu &
--vrdpport 3390
), set the system, do sudo apt-get install openssh-server
. now you can access the virtual machine via sshVBoxManage controlvm ubuntu acpipowerbutton
VBoxManage controlvm ubuntu poweroff
VBoxManage modifyvm ubuntu --boot1 disk
VBoxManage storageattach ubuntu --storagectl "IDE Controller" --port 1 --device 0 --medium none
nohup VBoxHeadless --startvm ubuntu &
VBoxManage list runningvms
VBoxManage showvminfo ubuntu
Source: https://habr.com/ru/post/77834/
All Articles