https://help.ubuntu.com/community/KVM/Managing
http://wiki.debian.org/es/KVM
http://www.howtoforge.com/virtualization-with-kvm-on-a-debian-squeeze-server
http://elhombrequereventodeinformacion.wordpress.com/2011/04/05/instalar-kvm-en-debian-6-squeeze/
http://www.adictosaltrabajo.com/tutoriales/tutoriales.php?pagina=debianKvm
http://josecely.tecsua.com/?p=40
http://proyectosbeta.blogspot.com/2011/06/como-instalar-y-usar-kvm-en-ubuntu-1004.html
To create a Debian Squeeze guest (in bridging mode) with the name vm10, 512MB of RAM, two virtual CPUs, and the disk image /var/lib/libvirt/images/vm10.img (with a size of 12GB), insert the Debian Squeeze Netinstall CD into the CD drive and run
virt-install --connect qemu:///system -n vm10 -r 512 --vcpus=2 --disk path=/var/lib/libvirt/images/vm10.img,size=12 -c /dev/cdrom --vnc --noautoconsole --os-type linux --os-variant debiansqueeze --accelerate --network=bridge:br0 --hvm
O con un .iso
virt-install --connect qemu:///system -n vm10 -r 512 --vcpus=2 --disk path=/var/lib/libvirt/images/vm10.img,size=12 -c /var/lib/libvirt/images/debian-6.0.0-amd64-netinst.iso --vnc --noautoconsole --os-type linux --os-variant debiansqueeze --accelerate --network=bridge:br0 --hvm
virsh undefine vm1 ----para eliminar domain
Administración
Para iniciarvirsh --connect qemu:///system
start vm10
quit
Para apagar
virsh --connect qemu:///system
shutdown vm10
quit
Para listar las maquinas virtuales
virsh list
Shut Down A Guest
# virsh list
# virsh shutdown dominName
# virsh shutdown freebsd
# virsh shutdown 3
Rebooting A Guest
# virsh list
# virsh reboot domaiName
# virsh reboot 3
# virsh reboot win2008biz
Force a guest to stop with the virsh command if it is not responding or crashed
# virsh list
# virsh destroy domainName
# virsh destroy openbsd.nixcraft.in
Get Information About Guest
# virsh list
# virsh dominfo dominName
# virsh dominfo 2
# virsh dominfo freebsd
The following files are required to manage and debug KVM problems:
/etc/libvirt/ - Main configuration directory./etc/libvirt/qemu/ - Virtual machine configuration directory. All xml files regarding VMs are stored here. You can edit them manually or via virt-manager.
/etc/libvirt/qemu/networks/ - Networking for your KVM including default NAT. NAT is only recommended for small setup or desktops. I strongly suggest you use bridged based networking for performance.
/etc/libvirt/qemu/networks/default.xml - The default NAT configuration used by NAT device virbr0.
/var/log/libvirt/ - The default log file directory. All VM specific logs files are stored here.
/etc/libvirt/libvirtd.conf - Master libvirtd configuration file.
/etc/libvirt/qemu.conf - Master configuration file for the QEMU driver.
No hay comentarios:
Publicar un comentario