-- Location # specify other installation sources, such as http: // host/path
-- Extra-args # attaches the kernel command line parameters to the installer when you execute the Client installation from the specified location of the "-- location" option. For example, "ks = http: // 172.25.254.116/ks. cfg" specifies the automatic response File
-- Pxe # Start With PXE boot
-- Import # import existing virtual machines
-- OS-type # specify the operating system type
-- Network # specify the virtual net
Shell script Programming-case OneProgramming Requirements:1. Create a Vm-ctl script, under/bin/2. Implement features: Create a virtual machine, create a virtual machine snapshot, turn on a virtual machine, display a virtual machine, stop a virtual machine, reset a virtual machine.The script achieves the expected result:SH vm-ctl create|nodecreate|start|view|stop|reset VmnameThe implementation script is as follows:#!/bin/bashCase "$" inCreate) # #创建虚拟机Echo Create VM ...Virt-install \--name--ram 1
Recently in the study of KVM, the process is not too fast, recently organized a KVM virtual machine technology Learning notes, now share to everyone, but also for everyone to make a reference. A friend in need can come to know.
The management of the KVM virtual machine is mainly through the Virsh command to the virtual machine.
1. View the KVM virtual machine configuration file and running status
(1) KVM virtual machine default profile location:/etc/libvi
Xen virtualization uses "semi-virtualization" (para-virtualization), all hardware is only scheduled through the Xen hypervisor, compared to VMware Server and workstations to virtual complete hardware device performance is much better! But has always been used when there is a problem: "Virtual network"! Today, I found the latest BATE package for the Virt-manager (RHEL5 GUI tool for managing virtual machines) on RHN. Ha ha.... The virtual network has become simpler from today!
1, download the fol
QEMU Guest AgentIt is a daemon program running inside the domain which are supposed to help management applications with executing function s which need assistance of the guest OS. For example, freezing and thawing filesystems, entering suspend. However, guest agent (GA) is not bullet proof, and hostile guest OS can send spurious replies.Setting QEMU GA upCurrently, QEMU exposes GA via Virtio serial port. There is some attempts to allow applications to use QEMU Monitor for communication with GA,
It's a good thing to create KVM on centos6.5, and there are some problems on the centos7.1, which are documented here, reference documentsHttps://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_ Administration_guide/chap-network_configuration.html#sect-network_configuration-network_address_translation_ Nat_with_libvirt# yum Install virt-install Libvirt-python virt-manager python-virtinst
Installation (Installation)Here, for example, Ubuntu Linux 10.04, install KVM.First, install the KVM-related basic kit:
Libvirt-bin: Provides LIBVIRTD to manage QEMU and KVM.
QEMU-KVM: The main virtual engine.
Ubuntu-vm-builder: A powerful virtual machine tool.
Bridge-utils: Used to build a bridge used by virtual machines.
Install with apt:sudo apt-get install qemu-kvm libvirt-bin
interface
#brctl ShowBridge name Bridge ID STP enabled interfacesBr0 8000.4437E64A62AD No eth0
Client Configuration
When the client is installed, be aware that the network will choose to use the Br0 bridging method.
Graphical approach:
Text mode:
Edit the virtual machine configuration file/etc/libvirt/qemu/v1.xml to add the following
Verify that the network interface is normal after the virtual machine is started:
# brctl Show Bridge name Bridg
Statement:
This blog is welcome to forward, but please keep the original author information! The content of my study, research and summary, if there is similar, it is honored.
Original address: http://blog.csdn.net/gtt116/article/details/9618403
This article describes how Nova in the OpenStack (Grizzly) version counts the available resources of a host for debug and operational OpenStack.
In OpenStack, there are two layers of management of virtual machines: OpenStack itself and hypervisor (
System Virtual Machine Management1. Installation#!/bin/bashVirt-install \--name \--ram 1000 \--FILE/VAR/LIB/LIBVIRT/IMAGE/$1.IMG \--file-size 8 \--cdrom/var/ftp/pub/iso/2. ManagementVirt-manager Opening the Graphics management toolVirt-viewer display virtual machine, vmname-virtual machine nameVirsh List List of running VMSVirsh List List of all VMSVirsh start Vmname Run the specified VMVirsh shutdown normal shutdown of the specified VMVirsh destroy F
cpu-checker enter sudo kvm-OK on the terminal to check CPU current status. If the CPU does not support hardware virtualization, return: INFO: Your CPU does NOT support KVM extensionsKVM acceleration can not be used.
When the CPU supports hardware Virtualization but is not enabled, the system returns: INFO: Your CPU supports KVM extensionsINFO: KVM (vmx) is disabled by your BIOSHINT: Enter your BIOS setup and enable Virtualization Technology (VT ), and then hard power off/power on your systemKV
EnvironmentVersion: RDO OpenStack Libertyqemu:2.3.0Libvirt:1.2.17-13IdeasRequires qemu-guest-agent support, install the Qemu-guest-agent package in the mirror, set the boot-up, and then mirror the settings metadata:Both of these options can be set:Glance image-update The resulting virtual machine libvirt XML file will then be the following information:1, Hot add CPU function: Libvirt interface support, by c
VMware to build a test environment, then you need to locate the virtualization engine in the virtual machine settings, in the CPU settings, and then tick virtualized Intel vt-x or amd-v .0x02 CENTOS7 Homestay Host configuration 1. Check the moduleIn addition to the previous hardware, KVM requires the support of the kernel module Kvm.ko and the module Kvm-intel.ko (Intel CPU) and Kvm-amd.ko (AMD CPUs) that provide the core virtualization infrastructure and the specific processor.Check to see if
The previous article solved the network problem before continuing:
Http://blog.csdn.net/sheismylife/article/details/8070072
See the wizard for this article: http://www.howtoforge.com/virtualization-with-kvm-on-ubuntu-12.04-lts
Enter the directory of the Virtual Machine file to be created:
CD/var/lib/libvirt/Images
Now I plan to create three virtual machines in the VM1, VM2, and vm3 directories. Let's take a look at how to create the first virtual ma
modify
Virsh edit vm1 modify the vm1 configuration file (the vm configuration file exists in xml format, such as vm1.xml)
Nat:
Bridge:
3.NewVirtual network
1) Add an image through the graphic interface
Virt-manager open the vm management interface and select Edit-> Connection Details. The Virtual network already exists in the virtual Networks Tab Of the localhost Connection Details window that appears. After
databases: Nova-compute operates databases through Nova-conducter, solving potential security problems, although it may cause efficiency problems. 19)
Quantum Security Group Proxy: when the network mode is quantum, requests from API security groups are forwarded to quantum. 20) 21)
File injection without mounting guest filesystem, it solves potential security problems. 22)
Default Security Group Rules: Default Security Group rules. The default security group has default rules. 23)
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.