The attached patch implements the library driver for QEMU.
The driver is pretty much identical in style to the xen proxy driver. There
are two supported URLs:
qemu:///session - a per-user (private) daemon.Can be run by unprivileged
users. Config files kept in $HOME/.qemu and the socket
is in the abstract namespace at $HOME/.qemu/sock
The daemon for session instance is spawned on demand
qemu:///system - a per-machine (public) daemon. Must be launched ahead
of time by root. Config files kept in /etc/qemu and
socket on the FS at /var/run/qemu/sock & sock-ro
The read-write socket is restricted to root only, while
the read-only socket is public.
This patch also:
- makes virsh use a read-write connection by default
- adds extra error info to virterror & friends
Regards,
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules:
http://search.cpan.org/~danberr/ -=|
|=- Projects:
http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|