From: Daniel Veillard Large parts of the API are only accessible as root, however the read
- only access to the xenstore data doesnot have to be forbidden to user, at
- least for monitoring purposes. If "virsh info" fails to run as an user,
- change the mode of the xenstore read-only socket with: Large parts of the API may only be accessible with root priviledges,
+ however the read only access to the xenstore data doesnot have to be
+ forbidden to user, at least for monitoring purposes. If "virsh info"
+ fails to run as an user, change the mode of the xenstore read-only socket
+ with: and also make sure that the Xen Daemon is running correctly As most UNIX libraries libvir follows the "standard": In a Xen environment, programs using libvir have to execute in "Domain 0",
-which is the primary Linux OS loaded on the machine. That OS kernel provides
-most if not all of the actual drivers used by the set of domains. It also
-runs the Xen Store, a database of informations shared by the hypervisor, the
-kernels, the drivers and the xen daemon. Xend, the xen daemon, also runs in
-Domain0 and supervise the control and execution of the sets of domains. The
-hypervisor, drivers, kernels and daemons communicate though a shared system
-bus implemented in the hypervisor. The figure below tries to provide a view
-of this environment: The library can be initialized in 2 ways depending on the level of
+ When running in a Xen environment, programs using libvir have to execute
+in "Domain 0", which is the primary Linux OS loaded on the machine. That OS
+kernel provides most if not all of the actual drivers used by the set of
+domains. It also runs the Xen Store, a database of informations shared by the
+hypervisor, the kernels, the drivers and the xen daemon. Xend. The xen daemon
+supervise the control and execution of the sets of domains. The hypervisor,
+drivers, kernels and daemons communicate though a shared system bus
+implemented in the hypervisor. The figure below tries to provide a view of
+this environment: The library can be initialized in 2 ways depending on the level of
priviledge of the embedding program. If it runs with root access,
virConnectOpen() can be used, it will use three different ways to connect to
the Xen infrastructure: If it runs without root access virConnectOpenReadOnly() should be used,
-it will try to open the read-only socket
+ The library will usually interract with the Xen daemon for any operation
+changing the state of the system, but for performance and accuracy reasons
+may talk directly to the hypervisor when gathering state informations at
+least when possible (i.e. when the running program using libvir has root
+priviledge access). If it runs without root access virConnectOpenReadOnly() should be used to
+connect to initialize the library. It will try to open the read-only socket
We expect to use Red Hat
-Bugzilla to track bugs for libvir, though there isn't yet a libvir
-software module. Libvir is a C toolkit to interract with the virtualization capabilities of
recent versions of Linux (and other OSes), but ibvir won't try to provide all
-possible interfaces for interacting with the virtualization features of a set
-of Linux (or other OS) system. To avoid ambiguity about the terms used here here are the definitions for
+possible interfaces for interacting with the virtualization features. To avoid ambiguity about the terms used here here are the definitions for
soem of the specific terms used in libvir documentation: Now we can define the goal of libvir: to provide the lowest possible
+ Now we can define the goal of libvir: to provide the lowest possible
generic and stable layer to manage domains on a node. This implies the following: This implies the fol
So libvir should be a building block for higher level management tools or
for applications focusing on virtualization on a single node (the only
exception being domain migration between node capabilities which may need to
-be added at the libvir level) make rpmchmod 666 /var/run/xenstored/socket_roCompilation
libvir architecture

libvir architecture

/var/run/xenstored/socket_ro to connect to the Xen Store and
also try to use the RPC to the Xen daemon. In this case use of hypervisor
calls and write to the Xen Store will not be possible, restraining the amount
diff --git a/docs/bugs.html b/docs/bugs.html
index a366d14516..8a93d58348 100644
--- a/docs/bugs.html
+++ b/docs/bugs.html
@@ -6,5 +6,5 @@ archive. Please subscribe to this list before posting by visiting the main menu
related links
main menu
related links
Introduction

main menu
related links