Reference: Http://wenku.baidu.com/link?url=xAObzE8XuDfGJsCDk6vAnVnp91glt_bgvK6saMC4WS2BX7_ Du54ovido0uth0ipekovsfsuqsas62ruunvfvokgl5p6k3omznnmomgapossSummarize:1.KVM kernel Modules2.QEMU virtualization software: In user space, the CPU of virtual power can be on x863.QEMU-KVM: The user space tool that can control the kernel module, the user cannot go directly to the KVM inside the kernel, so rely on this QEMU-KVM tool, can create and manage the virtual machine4.virt-manager:
Vcpus:libvirt in Get_info ()
Vcpu_used: The sum of all VMS on the node is counted by Dom.vcpus () in Libvirt
Ram
Memory:libvirt in Get_info ()
Memory_mb_used: The available memory is calculated by/proc/meminfo, and then the total memory minus the available memory
DISK
LOCAL_GB:OS.STATVFS (Conf.instances_path)
LOCAL_GB_USED:OS.STATVFS (Conf.instances_path)
Other
Using the following environment, measured by:Virsh version:Compiled against Library:libvirt 1.1.1Using Library:libvirt 1.1.1Using Api:qemu 1.1.1Running Hypervisor:qemu 1.5.3OS version:Red Hat Enterprise Linux Server Release 7.1 (MAIPO)Network composition:PC---> Console server (10.167.14.102)----> server (192.168.10.3)A Linux system installation is required on the KVM on the server via the PC. The PC does not have direct access to the server, SSH to the stepping server, and then SSH to the server
1. View all KVM virtual machines2. Renaming a KVM virtual machine is best to shut down the virtual machine before exporting its XML file[[Email PROTECTED]_KVM ~]# cd/etc/libvirt/qemu[[email protected]_kvm qemu]# virsh dumpxml > Kvm_00.xml3, in order to let the renamed virtual machine name and disk file name consistent, we can first name the previous disk file to Kvm_00.img[Email PROTECTED]_KVM ~]# cd/var/lib/li
. The task first obtains the number of CPUs, total memory size, and total disk size of the current computing node, and CALLS Nova. virt. libvirt... driver. lib1_driver. get_available_resource (). Then, find all the virtual machine information running on the node from the database, and calculate the number of vcpu, memory size, and disk size used by these virtual machines. Then, the total number of resources on the computing node is subtracted from the
Kvm Performance OptimizationFor details about how many cpu resources are allocated to guest, refer to the following article:Https://my.oschina.net/chape/blog/173981You can use huge pages for memory:/Etc/sysctl. confVm. hugepages_treat_as_movable = 0Vm. hugetlb_shm_group = 0Vm. nr_hugepages = 4096Vm. nr_hugepages_mempolicy = 4096Vm. nr_overcommit_hugepages = 0Check whether the huge page is allocated:Cat/proc/meminfo | grep-I hugeShown as follows:AnonHugePages: 491520 kBHugePages_Total: 4096HugePa
Configure xen in openstack
First install Nova-compute-xen: APT-Get install Nova-compute-xen
Configure NOVA:
/Etc/NOVA/nova-compute.conf:
-- Lib1__type = xen
/Etc/NOVA. conf:
-- Connection_type = libvirt
-- Lib1__type = xen
In this case, the Nova-compute cannot be started, and an error is returned:
2012-06-28 15:12:26 trace Nova traceback (most recent call last ):2012-06-28 15:12:26 trace Nova file "/usr/bin/NOV
http://download.cirros-cloud.net/0.3.5/Download cirros-0.3.5-x86_64-disk.imgBecause KVM (exactly Libvirt) does not accept remote administration by default, you need to configure two files in the managed host by the following content/etc/default/libvirt-bin
Start_libvirtd= "Yes"Libvirtd_opts= "-d-l"
/etc/libvirt/libvirtd.conf
LISTEN_TLS = 0L
local markdown file in Chrome, Http/https is also supported, you will see the content that has been converted to HTML
Enter the file path in the Chrome address bar to open the markdown file, use vim to edit the markdown, save the page will be automatically refreshed, to achieve a preview.
Add the following to the VIMRC:autocmd BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} map You need to preview when you enter \p to open the browser preview.ImageImageMagickDownloadWgetSshyaour
172.16.0.1 172.16.31.7:icmp Echo reply, id 2305, seq 0, length
10:35:36.395052 IP 172.16.31.7 >172.16.0.1:icmp Echo requ EST, id 2305, seq 1, length
10:35:36.395860 IP 172.16.0.1 >172.16.31.7:icmp Echo reply, id 2305, seq 1, length 64
The host's eth0 the request of the virtual machine through the NAT function to the gateway request to reply;
3. The above steps can be realized through the script Automation Oh!Install the DNSMASQ software to provide the virtual machine with DHCP service to
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.