There are a lot of articles on installing SunxVMVirtualBox on the Internet, but I have encountered many problems in installing SunxVMVirtualBox under Fedora9, and I have been doing this for two days, the following are my installation experiences, so that cainiao like me are more likely to use Linux 1. installation 1. software downloads will not be mentioned, I used 2.02VirtualBox-2.0.2 _ 36488_fedora9-1.i386.rpm2. If there is no security QT4 component, please use the QT4 component. Otherwise, no
There have been many articles on installing Sun xVM VirtualBox on the Internet, but I have encountered many problems when installing it under Fedora 9 according to the article I found. I tried it again for two days, the following are my installation experiences, so that cainiao like me can use Linux more easily.
I. Installation
1, software download will not say, I use 2.02 VirtualBox-2.0.2_36488_fedora9-1.i386.rpm
2. If there is no component for installing QT4, please use the QT4 component. Otherwise, the related dependency cannot be found.
# Yum install qt-devel
# Yum install qt4
# Rpm-ivh VirtualBox-2.0.2_36488_fedora9-1.i386.rpm
3. After installation, follow the prompts to execute
#/Etc/init. d/vboxdrv start
Error. After reading E for half a day, I found that I did not install kernel-devel. After installing kernel-devel
# Yum install kernel-devel
Execute again
#/Etc/init. d/vboxdrv start
The installation has been completed.
Ii. network bridging
The Network Bridge is a trigger, and the firewall problem is discovered at the end.
1. Install the bridge method. google knows that bridge-utils is required, so bridge-utils is installed.
# Yum install bridge-utils
2. For uml-utilities, you need to install this component from google, but it is not installed because VirtualBox already has similar features.
3. Create a new bridge Interface)
Brctl addbr br0
4. Establish a connection between Gust and host to the NIC vbox0
# VBoxAddIF vbox0 br0
The user I use is root
5. Remove the IP address of the card. Note: The original network will be disconnected.
# Ifconfig eth0 0.0.0.0 promisc
# Ifconfig vbox0 0.0.0.0 promisc
6. Add the network adapter to the bridge, and add eth0 and vbox0 to the bridge.
# Brctl addif br0 eth0
# Brctl addif br0 vbox
7. IP address of the bridge
-- Use DHCP, this shoshould work:
# Dhclient br0
-- Use static IP
# Ifconfig br0 x. x netmask x. x
-- Add the gateway x. x gateway address
# Route add default gw x. x dev br0
This setting has been completed, but in actual use, we will find that only the Host and Geust can be pinged, and the network cannot be connected at all. After trying N times, we will find that it is a firewall problem.
8. Firewall settings are added to the firewall.
Tun interface is trusted
Br0 interface is trusted
9. Others
Modify permissions
# Chmod 0666/dev/net/tun
(I have not verified whether it is necessary. It was copied from the Internet)