- Как установить видеодрайвер на ОС в virtualbox — Debian
- Download VirtualBox for Linux Hosts
- VirtualBox 6.1.26 for Linux
- Oracle Linux
- Debian-based Linux distributions
- RPM-based Linux distributions
- Install virtualbox drivers linux
- 2.3.2.В The Oracle VM VirtualBox Kernel Modules
- 2.3.2.1.В Kernel Modules and UEFI Secure Boot
- 2.3.3.В Performing the Installation
- 2.3.3.1.В Installing Oracle VM VirtualBox from a Debian or Ubuntu Package
- 2.3.3.2.В Using the Alternative Generic Installer (VirtualBox.run)
- 2.3.3.3.В Performing a Manual Installation
- 2.3.3.4.В Updating and Uninstalling Oracle VM VirtualBox
- 2.3.3.5.В Automatic Installation of Debian Packages
- 2.3.3.6.В Automatic Installation of RPM Packages
- 2.3.3.7.В Automatic Installation Options
- 2.3.4.В The vboxusers Group
- 2.3.5.В Starting Oracle VM VirtualBox on Linux
Как установить видеодрайвер на ОС в virtualbox — Debian
Пару минут туплю в дебиан, а уже запутался, вики в разы хуже чем у арча.
Дело в том, что я пихнул debian на виртуалбокс, поставил xorg (в котором внезапно как-то многовато пакетов), поставил крысу и запускаю, ну да, я забыл поставить видеодрайвер, вбиваю apt-get install xf86-video-vesa — не найден, иду на рашнвики, там пишет, что так и правильно делать, сначала думал реп не подключен но пошел пошел на англ.вики. Иду значит на англоязычную вики, там вовсе раздела Универсальный драйвер нет.. Я запутался по полной, с таким легким вопросом, я в шоке, помогите, как поставить xf86-video-vesa на виртуалбокс в дистрибутиве Debian?
Емнип, там же есть спец драйвер для работы в виртуалбоксе?
Всегда ставил именно этот драйвер. Вопрос в том что за х.. несуразица ? Почему из дебиана выпилили xf86-video-vesa, и выпилили ли вовсе?
Да и драйвер специально для виртуалбокса я найти в вики не могу, где вообще курить инф если вики. так себе?
Ну так добиши вики, в чем проблема? А искать хоть прям в пакетном менеджере.
xserver-xorg-video-vesa — не то, что вы ищете? Ну или virtualbox-guest-x11
Первый пакет установлен, второй не ищет. Может проблема вообще не в видео? Напоминаю, иксы не запукаються, вот скрины, помоги пожалуйста, ЛОР -http://i.imgur.com/u9OS7HE.png http://i.imgur.com/jcyH15H.png
exec: ck-launch-session: not found
Может проблема вообще не в видео?
Внезапно «ДА», ставь пакет consolekit.
Вообще правильно будет посоветовать все снести и поставить, ничего не ломая. Debian сам поставит virtualbox guest additions, ты сделаешь снапшот и будешь ломать/крушить сколько вздумается. Но ты же не послушаешься, верно?
Почему из дебиана выпилили xf86-video-vesa, и выпилили ли вовсе?
Не было там такого пакета вообще, xserver-xorg-video-vesa тебе не нужен.
Да и драйвер специально для виртуалбокса я найти в вики не могу, где вообще курить инф если вики. так себе?
Господи. Ты скажи сразу, какая у тебя цель: систему настроить или покурить? Если первое, то не надо ничего придумывать, делать и ломать. Ставишь Debian через установщик, ставишь virtualbox-guest-dkms, virtualbox-guest-x11 и linux-headers-amd64 (соответственно версии ядра), если они каким-то чудом сами не поставились. А хочешь курить — кури, но, как видишь, систему настроить у тебя по накурке не получается.
А что означает «Ничего не ломая»? Я вроде и не ломал, всё что я сделал, это поставил голую систему, и натянул на неё xorg и крысу. Я сейчас на виртуалке, как писал выше, просто смотрю дистрибутив, думаю натянуть на мейн т.к арч выбешивает, так не хотелось бы на фейлить на основной системе.
Да и consolekit заработал, спасибо.
На счёт «Не было такого пакета» — https://wiki.debian.org/ru/GraphicsCard#A.2BBCMEPQQ4BDIENQRABEEEMAQ7BEwEPQRLB. , на русском почему-то было, что странно, ну это так, к слову.
Зачем вы ставите дебиан? Ну ты ж неавдекват, ну сиди на арчике каком-нибудь..зря только время потратил и тред прочитал.
А «неавдекват» то почему ? Дебиан ставлю для СТАБИЛЬНОСТИ. В арче слишком кривой софт в последнее время, да и система надоела с вечным пердолингом.
на русском почему-то было
Драйвер xf86-video-vesa был и есть, а пакет с ним в Debian называется (со времен твоего младенчества еще) xserver-xorg-video-vesa.
Заметь, кстати: «рекомендуется использовать только если никакие другие драйвера не работают»!
И да, «Пахом 0% КПД», я бы на твоем месте выложил пароль и зарегистрировал новый аккаунт. А еще лучше — не регистрировал бы.
Да нет, мне и тут уютно, вон даже на ЛОР срать не хотел, пошел на сторонний ресурс.
Гуглить разучился, иль забанили тебя? тыц
apt-get install build-essential dkms module-assistant; m-a prepare;
В Virtualbox в меню «Устройства» нажать «Подключить образ дополнений гостевой ОС» а затем снова в рутовом терминале:
Источник
Download VirtualBox for Linux Hosts
Note: The package architecture has to match the Linux kernel architecture, that is, if you are running a 64-bit kernel, install the appropriate AMD64 package (it does not matter if you have an Intel or an AMD CPU). Mixed installations (e.g. Debian/Lenny ships an AMD64 kernel with 32-bit packages) are not supported. To install VirtualBox anyway you need to setup a 64-bit chroot environment.
The VirtualBox base package binaries are released under the terms of the GPL version 2.
Please choose the appropriate package for your Linux distribution.
VirtualBox 6.1.26 for Linux
- Oracle Linux 8 / Red Hat Enterprise Linux 8 / CentOS 8
- Oracle Linux 7 / Red Hat Enterprise Linux 7 / CentOS 7
- Oracle Linux 6 / Red Hat Enterprise Linux 6 / CentOS 6
- Ubuntu 19.10 / 20.04 / 20.10 / 21.04
- Ubuntu 18.04 / 18.10 / 19.04
- Ubuntu 16.04
- Debian 11
- Debian 10
- Debian 9
- openSUSE 15.0
- openSUSE 13.2 / Leap 42
- Fedora 33 / 34
- Fedora 32
- All distributions (built on EL6 and therefore not requiring recent system libraries)
You might want to compare the checksums to verify the integrity of downloaded packages. The SHA256 checksums should be favored as the MD5 algorithm must be treated as insecure!
- SHA256 checksums, MD5 checksums
Oracle Linux
Users of Oracle Linux 6, 7 and 8 can use the Oracle Linux yum repository and enable the ol6_developer channel for Oracle Linux 6, the ol7_developer channel for Oracle Linux 7, or the ol8_developer channel for Oracle Linux 8. After that, do
to get the latest maintenance release of VirtualBox 6.1.x installed.
Debian-based Linux distributions
Add the following line to your /etc/apt/sources.list. According to your distribution, replace ‘ ‘ with ‘eoan‘, ‘bionic‘, ‘xenial‘, ‘buster‘, ‘stretch‘, or ‘jessie‘ (older versions of VirtualBox supported different distributions):
The Oracle public key for apt-secure can be downloaded
- here for Debian 8 («Jessie») / Ubuntu 16.04 («Xenial») and later
- here for older distributions.
You can add these keys with
or combine downloading and registering:
The key fingerprint for oracle_vbox_2016.asc is
The key fingerprint for oracle_vbox.asc is
(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded here.)
To install VirtualBox, do
Replace virtualbox-6.1 by virtualbox-6.0 or virtualbox-5.2 to install the latest VirtualBox 6.0 or 5.2 build.
What to do when experiencing The following signatures were invalid: BADSIG . when refreshing the packages from the repository?
RPM-based Linux distributions
We provide a yum/dnf-style repository for Oracle Linux/Fedora/RHEL/openSUSE. All .rpm packages are signed. The Oracle public key for rpm can be downloaded here. You can add this key (not normally necessary, see below!) with
or combine downloading and registering:
The key fingerprint is
After importing the public key, the package signature can be checked with
Note that importing the key is not necessary for yum users (Oracle Linux/Fedora/RHEL/CentOS) when using one of the virtualbox.repo files from below as yum downloads and imports the public key automatically! Zypper users should run
The package signature is checked by yum/dnf/zypper as well:
Источник
Install virtualbox drivers linux
For the various versions of Linux that are supported as host operating systems, see Section 1.4, “Supported Host Operating Systems”.
You may need to install the following packages on your Linux system before starting the installation. Some systems will do this for you automatically when you install Oracle VM VirtualBox.
Qt 5.3.2 or later. Qt 5.6.2 or later is recommended.
SDL 1.2.7 or later. This graphics library is typically called libsdl or similar.
These packages are only required if you want to run the Oracle VM VirtualBox graphical user interfaces. In particular, VirtualBox , the graphical VirtualBox Manager, requires both Qt and SDL. If you only want to run VBoxHeadless , neither Qt nor SDL are required.
2.3.2.В The Oracle VM VirtualBox Kernel Modules
In order to run other operating systems in virtual machines alongside your main operating system, Oracle VM VirtualBox needs to integrate very tightly with your system. To do this it installs a driver module called vboxdrv into the system kernel. The kernel is the part of the operating system which controls your processor and physical hardware. Without this kernel module, you can still use the VirtualBox Manager to configure virtual machines, but they will not start.
Network drivers called vboxnetflt and vboxnetadp are also installed. They enable virtual machines to make more use of your computer’s network capabilities and are needed for any virtual machine networking beyond the basic NAT mode.
Since distributing driver modules separately from the kernel is not something which Linux supports well, the Oracle VM VirtualBox install process creates the modules on the system where they will be used. This means that you may need to install some software packages from the distribution which are needed for the build process. Required packages may include the following:
GNU compiler (GCC)
Kernel header files
Also ensure that all system updates have been installed and that your system is running the most up-to-date kernel for the distribution.
The running kernel and the kernel header files must be updated to matching versions.
The following list includes some details of the required files for some common distributions. Start by finding the version name of your kernel, using the command uname -r in a terminal. The list assumes that you have not changed too much from the original installation, in particular that you have not installed a different kernel type.
With Debian and Ubuntu-based distributions, you must install the correct version of the linux-headers , usually whichever of linux-headers-generic , linux-headers-amd64 , linux-headers-i686 or linux-headers-i686-pae best matches the kernel version name. Also, the linux-kbuild package if it exists. Basic Ubuntu releases should have the correct packages installed by default.
On Fedora, Red Hat, Oracle Linux and many other RPM-based systems, the kernel version sometimes has a code of letters or a word close to the end of the version name. For example «uek» for the Oracle Unbreakable Enterprise Kernel or «default» or «desktop» for the standard kernels. In this case, the package name is kernel-uek-devel or equivalent. If there is no such code, it is usually kernel-devel .
On some SUSE and openSUSE Linux versions, you may need to install the kernel-source and kernel-syms packages.
If you suspect that something has gone wrong with module installation, check that your system is set up as described above and try running the following command, as root:
2.3.2.1.В Kernel Modules and UEFI Secure Boot
If you are running on a system using UEFI (Unified Extensible Firmware Interface) Secure Boot, you may need to sign the following kernel modules before you can load them:
vboxdrv
vboxnetadp
vboxnetflt
vboxpci
See your system documentation for details of the kernel module signing process.
2.3.3.В Performing the Installation
Oracle VM VirtualBox is available in a number of package formats native to various common Linux distributions. See Section 1.4, “Supported Host Operating Systems”. In addition, there is an alternative generic installer (.run) which you can use on supported Linux distributions.
2.3.3.1.В Installing Oracle VM VirtualBox from a Debian or Ubuntu Package
Download the appropriate package for your distribution. The following example assumes that you are installing to a 64-bit Ubuntu Xenial system. Use dpkg to install the Debian package,as follows:
The installer will also try to build kernel modules suitable for the current running kernel. If the build process is not successful you will be shown a warning and the package will be left unconfigured. Look at /var/log/vbox-install.log to find out why the compilation failed. You may have to install the appropriate Linux kernel headers, see Section 2.3.2, “The Oracle VM VirtualBox Kernel Modules”. After correcting any problems, run the following command:
This will start a second attempt to build the module.
If a suitable kernel module was found in the package or the module was successfully built, the installation script will attempt to load that module. If this fails, please see Linux Kernel Module Refuses to Load for further information.
Once Oracle VM VirtualBox has been successfully installed and configured, you can start it by clicking VirtualBox in your Start menu or from the command line. See Section 2.3.5, “Starting Oracle VM VirtualBox on Linux”.
2.3.3.2.В Using the Alternative Generic Installer (VirtualBox.run)
The alternative generic installer performs the following steps:
Unpacks the application files to the target directory /opt/VirtualBox/ , which cannot be changed.
Builds and installs the Oracle VM VirtualBox kernel modules: vboxdrv , vboxnetflt , and vboxnetadp .
Creates /sbin/rcvboxdrv , an init script to start the Oracle VM VirtualBox kernel module.
Creates a new system group called vboxusers .
Creates symbolic links in /usr/bin to a shell script /opt/VirtualBox/VBox which does some sanity checks and dispatches to the actual executables: VirtualBox , VBoxVRDP , VBoxHeadless and VBoxManage .
Creates /etc/udev/rules.d/60-vboxdrv.rules , a description file for udev, if that is present, which makes the USB devices accessible to all users in the vboxusers group.
Writes the installation directory to /etc/vbox/vbox.cfg .
The installer must be executed as root with either install or uninstall as the first parameter. For example:
Or if you do not have the sudo command available, run the following as root instead:
Add every user who needs to access USB devices from a VirtualBox guests to the group vboxusers . Either use the OS user management tools or run the following command as root:
The usermod command of some older Linux distributions does not support the -a option, which adds the user to the given group without affecting membership of other groups. In this case, find out the current group memberships with the groups command and add all these groups in a comma-separated list to the command line after the -G option. For example: usermod -G group1 , group2 ,vboxusers username .
2.3.3.3.В Performing a Manual Installation
If you cannot use the shell script installer described in Section 2.3.3.2, “Using the Alternative Generic Installer (VirtualBox.run)”, you can perform a manual installation. Run the installer as follows:
This will unpack all the files needed for installation in the directory install under the current directory. The Oracle VM VirtualBox application files are contained in VirtualBox.tar.bz2 which you can unpack to any directory on your system. For example:
To run the same example as root, use the following commands:
The sources for Oracle VM VirtualBox’s kernel module are provided in the src directory. To build the module, change to the directory and use the following command:
If everything builds correctly, run the following command to install the module to the appropriate module directory:
In case you do not have sudo, switch the user account to root and run the following command:
The Oracle VM VirtualBox kernel module needs a device node to operate. The above make command will tell you how to create the device node, depending on your Linux system. The procedure is slightly different for a classical Linux setup with a /dev directory, a system with the now deprecated devfs and a modern Linux system with udev .
On certain Linux distributions, you might experience difficulties building the module. You will have to analyze the error messages from the build system to diagnose the cause of the problems. In general, make sure that the correct Linux kernel sources are used for the build process.
Note that the /dev/vboxdrv kernel module device node must be owned by root:root and must be read/writable only for the user.
Next, you install the system initialization script for the kernel module and activate the initialization script using the right method for your distribution, as follows:
This example assumes you installed Oracle VM VirtualBox to the /opt/VirtualBox directory.
Create a configuration file for Oracle VM VirtualBox, as follows:
Create the following symbolic links:
2.3.3.4.В Updating and Uninstalling Oracle VM VirtualBox
Before updating or uninstalling Oracle VM VirtualBox, you must terminate any virtual machines which are currently running and exit the Oracle VM VirtualBox or VBoxSVC applications. To update Oracle VM VirtualBox, simply run the installer of the updated version. To uninstall Oracle VM VirtualBox, run the installer as follows:
As root, you can use the following command:
You can uninstall the .run package as follows:
To manually uninstall Oracle VM VirtualBox, perform the manual installation steps in reverse order.
2.3.3.5.В Automatic Installation of Debian Packages
The Debian packages will request some user feedback when installed for the first time. The debconf system is used to perform this task. To prevent any user interaction during installation, default values can be defined. A file vboxconf can contain the following debconf settings:
The first line enables compilation of the vboxdrv kernel module if no module was found for the current kernel. The second line enables the package to delete any old vboxdrv kernel modules compiled by previous installations.
These default settings can be applied prior to the installation of the Oracle VM VirtualBox Debian package, as follows:
In addition there are some common configuration options that can be set prior to the installation. See Section 2.3.3.7, “Automatic Installation Options”.
2.3.3.6.В Automatic Installation of RPM Packages
The RPM format does not provide a configuration system comparable to the debconf system. See Section 2.3.3.7, “Automatic Installation Options” for how to set some common installation options provided by Oracle VM VirtualBox.
2.3.3.7.В Automatic Installation Options
To configure the installation process for .deb and .rpm packages, you can create a response file named /etc/default/virtualbox . The automatic generation of the udev rule can be prevented with the following setting:
The creation of the group vboxusers can be prevented as follows:
If the following line is specified, the package installer will not try to build the vboxdrv kernel module if no module fitting the current kernel was found.
2.3.4.В The vboxusers Group
The Linux installers create the system user group vboxusers during installation. Any system user who is going to use USB devices from Oracle VM VirtualBox guests must be a member of that group. A user can be made a member of the group vboxusers either by using the desktop user and group tools, or with the following command:
2.3.5.В Starting Oracle VM VirtualBox on Linux
The easiest way to start an Oracle VM VirtualBox program is by running the program of your choice ( VirtualBox , VBoxManage , or VBoxHeadless ) from a terminal. These are symbolic links to VBox.sh that start the required program for you.
The following detailed instructions should only be of interest if you wish to execute Oracle VM VirtualBox without installing it first. You should start by compiling the vboxdrv kernel module and inserting it into the Linux kernel. Oracle VM VirtualBox consists of a service daemon, VBoxSVC , and several application programs. The daemon is automatically started if necessary. All Oracle VM VirtualBox applications will communicate with the daemon through UNIX local domain sockets. There can be multiple daemon instances under different user accounts and applications can only communicate with the daemon running under the user account as the application. The local domain socket resides in a subdirectory of your system’s directory for temporary files called .vbox- -ipc . In case of communication problems or server startup problems, you may try to remove this directory.
All Oracle VM VirtualBox applications ( VirtualBox , VBoxManage , and VBoxHeadless ) require the Oracle VM VirtualBox directory to be in the library path, as follows:
Copyright В© 2004, 2020 Oracle and/or its affiliates. All rights reserved. Legal Notices
Источник