User Tools

Site Tools


docs:libvirt

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
docs:libvirt [2014-05-12 10:00]
glen add page heading
docs:libvirt [2014-05-15 09:35]
arekm
Line 9: Line 9:
 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>​ </​file>​
 +
 +==== Resize image ====
 +
 +<​file>​
 +qemu-img resize /​var/​lib/​libvirt/​images/​test.qcow2 +10G
 +</​file>​
 +
 +and then resize partition table and filesystem.
  
 ==== Installation ==== ==== Installation ====
  
 <​file>​ <​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+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>​ </​file>​
  
 (connect using vnc client to server IP to finish installation) (connect using vnc client to server IP to finish installation)
 +
 ==== Deleting guest ==== ==== Deleting guest ====
  
 <​file>​ <​file>​
 virsh virsh
-destroy ​testowy +destroy ​test 
-undefine ​testowy+undefine ​test
 </​file>​ </​file>​
  
 ==== Autostart ==== ==== Autostart ====
 +
 +<​file>​
 +virsh autostart test
 +</​file>​
 +
 +==== Changing guest configuration (config file) ====
 +
 <​file>​ <​file>​
-virsh autostart testowy+virsh edit guest
 </​file>​ </​file>​
  
docs/libvirt.txt · Last modified: 2014-05-15 09:36 by arekm