= Syrlug Virtualization Demo: == Packages Needed xen, qemu-system-x86 (qemu/kvm), other hypervisor w/ kernel modules libvirt (provides virsh command line utility) virt-manager (gtk based utility) == Files / Dirs of interest /etc/libvirt - all libvirt vm, network, and other configuration /var/lib/libvirt - all libvirt data files, disk images, etc == The libvirt remote daemon Check to see if libvirtd is running: ps aux | grep libvirtd If not start it via services interface sudo service libvirtd start sudo service libvirtd-qpid start sudo chkconfig --levels 35 --add libvirtd Only needed it you require remote virtualization management. == To create a guest Linux vm using virsh sudo virsh help [command] # can configure libvirt, selinux to permit user vm management sudo virsh list sudo virsh net-list ifconfig -a # vnet0, virbr0 brctl show iptables -nvL -t nat sudo vim /etc/libvirt/qemu/syrlug.xml # copy presentation libvirt xml config into it uuidgen Set path to any bootable CD ISO image sudo qemu-img create -f qcow2 /var/lib/libvirt/images/demo.img 10G sudo virsh define /etc/libvirt/qemu/syrlug.xml sudo virsh start syrlug vncviewer localhost ps aux | grep syrlug sudo virsh list If installing an OS, go through install process, shutdown, then change boot dev to 'hd' Can also use virt-install, virt-manager == To create a guest Linux vm using virt-manager Gnome Menu > System Tools > Virtual Machine Manager Start syrlug vm we just defined, view statistics / hardware profile Can connect to more hypervisors, create more networks, hard drive devices Create new syrlug2, BSD image (nice thing is after first restart, it'll change the boot device automatically)