Centos 6.5 x86_64 system installation KVM Virtual Machine-clone and copy XML files to install new Virtual Machine
1. clone a new virtual machine through the template Virtual Machine
IP address planning:
HOST: 10.0.1.149
Template VM: 10.0.1.228
Clone VM: 10.0.1.100
Shut down or pause the template virtual machine, and then clone and
What is KVM? For kernel-based Virtual MachineInstallation Environment Centos 6.5 Mini x64 disable SELinux, disable firewallInstallation process:1. See if our PC supports virtualizationgrep ' SVM|VMX ' /proc/cpuinfoIf there is a result, support is indicatedIf you have not returned so long need to go to bios on your own, in the BIOS to find virtualization technology or VT keyword to let it be on or enabled.2.
Introduction to KVM Virtual machines
The abbreviation for KVM (kernel-based virtual Machine) is an open source, fully virtualized solution. Since Linux2.6.20 is integrated in various distributions of Linux, KVM virtualization runs in the x86 architecture and requires the support of hardware (Intel VT or amd-v), which is managed using Linux's own scheduler. The f
After cloning is complete, there may be a conflict with the MAC address, go to KVM to remove the eth0 configuration in/etc/udev/rules.d/70-persistent-net.rules, then change eth1 to Eth0, and modify/etc/sysconfig/ Network-script/ifcfg-eth0 Mac, confirm that the MAC address in the two configuration files is the same.Reference:http://blog.51cto.com/freedyong/1361907Modify MAC address after KVM clone is complet
1, first download KVM source code: http://www.linux-kvm.org/page/Downloads or http://sourceforge.net/projects/kvm/files/ to select the latest version
2, go to the KVM official website to view the installation Tutorial: http://www.linux-kvm.org/page/HOWTO1
3. Install the function dependency Library
On a Debian etch s
(Owed by: Spring Night rain Http://blog.csdn.net/chunyexiyu)
After applying for the Kvm/vps virtual machine, the general installation of the system is Linux, such as Common CentOS;
With the host, generally we will build a Web server, FTP server, compile the server; For these common items, here are some basic operations.
First you need to know the host's IP and SSH listening port number, with the listening
First, how to install KVM
Here I am using VMware workstaion to install a Linux virtual machine on a Windows system for KVM installation operations.First, we need to know if the CPU on our installed Linux system supports KVM virtualization technology, so we need the followin
1.[root@kvmtest ~] #egrep ' VMX|SVM '/proc/cpuinfo//first determine if your CPU supports VMX or SVM virtualization, VMX belongs to the Inter processor, and SVM belongs to the AMD processor, Or use Cpu-z to see if your processor supports Vt-x virtualization, and VT support is turned on in the BIOS.
2. The system installs uses the kickstart to install the KVM, the main is adds 4 pack
@virtualization//provid
In CentOS, the KVM bridge connection settings encounter a problem when setting the KVM bridge connection, which is recorded for future reference [root @ vane-server ~] # Cat/etc/sysconfig/network-scripts/ifcfg-br0DEVICEbr0TYPEBridgeBOOTPROTOstaticNM_CONTROLLEDnoHWAD... in CentOS, the
Writing an article by itself is a very painful thing, in particular, the writing of technical articles must be tested to be able to share, and the old left does not ensure that each user needs to refer to the time can be successfully completed, but I can ensure that when writing the article all the information is true in the current environment in the implementation of the process. And there may be errors, or even the user may make the old left to install
I think, first try installing VNC Server on the host, then VNC will have to install the client (so there is VNC's virtual desktop), or try-curses; Of course, if you really need nographic to install this, then this is your preparation. The QEMU 1.7 version used here by (similar to other versions of QEMU/KVM) is installed with the
Environment: CentOS 7.41. Create SSH private key and SSH configuration options (on systems with Webvirtmgr installed):# Switch to Nginx userSu-nginx-s/bin/bash# production ssh key Ssh-keygen#(path-to-id-rsa-in-nginx-home): ...# Configure Permissions Touch ~echo -E "stricthostkeychecking=no\nuserknownhostsfile=/dev/null" >> ~/.ssh/ 0600 ~/.ssh/config2. Add the Webvirt user (on the Qemu-kvm/libvirt host serv
Here to install a centos-minimal system for example:1. Copy the files from the installation ISO and modify the. treeinfo file to specify the correct kernel and INITRD.
The code is as follows
Copy Code
mount/data/nfs/images/centos-6.4-x86_64-minimal.iso/mnt/-O loopCp-r/mnt//root/cent-os
Vim/root/cent-os/.treeinfo Modify this
Install kvm in Ubuntu to virtualize multiple external tuservers on one server for cluster. Several solutions have been taken into consideration. because of the exclusion of the price, VirtualBox is good, but KVM is a Linux kernel layer and delivers better performance. Use is preferred. Www.2cto.com...
Install
Under the KVM can generate two types of network cards, RTL8139 and E1000, in fact, should be the underlying generation of different chips of the network card, and not with the host network card is what model is what model, wherein the default is 100 Gigabit network card, that is, RTL8319 crab card, the other is the E1000 Gigabit network card.Setup steps:1. Modify KVMVirsh Edit KVM Name2, find RTL8139, and r
preconfigured metadata should be a reference to some of the features of the original RAW image file to speed up reading and writing optimization, the principle of raw, as in advance to empty data to occupy the space, rather than like the ordinary qcow2 format, on-demand increments. And above whether the raw format or qcow2 the way of pre-allocation metadata will not directly 1G of space completely occupied, to host the I node occupancy is also no effect, this can be created and deleted through
There are a lot of instructions on KVM, but it is basically a command line. It is not intuitive for new users, and it is not mentioned about virtio driver installation. So I sent another article.
The performance of the virtual hard disk and virtual network using the virtio interface is not comparable to that of the default ide interface.
From Installing a virtual machine to running a virtual system, you only need to use the command line three time
the kernel is compiledUse o = This symbolic link points to the same link as source.
# Cd/lib/modules/2.6.22/# Unlink build# Ln-SF 'readlink source' build
Note that after
Or do not change it. Pay attention to the parameter in
3. Configure, make, make install
# Cd/usr/local/KVM-#./Configure -- prefix =/usr/local/KVM -- With-patched-Kernel// If not done, add -- k
I. KVM Installation
Simple Method: Yum install KVM
Ii. Install and upgrade libvirt
(1) Yum install libvirt-Python-y
(2) The default version is 0.8.1, which has few functions and can be upgraded to the latest version.
Wget ftp://libvirt.org/libvirt/libvirt-0.9.4.tar.gzTar xzv
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.