[libvirt-users] non-root user "virConnectOpen() faile" in libvirt-0.3

2010-06-30 Thread Shenglan Wang
*Hello,* * * *My environment is "Xen3.1 in Fedora8" with "libvirt0.3 & python2.5". When I ran the following * *commands as a non-root user "nimbus":* $python >>> import libvirt >>> libvirt.open("xen:///") - Console - [nim...@localhost-120 ~]$ python Python 2.5.1 (r251:54863, Oct 3

Re: [libvirt-users] C API example

2010-06-30 Thread steven765
I think so, but I'm locked out at home. I'll have to try at school tomorrow. It gave me a remote error, but with the correct directory so fingers crossed thanks! btw might you or anyone know what I have to include to start a clean project of my own? So if I want to just build an application

Re: [libvirt-users] C API example

2010-06-30 Thread Justin Clift
On 07/01/2010 11:54 AM, Dave Allan wrote: ./hellolibvirt \ qemu+unix:///system?socket=/var/run/libvirt/libvirt-sock Thanks Dave. The +unix:// and ?socket=xxx bits are what I'd not been picking up on. Should be good now. Steven, is it working for you? Regards and best wishes, Justin Clif

Re: [libvirt-users] C API example

2010-06-30 Thread Dave Allan
On Thu, Jul 01, 2010 at 11:34:12AM +1000, Justin Clift wrote: > On 07/01/2010 11:12 AM, steven...@yahoo.com wrote: > >Trying to build the hellolibvirt example. I get the project to > >compile okay but when I try to run it I get: > > > >Unable to connect to '/usr/local/var/run/libvirt/libivrt-sock

Re: [libvirt-users] C API example

2010-06-30 Thread Justin Clift
On 07/01/2010 11:12 AM, steven...@yahoo.com wrote: Trying to build the hellolibvirt example. I get the project to compile okay but when I try to run it I get: Unable to connect to '/usr/local/var/run/libvirt/libivrt-sock Given libvirt --status says it's in /var/run/libvirt/libvirt-sock that ma

[libvirt-users] C API example

2010-06-30 Thread steven765
Trying to build the hellolibvirt example. I get the project to compile okay but when I try to run it I get: Unable to connect to '/usr/local/var/run/libvirt/libivrt-sock Given libvirt --status says it's in /var/run/libvirt/libvirt-sock that makes sense. How do I make the git version run with

Re: [libvirt-users] SASL GSSAPI error "Key table entry not found"

2010-06-30 Thread Adam Gray
On Wed, Jun 30, 2010 at 10:13, Daniel P. Berrange wrote: > > If changing the location in /etc/sasl2/libvirt.conf doesn't > work then you likely have a broken kerberos/sasl library. > This works in latest versions, but for broken systems you > can workaround it by setting KRB5_KTNAME=/etc/libvirt/k

Re: [libvirt-users] SASL GSSAPI error "Key table entry not found"

2010-06-30 Thread Adam Gray
On Wed, Jun 30, 2010 at 10:01, Maximilian Wilhelm wrote: > > Do you have a host/ principal, too? > How baout the access right? Can libvrtd read this file? > Does it? (strace -f -ff -eopen libvirtd --listen) I added the host/ principal and still no dice :( [pid 2184] open("/etc/libvirt/krb5.keyt

Re: [libvirt-users] how to match the ID of a LUN in a storage pool with the GUID on the target server

2010-06-30 Thread Tom Georgoulias
On 06/30/2010 02:47 PM, Daniel P. Berrange wrote: I discovered you can get the info from UDEV, eg if libvirt reports a volume '/dev/sde' you can query against the block device path # scsi_id --export --whitelisted /dev/sde ID_VENDOR=QNAP ID_VENDOR_ENC=QNAP ID_MODEL=iSCSI_Storage ID_MODEL_ENC=iS

[libvirt-users] Are memoryPeek and blockPeek still not supported?

2010-06-30 Thread steven765
Hi, I just tried x=dom.blockPeek('disk',5,0,buf,0) and it returns AtrributeError: 'module' object has no attribute 'virDomainBlockPeek' I found this bug submission from early 09: https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=492683 Is that still correct are they not implemente

Re: [libvirt-users] how to match the ID of a LUN in a storage pool with the GUID on the target server

2010-06-30 Thread Daniel P. Berrange
On Wed, Jun 16, 2010 at 06:41:30PM +0100, Daniel P. Berrange wrote: > On Wed, Jun 16, 2010 at 01:20:02PM -0400, Tom Georgoulias wrote: > > I've configured a libvirt storage pool using an iscsi target from a Sun > > 7310 storage appliance and am using the LUNs in this target as volumes > > for my

Re: [libvirt-users] Better error codes when stopping a VM that is already stopped

2010-06-30 Thread Guido Winkelmann
Am Freitag, 21. Mai 2010 schrieb Cole Robinson: > On 05/21/2010 08:11 AM, Guido Winkelmann wrote: > > Hi, > > > > Sometimes when stopping a virtual domain using virDomainDestroy(), I come > > across a domain that is already stopped. (For example when someone > > already stopped the domain manually

Re: [libvirt-users] SASL GSSAPI error "Key table entry not found"

2010-06-30 Thread Daniel P. Berrange
On Mon, Jun 28, 2010 at 09:40:49AM -0700, Adam Gray wrote: > My server and client are running Ubuntu Lucid, libvirt-bin > 0.7.5-5ubuntu27, qemu-kvm-0.12.3+noroms-0ubuntu9 and I'm using > virt-viewer-0.0.3-6ubuntu7.xul19 or virt-manager-0.8.2-2ubuntu8 to > connect. I configured SASL2 to use GSSAPI f

Re: [libvirt-users] SASL GSSAPI error "Key table entry not found"

2010-06-30 Thread Maximilian Wilhelm
Anno domini 2010 Adam Gray scripsit: Hi! > Thanks Ralf, sadly things look OK to me. Did I typo something?? haha > forward and reverse DNS are correct for this host (petey), too. As far > as I can tell Kerberos stuff is set up as usual. > r...@petey:~# klist -k /etc/krb5.keytab > Keytab name: WRF

Re: [libvirt-users] SASL GSSAPI error "Key table entry not found"

2010-06-30 Thread Adam Gray
Thanks Ralf, sadly things look OK to me. Did I typo something?? haha forward and reverse DNS are correct for this host (petey), too. As far as I can tell Kerberos stuff is set up as usual. r...@petey:~# klist -k /etc/krb5.keytab Keytab name: WRFILE:/etc/krb5.keytab KVNO Principal

[libvirt-users] FYI: a short guide to libvirt & network filtering iptables/ebtables use

2010-06-30 Thread Daniel P. Berrange
I just wrote this to assist some Red Hat folks understanding what libvirt does with iptables, and thought it is useful info for the whole libvirt community. When I have time I'll adjust this content so that it can fit into the website in relevant pages/places. Firewall / network filterin

Re: [libvirt-users] SASL GSSAPI error "Key table entry not found"

2010-06-30 Thread Ralf Hornik Mailings
Adam Gray schreibte: libvirt/my.fully.qualified.dom...@my-realm.com (has a dash fwiw) and pointed SASL2 and libvirt at /etc/krb5.keytab What tells your KDC? Have a look at klist -t /etc/krb5.keytab and look whether the principals match (e.g LIBVIRT/domain is not equal libvirt/domain Ra

Re: [libvirt-users] Some missunderstanding in the wiki page

2010-06-30 Thread Tom Hughes
On 30/06/10 10:35, Leopold Palomo-Avellaneda wrote: The configuration (I have follow only the debian/ubuntu steps) shows that br0 has assigned an IP. I did the mistake to try to assign the same IP in the guest network configuration, I understand that, and obviously it doesn't work (duplicate IPs

[libvirt-users] Some missunderstanding in the wiki page

2010-06-30 Thread Leopold Palomo-Avellaneda
Hi, I'm not in the list and I just would like to comment it to the comunity. So, if someone want to contact me, make CC to me in the reply. The wiki page [1] talk about networking, and show two typical configurations: "virtual network" and "shared physical device". The shared physical device h

[libvirt-users] SASL GSSAPI error "Key table entry not found"

2010-06-30 Thread Adam Gray
My server and client are running Ubuntu Lucid, libvirt-bin 0.7.5-5ubuntu27, qemu-kvm-0.12.3+noroms-0ubuntu9 and I'm using virt-viewer-0.0.3-6ubuntu7.xul19 or virt-manager-0.8.2-2ubuntu8 to connect. I configured SASL2 to use GSSAPI for libvirt following the instructions in the libvirt docs, created