RHEL5Xen virtual network management and virtual machine installation

Source: Internet
Author: User
Tags xen hypervisor vmware server
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.