Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install virtualbox for Ubuntu

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install virtualbox for Ubuntu. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

How to install virtualbox: 1. Install DKMS

Install DKMS as VirtualBox will need it to build it's kernel modules:

2. When installing the .deb installation package of apt-get install virtualbox3 and virtualbox, you should pay attention to the following points: 1) pay attention to the number of bits of the operating system

If the operating system is 64-bit, be sure to download the 64-bit package. During installation, the first installation failed, you need to execute the command "apt-get install-f"

The specific commands are:

Execute in the download package directory:

Sudo dpkg-I virtualbox-4.2_4.2.20-90983~Ubuntu~precise_i386.deb

Perform relationship repair:

Sudo apt-get install-f

Note: the virtualbox installed in the installation package does not seem to have a configuration file "/ etc/default/virtualbox"

However, after the installation package is installed, you cannot start "service vboxweb-service start"

"Service because there is no" / etc/init.d/vboxweb-service "file." This file is not available after Apt-get install virtualbox is installed.

To start the Vboxweb-service service, you must configure the "/ etc/default/virtualbox" configuration file, set the relevant log file save path "var/log/vboxwebservice.log", and modify the relevant permissions before starting successfully. Look at it specifically:

Http://xmodulo.com/how-to-manage-virtualbox-vms-on-remote-headless-server.html

4. Remotebox installation 1), download remotebox installation package 2), decompress it, go to the directory and execute remotebox

To execute the remotebox error, you need to execute the following command "apt-get install libgtk2-perl libsoap-lite-perl rdesktop"

After the installation is complete, remotebox starts.

5. Start the virtualbox web service to set up user groups

# useradd-m vbox-G vboxusers # passwd vbox

A) at / etc/default/virtualbox, create a configuration file for the web service

[root@master ~] # vi / etc/default/virtualbox

VBOXWEB_USER= "root"

VBOXWEB_TIMEOUT=0

VBOXWEB_LOGFILE= "/ var/log/vboxwebservice.log"

VBOXWEB_HOST= "192.168.1.227"

B), initialize and set the ownership of the log file

[root@master ~] # touch / var/log/vboxwebservice.log

[root@master ~] # chown root:vboxusers / var/log/vboxwebservice.log

C), create VirtualBox configuration directory

[root@master ~] # mkdir / home/root/.VirtualBox

[root@master ~] # chown root:vboxusers / home/root/.VirtualBox/

D), start the vboxwebsrv service

Oot@ubuntu:/home/hi# service vboxweb-service start

E), query the startup status of vboxwebsrv service

Sudo netstat-nap | grep vboxwebsrv

6. Connect remotebox

When the startup is complete, click connect, enter the IP bound to the vboxweb-service service that we opened, and enter the service user name and password to connect.

At this point, the remote connection is complete, but the startup will still report an error.

There are two reasons:

1) remote virtual machines do not open remote desktops, which can be set in both Vbox and RemoteBox.

VirtualOS-> display-> remote display check, and set the remote port number, Method select External. (it is recommended to set it in RemoteBox).

2), RemoteBox does not add connection parameters

File-> RemoteBox Preferences adds a-u username-p password after RDP Client. (that is, turn on the user name and password of the vboxweb-service service).

Source: http://my.oschina.net/robinsonlu/blog/186353

3), in addition:

Before running RemoteBox on the client, there are several necessary packages to install:

A), install the necessary packages on client hosts based on Ubuntu, Mint, and Debian:

Sudo apt-get install libgtk2-perl libsoap-lite-perl rdesktop

B), install the necessary packages on client hosts based on Fedora, Centos, and RHEL:

Sudo yum install perl-Gtk2 perl-SOAP-Lite rdesktop

Http://virtual.51cto.com/art/201402/428718_all.htm

Http://remotebox.knobgoblin.org.uk/docs/remotebox.pdf

Http://my.oschina.net/robinsonlu/blog/186353

7. Virtualbox expansion pack installation

An error occurred while installing the virtualbox expansion pack downloaded by the browser to virtualbox. It may be that the virtualbox expansion package we downloaded with the browser was damaged, so the installation was not successful.

Solution:

Download the virtualbox expansion pack with the command "wget http://download.virtualbox.org/virtualbox/4.3.20/Oracle_VM_VirtualBox_Extension_Pack-4.3.20-96996.vbox-extpack", install it successfully."

Download various versions of Virtualbox source at:

Http://download.virtualbox.org/virtualbox/

On 2015-1-14, the question continues:

At this time, the remote connection is complete, but the startup will still report an error.

There are two reasons:

1. Your remote virtual machine does not have remote desktop, which can be set in both Vbox and RemoteBox.

VirtualOS-> display-> remote display check, and set the remote port number, Method select External. (it is recommended to set it in RemoteBox)

2no connection parameters are added to the Magi RemoteBox.

File-> RemoteBox Preferences adds a-u username-p password after RDP Client. (that is, the user name and password for enabling the vboxweb-service service)

Thank you for reading! This is the end of the article on "how to install virtualbox for Ubuntu". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report