Article title: RHEL5Xen virtual network management and virtual machine installation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Because Xen virtualization uses Para-virtualization (Para-virtualization), all hardware is only scheduled through the xen hypervisor, compared with VMware Server and Workstations, the performance of virtual hardware is much better! But there was always a problem: "virtual network "! Today, we found the latest bate package for virt-manager (GUI tool used to manage virtual machines in RHEL5) on rhn... Haha .... Virtual networks have become simple from today!
1. download the following package from rhn.redhat.com
Dnsmasq-2.39-2.el5.i386.rpm
Libvirt-0.2.4-4.el5.i386.rpm
Libvirt-python-0.2.3-4.el5.i386.rpm
Python-virtinst-0.103.0-2.el5.noarch.rpm
Virt-manager-0.4.0-2.el5.i386.rpm
# Rpm-Uvh *. rpm
2. restart the service
#/Etc/init. d/libmongod restart
#/Etc/init. d/xend restart
3. activate the virtual network
First, we can see the following files:
/Usr/share/libvirt/networks/default. xml
This is the network setting file content
Default
// IP address of the virtual network card
// DHCP address to be allocated
|
Use virsh to manage virtual networks
# Virsh
Virsh # net-create/usr/share/libvirt/networks/default. xml
Virsh # net-start default
Virsh # quit
# Ifconfig
Now you should see a new Nic virbr0
4. create a new virtual network segment
# Cp/usr/share/libvirt/networks/default. xml \/usr/share/libvirt/networks/mynet. xml # vim/usr/share/libvirt/networks/mynet. xml
Mynet
// IP address of the virtual network card
// DHCP address to be allocated
|
Use virsh to manage virtual networks
# Virsh
Virsh # net-create/usr/share/libvirt/networks/mynet. xml
Virsh # net-start mynet
Virsh # quit
# Ifconfig
Now you should see a new Nic virbr1
[1] [2] Next page