D-Bus library appears to be incorrectly set up

I tried to launch virt-manager today on a new Centos installation and got the following error message:

hostmaster ~ # virt-manager
process 9741: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
D-Bus not built with -rdynamic so unable to print a backtrace

[adrotate banner="2"]

The solution was to generate a new D-bus uuid:

dbus-uuidgen > /var/lib/dbus/machine-id

Hope you will find it helpful.

Unable to connect to xend with Virt Manager

When you install xen with the default settings and try to connect to the Xen hypervisor with virt-manager You might get the following error message :

Unable to open a connection to the Xen hypervisor/daemon. Verify that
- a xen host kernel was booted
- the xen service has been started

The default Xen configuration file /etc/xen/xend-config.sxp has a parameter called – xend-unix-server.

On debian squeeze the default value for this parameter is “no” which means that communication and management toos
Such as “Virt Manager” can not access the Hypervisor.

1. You need to uncomment it and change the value to “yes” –
(xend-unix-server yes)

2. Restart xend to apply the new configuration:
xend restart

Xen Virtualization Support And How To's