Различия
Здесь показаны различия между двумя версиями данной страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
dev:ubuntu:virtualbox [2011/04/01 18:23] jamis7005 |
dev:ubuntu:virtualbox [2011/06/17 06:55] (текущий) alexeyb |
||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== How to setup VirtualBox on Ubuntu ====== | ====== How to setup VirtualBox on Ubuntu ====== | ||
| - | Consider that 192.168.1.1 is a host, and "denis" is a user on the host side. | ||
| - | 1. Installing server | + | Source http://www.virtualbox.org/wiki/Linux_Downloads |
| - | sudo apt-get install ssh | + | \\ |
| + | ---- | ||
| + | \\ | ||
| + | 1. Add the following line to **/etc/apt/sources.list**: | ||
| + | <file> | ||
| + | deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free | ||
| + | </file> | ||
| + | 2. Add and register the Oracle public key: | ||
| + | wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - | ||
| - | 2. Setting up server | + | 3. To install VirtualBox: |
| - | sudo gedit /etc/ssh/sshd_config | + | sudo apt-get update |
| - | --- | + | sudo apt-get install virtualbox-4.0 |
| - | Port 2011 | + | |
| - | PermitRootLogin no | + | |
| - | AuthorizedKeysFile %h/.ssh/authorized_keys | + | |
| - | --- | + | |
| - | sudo service ssh restart | + | 4. Add right for current user: |
| + | - System / Administration / Users and groups | ||
| + | - choose Users | ||
| + | - Additional parameters / User's rights / Check - VirtualBox | ||
| + | ====== KVM and VirtualBox solving problems ====== | ||
| - | 3. Setting up client | + | If you had preinstalled KVM on Ubuntu (virtual machine for non graphical applications) |
| + | where can be such proble as | ||
| - | ssh-keygen -t dsa | + | "VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE)" |
| - | (empty answer for every question) | + | |
| - | ssh-copy-id "denis@192.168.1.4 -p 2011" | + | To solve it, you should remove KVM from kernel (for intel processors): |
| - | + | rmmod kvm_intel | |
| - | + | rmmod kvm | |
| - | 4. Close server access for user without dsa-authorization: | + | For amd processors: |
| - | sudo gedit /etc/ssh/sshd_config | + | rmmod kvm_amd |
| - | --- | + | rmmod kvm |
| - | PasswordAuthentication no | + | |
| - | --- | + | |
| - | + | ||
| - | sudo service ssh restart | + | |
| - | + | ||