You need to install a virtual machine for learning. Looking at the current IP technology, it seems that virtualization technology has become a trend of development, and excellent virtual machine software is endless. I chose the VirtualBox virtual machine here. Let's talk about the situation of my own machine first. my Debian system uses the unstable source and the kernel is compiled by myself.
You need to install a virtual machine for learning. Looking at the current IP technology, it seems that virtualization technology has become a trend of development, and excellent virtual machine software is endless. I chose the VirtualBox virtual machine here.
Let's talk about the situation of my own machine first. my Debian system uses the unstable source, and the kernel is the 2.6.23 compiled by myself. I prefer the apt software package installation method when using the Debian system. Follow these steps:
1. check whether the required software package exists in the source.
# Apt-cache search virtualbox
From the output result, we can see that there is a required software package in the source. now we can use apt to install it.
2. install VirtualBox
# Apt-get install virtualbox-ose
After the installation was successful, the Debianapt software was being installed conveniently. starting virtualbox, however, it was found that the corresponding module driver was not installed and it could not be started properly. Check that the source does not have a driver module that matches your kernel version. it seems that you have to compile and install the driver on your own.
We can use the m-a tool to compile and install the module driver. if our system does not install this tool, we need to install the corresponding tool software first:
# Apt-get install module-assistant
Prepare necessary conditions for module compilation:
# M-a prepare
Now we can install the virtualbox driver module:
3. obtain the source code of the corresponding module.
# M-a get virtualbox-ose-source
This will download the corresponding source code file to the/usr/src directory, and the module compilation is completed in this directory.
4. compilation module
# M-a build virtualbox-ose-modules
After the command is executed, we will see the compiled deb module package.
5. install the generated deb package
# Dpgk-I dpkg-ivirtualbox-ose-modules-2.6.23.071016_1.5.4-dfsg-1 + 2.6.23.071016-10.00.Custom _ i386.deb
Of course, we can also use the following command to automatically install the required driver module, instead of three steps to get build install:
# M-a-I virtualbox-ose-modules
6. load the driver module
# Modprobe vboxdrv
If no error is returned, the operation is successful. Start Virtualbox again. haha, it's up ~~
To automatically load modules, we can add vboxdrv to the/etc/modules file. this will load the required modules in the system.
That's all ~~ Enjoy ~~