Solve the problem that the virsh console cannot connect to the KVM virtual machine.
As shown in this case, the link to the KVM virtual machine through the virsh console is stuck on this interface, and no operations can be perform
1. Turn off the virtual machine # try to get the customer to shut downVmagent/vmsh Stop xxxxxxxxxVirsh List--all2. Enter the directory where the virtual machine files are locatedCd/images/xxxxxxxxx3. Increase disk capacityQemu-img Resize disk.img +10g# expansion of the virtual
Definition of CPU model:Libvirt extracts several standard types of CPU definitions, which can be found in/usr/share/libvirt/cpu_map.xml."486", "Pentium", "pentium2", "pentiumpro", "coteco", "N270", "pentiumpro", "qemu32 ","Kvm32", "cpu64-rhel5", "cpu64-rhel5", "kvm64", "pentiumpro", "Conroe" "Penryn ","Nehalem", "westmere", "pentiumpro", "cpu64-rhel5", "cpu64-rhel5", "opteron_g1 ","Opteron_g2", "opteron_g3," opteron_g4"The CPU configuration mode can be as follows:CustomBased on the characteristi
Log on to the system as root and create a bridge configuration file
# Cd/etc/sysconfig/network-scripts/
# Cp ifcfg-eth0 ifcfg-br0
# Vi ifcfg-br0
An example of a bridge script configuration file is as follows:
Device = br0
Bootproto = none
Onboot = Yes
Ipaddr = 192.168.0.10
Netmask = 255.255.255.0
Gateway = 192.168.0.1
Type = Bridge
Peerdns = Yes
Modify the NIC configuration file An example of the NIC confi
Sometimes, the cloning function of the kvm/vmware virtual machine is used to quickly replicate the installed system.
But after cloning, will find no eth0 network card.
Workaround:
1. Edit/etc/udev/rules.d/70-persistent-net.rules File
The name= "eth0" of the line configuration comments out or deleted, the name= "eth1" to modify the Name= "Eth0", the follow
(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
To facilitate the use of Virt-manager to create and manage KVM virtual machines. The default is to create a good Windows XP virtual machine, there will be no sound when connected with VNC, the sound is normal when connected with Rdesktop.Checked out some distributions of bugzilla and found a number of related bugs and
checked every mounts or180 days, whichever comes first. Use Tune2fs-c or-i to override.Next, build a directory to mount the new hard disk:[[email protected] ~]# mkdir/nd[[email protected] ~]# mkdir/nd[[email protected] ~]# mount/dev/vdb/nd/# get the Uuid[[emai of the hard drive L protected] ~]# Blkid/dev/vdb/dev/vdb:uuid= "A35e0890-3aa6-47a7-921c-c2cb9dd431e6" type= "Ext4"To add a mount to the boot boot:[[email protected] ~]# Cat/etc/fstab # #/etc/fstab# Created by Anaconda on Tue June to 08:5
Two steps: First step export xml:[[emailprotected] ~]# virsh dumpxml centos02 >12c.xml Second Step disk file [[emailprotected] virhost]# CP Centos02.img 12c.img Look at the differences between the two files: [[emailprotected] ~]# diff/etc/libvirt/qemu/centos02.xml ~/12c.xml 1,10c1,3[[email protected] ~]# Virsh define 12c.xml Domain 12c defined from 12c.xml[email protected] ~]# Virsh start 12cDomain 12c Started[[email protected] ~]# virsh list Id Name State ----------
This time found that the virtual machine can only be started once, if you start again will prompt: Unable to create cgroup for $VM _nameIt was initially thought that cgourp was not mounted, but the Mount command found that the Cgroup had been mounted. Finally in the forum to find the reason:/lib64/rc/sh/cgroup-release-agent.sh This file has the behavior of cleaning the Cgroup directory:
The cod
When the vcenter server is connected to an Azure backup server, the next step is to back up and restore the virtual machines above.Select Protection--new protectionStart creating a protection group interfaceSelect ServerOpen the Vcenter directory and select the virtual machine you want to back upFill in the group name,
Today's XenServer also has a snapshot technology, if you are doing some dangerous operations, you can take a snapshot, so that even if there is a problem, you can quickly recover. Snapshots can save the state of a virtual machine at a point in time, and can be recovered whenever an error occurs.
But if you forget to take snapshots, or if you have trouble making snapshots every time, or if some
1. Enter the Yun Yu virtual machine backup system, select "Backup/Restore"-"virtual machine recovery" and create a new recovery task.2. Under H3C CaSR virtualization type Tick the backup
1, enter the Yun Yu virtual machine backup system, select "Backup/Restore"-"virtual machine instantaneous recovery", new instantaneous recovery task.2. Under H3C CAs virtualization type, tick the
I. Structure and INTRODUCTION
KVM (kernel-based Virtual Machine) It was developed by Quramnet, the company was acquired by Red Hat in 2008;
Integrated into the kernel from the Linux 2.6.20, the kernel module makes Linux become a hypervisor layer;
It relies on the CPU virtualization instruction set, performance, security, compatibility, stability performance is
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.