KVM notes
For host machine- Centos 6.3 64:
KVM installation.
http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.0-server
http://vitobotta.com/setting-up-kvm-lvm-virtual-machine-host/
Using Spice with LibVirt KVM
http://wiki.centos.org/HowTos/Spice-libvirt
Viewing remote KVM Guest with usb redirection (linux mint maya 64):
Option 1:
https://launchpad.net/~bderzhavets/+archive/lib-usbredir73
Option 2:
Compile spice:
wget http://downloads.us.xiph.org/releases/celt/celt-0.5.1.3.tar.gz
wget http://spice-space.org/download/libcacard/libcacard-0.1.2.tar.bz2 ./configure --prefix=/usr
http://spice-space.org/download/gtk/spice-gtk-0.16.tar.bz2 ./configure --enable-usbredir=yes --with-python=yes
http://spice-space.org/download/releases/spice-protocol-0.12.2.tar.gz
install virt-viewer 5.4-3.
deb http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main universe
libacl1.2.2.51-8
libattr1-1:2.4.46-8ubuntu2
libspice-client-glib-2.0-8
libspice-client-gtk-3.0-4
Viewing remote KVM Guest with usb redirection using Ubuntu 13.04(live CD):
enable universe sources
sudo apt-get update
sudo apt-get install libapparmor1_2.8 libgtk-vnc-2.0 libgvnc-1.0 libspice-client-glib-2.0 libspice-client-gtk-3.0 libusbredirhost1 libusbredirparser0 libvirt0
now ubuntu 13.04 does have virt-viewer-0.5.4-1 at universe, but this version could not connect to spice type graphics.
it seems that the binary remote-viewer is not linked libspice-client-glib-2.0. That is why I’ll be using this version virt-viewer_0.5.4-3~raring0_i386.deb from https://launchpad.net/~dnjl/+archive/virtualization.
wget https://launchpad.net/~dnjl/+archive/build/+build/4077606/+files/virt-viewer_0.5.4-3~raring0_i386.deb
sudo dpkg -i virt-viewer_0.5.4-3~raring0_i386.deb
Note:
-
both option has USB redirection.
-
as of 02/04/13 linux mint virt-viewer from standard repo does not have usb-redirection suppport.
-
virt-manager from http://virt-manager.et.redhat.com/download/sources/virt-viewer/virt-viewer-0.5.4.tar.gz has problem with glibc that why I looked for an updated version
Install kvm guest(LVM) via KVM
mkdir /var/www/html/centos
mount -t iso9660 -o loop CentOS-6.3-x86_64-bin-DVD1.iso /var/www/html/centos
virt-install \
--name=loyalty1 \
--cpuset=2 --ram=1024 --network bridge=br0 \
--disk=/dev/volgrp\_kvm\_guest1/swap \
--disk=/dev/volgrp\_kvm\_guest1/root \
--disk=/dev/volgrp\_kvm\_guest1/usr \
--disk=/dev/volgrp\_kvm\_guest1/opt \
--disk=/dev/volgrp\_kvm\_guest1/var \
--vnc --noautoconsole \
--location http://myserver/centos
Install KVM guest(image) via ISO
virt-install \
--name=pfsense2 \
--cpuset=2 \
--ram=1024 \
--network bridge=br0 \
--network bridge=br1 \
--disk path=/var/lib/libvirt/images/pfsense.img \
--vnc --noautoconsole --livecd \
--cdrom /var/lib/libvirt/images/pfsense.iso
No comment
Say something
Thank you
Your post has been submitted and will be published once it has been approved.
OK
OOPS!
Your post has not been submitted. Please return to the page and try again. Thank You!
If this error persists, please open an issue by clicking here.
OK