In its current state virt-manager is not capable of fully managing OpenVZ linux containers - so it's mainly a alternative GUI tool for doing KVM VM management with OpenNode OS - and not supporting all features that OpenNode OS may have. However we try to make virt-manager user experience as smooth as we can by pre-configuring libvirt for OpenNode related policies as much as possible.
More info about virt-manager can be found here: http://virt-manager.org/
In order to easily run virt-manager GUI app we have included it to OpenNode OS. As OpenNode OS runs headless (without full desktop environment) the most simple way to run virt-manager is to enable X forwarding over ssh connection and host the application on your remote desktop. In order to do it you will need to setup X-server on your desktop PC.
You can follow these setup recipes for installing Xserver for your desktop:
- Linux desktops - nothing to do, native support
- MacOSX desktops - install XQuartz X11 server for MacOSX - also we suggest to use iTerm as nicer terminal app
- Windows desktops - install XMing X Server for Windows and setup Putty for ssh connections
Connecting from Linux and MacOSX
# execute on your desktop PC terminal console ssh -X firstname.lastname@example.org # on MacOSX desktop the X11 app will be automatically launched # after successful login to OpenNode host start virt-manager from it's ssh console virt-manager
Setup virt-manager for OpenNode usage
Setting QCow2 as default storage format
- Launch virt-manager
- Go to Edit->Preferences
- Choose "VM Details" tab
- Change "Default storage format" to QCow2
Enable virtio for disk IO
- For best possible disk IO perfomance you should use virtio disk bus type
- If installing Windows OS don't forget to provide Windows Virtio driver CD ISO image at install time - please see virt-install examples for CLI operation
- Windows Virtio driver CD ISO can be downloaded from here: http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
Fixing libvirt default storage pool path for virt-manager
In OpenNode OS older than build 6.0.11 libvirt default storage path still points to /var/lib/libvirt/images - but OpenNode OS default one is set to /storage/local/images (for KVM disk images). Following this recipe it can be easily fixed.
# Launch opennode TUI and go to KVM console (virsh) # Execute the following commands on virsh shell pool-destroy default pool-undefine default pool-define-as --name default --type dir --target /storage/local/images pool-autostart default pool-build default pool-start default pool-destroy local pool-undefine local pool-define-as --name local --type dir --target /storage/local/images pool-autostart local pool-build local pool-start local pool-define-as --name local-iso --type dir --target /storage/local/iso pool-autostart local-iso pool-build local-iso pool-start local-iso quit