KVM virtualization configuration process

Source: Internet
Author: User

The overall idea is that VNC is connected to a physical machine to facilitate graphical Management of KVM.

After the virtual system is installed, you can manage the IP address of the subsystem through SSH.


VNC Installation

Yum install tigervnc-Server

Vim/etc/sysconfig/vncservers modify two rows

Vncservers = "1: Root"

Vncserverargs [1] = "-geometry 1024x768-nolisten TCP"


Run vncpasswd in the root account to set the VNC password for root login.

Cd ~ /. VNC/xstartup

Modify the "TWM" at the end of the document to gnome-session or startkde.

Service vncserver start


After completing the previous step, you can connect to the physical machine in a graphical manner.


---------------------------------

KVM Installation

Yum install KVM kmod-KVM-qemu-IMG libvirt Python-kernel inst virt-manager virt-Viewer bridge-utils-y



Chkconfig NetworkManager off

Chkconfig libmongod on

Service NetworkManager stop

Service libmongod start


Vim/etc/sysconfig/network-scripts/ifcfg-br0 (all addresses are the same as eth0)

Device = br0

Bootproto = static

Broadcast = ***

Ipaddr = ***

Netmask = 255.255.255.0

Onboot = Yes

Networking_ipv6 = No

Gateway = ***

Type = Bridge

Dns1 = 202.106.0.20

Dns2 = 114.114.114.114


Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Add a row at any location. Bridge = br0: Save and exit.


Service Network restart

Reboot


-----------------------

The connection address for installing VNC on the client is IP: 1

The basic running level of the physical machine can always be init 3, without affecting the graphical Management of VNC

Verwer graphical management of physical machines. When VNC is not needed, service vncserver stop




Command Line Management

Virsh

List -- all

Start *

Restart *

Shutdown *


KVM virtualization configuration process

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.