User Tools

Site Tools


docs:libvirt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
docs:libvirt [2014-05-11 12:59] – created arekmdocs:libvirt [2014-05-15 09:36] (current) – [Changing guest configuration (config file)] arekm
Line 1: Line 1:
 +====== libvirt ======
  
-Sparse image:+[[wp>libvirt]] is an open source API, daemon and management tool for managing platform virtualization. It can be used to manage KVM, Xen, VMware ESX, QEMU and other virtualization technologies. These APIs are widely used in the orchestration layer of hypervisors in the development of a cloud-based solution.
  
 +
 +==== Sparse image ====
 +
 +<file>
 qemu-img create -f qcow2 /var/lib/libvirt/images/test.qcow2 64G qemu-img create -f qcow2 /var/lib/libvirt/images/test.qcow2 64G
 +</file>
 +
 +==== Resize image ====
 +
 +<file>
 +qemu-img resize /var/lib/libvirt/images/test.qcow2 +10G
 +</file>
 +
 +and then resize partition table and filesystem.
 +
 +==== Installation ====
 +
 +<file>
 +virt-install -r 4096 --accelerate -n test \
 +-f /var/lib/libvirt/images/test.qcow2 \
 +--cdrom /CentOS-6.5-x86_64-bin-DVD1.iso \
 +--network=type=direct,source=eth0 \
 +--graphics vnc,listen=0.0.0.0,password=somepass \
 +--noautoconsole
 +</file>
 +
 +(connect using vnc client to server IP to finish installation)
 +
 +==== Deleting guest ====
 +
 +<file>
 +virsh
 +destroy test
 +undefine test
 +</file>
 +
 +==== Autostart ====
 +
 +<file>
 +virsh autostart test
 +</file>
 +
 +==== Changing guest configuration (config file) ====
  
-Installation:+<file> 
 +virsh edit test 
 +</file>
  
-virt-install -r 4096 --accelerate -n testowy -f /var/lib/libvirt/images/test.qcow2 --cdrom /CentOS-6.5-x86_64-bin-DVD1.iso --network=type=direct,source=eth0 --graphics vnc,listen=0.0.0.0 --noautoconsole 
docs/libvirt.1399805968.txt.gz · Last modified: 2014-05-11 12:59 by arekm

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS PLD Linux Driven by DokuWiki