I have installed KVM on opensuse 12.1 and rebooted, I am using KDE. I am referring to this guide Chapter
When attempting to start the Virtual Machine Manager I receive an error “no module named gconf”. But zypper confirms I am.
sayth@linux-zixw:~> sudo zypper se gconf
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
| gconf-editor | An Editor for the GConf Database System | package
| gconf-editor-lang | Languages for package gconf-editor | package
i | gconf-polkit | GNOME Configuration Database System - Polic-> | package
| gconf-sanity-check | GNOME Configuration Database System - Sanit-> | package
| gconf-sharp-peditors2 | Mono bindings for gconf property editors | package
| gconf-sharp2 | Mono bindings for gconf | package
i | gconf2 | GNOME Configuration Database System | package
| gconf2-32bit | GNOME Configuration Database System | package
| gconf2-branding-basedonopensuse | Provides gconf2 branding | package
i | gconf2-branding-openSUSE | openSUSE defaults for the GNOME configurati-> | package
| gconf2-devel | Include files and libraries mandatory for d-> | package
| gconf2-lang | Languages for package gconf2 | package
| gconfmm-devel | C++ Interface for GConf | package
| libcompizconfig-backend-gconf | CompizConfig backend for gconf | package
| libgconfmm-2_6-1 | C++ Interface for GConf | package
| perl-ExtUtils-PkgConfig | Simplistic interface to pkg-config | package
| perl-ExtUtils-PkgConfig | Simplistic interface to pkg-config | srcpackage
| perl-Gnome2-GConf | Perl wrappers for the GConf configuration e-> | package
| perl-Gnome2-GConf | Perl wrappers for the GConf configuration e-> | srcpackage
| pulseaudio-module-gconf | GCONF module for PulseAudio | package
| python-gconf | Python bindings for GConf | package
So then I attempt to install a guest using vm-install but I receive this error.
sayth@linux-zixw:~> sudo vm-install
WARNING: no socket to connect to
libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
libvir: RPC error : Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
Error: Failed to connect socket to '/var/run/libvirt/libvirt-sock-ro': No such file or directory
I am rather a noobie at playing with VM’s and would appreciate any help to get me going.
KVM is supported, might be a little bit complicated but … one can learn everything. Forget about Xen! Far too complicated and requires an extra kernel. VirtualBox is easy. It depends what you’re looking for. If you want to play with desktop guests, use VirtualBox.
The easiest way to install VirtualBox is to let vboxlive do it for you. vboxlive is included in the same package as vm-create (mentioned in my previous post). You just need to install vmscripts from my repo:
sudo zypper ar [noparse]http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_12.1[/noparse] PTA
sudo zypper --gpg-auto-import-keys refresh -r PTA
sudo zypper in vmscripts.
Once this package is installed, to run Ubuntu 12.04 LTS final beta Live - for example - in a virtual machine under VirtualBox, simply run this command*:
vboxlive -t -o ubuntu -b -D
It doesn’t have to be Ubuntu. vboxlive will notice that VirtualBox is not installed and install and configure it for you. Be patitent! It will take a while if it has to install the kernel sources. vboxlive would update the kernel if needed. But I recommend to do it yourself and reboot before using this script.
vboxlive creates “diskless” virtual machines to run Linux live CD images, but it can also add a virtual hard disk, or you can use the VirtualBox GUI later to set up virtual machines and install guests on virtual hard disks.
It might sound complicated, but it is in fact the easiest way to install Oracle VirtualBox (including the latest Extension Pack). You can also install VirtualBox without creating a virtual machine if that’s all you want. All you have to type is:
Then you can start to use VirtualBox right away.
I just tested this command on openSUSE 12.2 M3 - where neither kernel source nor VitualBox were installed. The script performed the following tasks:
installed kernel source and compiler
installed the Oracle repo
compiled VirtualBox kernel modules
installed latest Extension Pack (more precisely the one matching the installed VBox version)
created vboxusers group
added the current user (you) to this group
downloaded Ubuntu beta’s live CD iso image (but could have been any of the distros listed by vboxlive -g).
created a diskless virtual machine and booted the Ubuntu guest.
Thanks for all the advice. Might start with virtualbox/vboxlive. I installed KVm from Yast it looks like it didn’t configure the services because when I attempted to run the commands you gave I got this.
sayth@linux-zixw:~> sudo service rpcbind status
sudo: service: command not found
sayth@linux-zixw:~> sudo service libvirtd status
sudo: service: command not found
On 04/20/2012 06:26 AM, flebber wrote:
> Thanks for all the advice. Might start with virtualbox/vboxlive. I
> installed KVm from Yast it looks like it didn’t configure the services
> because when I attempted to run the commands you gave I got this.
KVM is certainly supported. After all, openQA runs everything on KVM virtual
machines. As was said earlier, if you want desktop VMs, I suggest VirtualBox. I
have been using it with much success since early 2008. My first usage was forced
when I was on an extended trip and the wifi interface on my laptop’s motherboard
failed. The USB dongle I replaced did not have a Linux driver so I installed
Linux as a guest with windows XP as the host. That way I could continue to use
Thunderbird as my mail client. Now, the tables are reversed, and XP only exists
as a guest on my openSUSE host so that I can run Turbotax, and build and test
the windows version of a multi-platform program that I have developed.