[libvirt] qemud/.libs/libvirtd?

2008-08-20 Thread Jun Koi
Hi, I added some new code to libvirt.c, and recompile. However, when make install. qemud/.libs/libvirtd is installed but not qemud/libvirtd. Why? Looks like a bug? The problem is that qemud/libvirtd has my new code, but not qemud/.libs/libvirtd! So make install installs the old binary, which I

Re: [libvirt] PATCH: 2/5: Fix signal handler race condition

2008-08-20 Thread Daniel P. Berrange
On Tue, Aug 19, 2008 at 06:25:01PM +0200, Jim Meyering wrote: Daniel P. Berrange [EMAIL PROTECTED] wrote: This is the same patch from yesterday to fix the signal handler race condition. We block signals before doing a fork(), and then in the child reset all signal handlers before finally

Re: [libvirt] Re: qemud/.libs/libvirtd?

2008-08-20 Thread Daniel P. Berrange
On Wed, Aug 20, 2008 at 08:01:42PM +0900, Jun Koi wrote: On Wed, Aug 20, 2008 at 4:30 PM, Jun Koi [EMAIL PROTECTED] wrote: Hi, I added some new code to libvirt.c, and recompile. However, when make install. qemud/.libs/libvirtd is installed but not qemud/libvirtd. Why? Looks like a bug?

Re: [libvirt] Re: qemud/.libs/libvirtd?

2008-08-20 Thread Jun Koi
On Wed, Aug 20, 2008 at 8:05 PM, Daniel P. Berrange [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 08:01:42PM +0900, Jun Koi wrote: On Wed, Aug 20, 2008 at 4:30 PM, Jun Koi [EMAIL PROTECTED] wrote: Hi, I added some new code to libvirt.c, and recompile. However, when make install.

[libvirt] Using Xen config files

2008-08-20 Thread Matthew Donovan
I am trying to programmatically start Xen guest VMs (HVM) with libvirt (on Fedora Core 8) and I'm having some trouble with it. I've included my code below. Essentially, the domain seems to get created correctly but it doesn't seem to run. I don't receive any error messages from the libvirt

Re: [libvirt] [PATCH] static ip address

2008-08-20 Thread Daniel Veillard
On Fri, Aug 15, 2008 at 10:43:15AM +0100, Daniel P. Berrange wrote: On Tue, Aug 12, 2008 at 05:24:01PM -0400, Daniel Veillard wrote: New patch with just a pair of minor fixes which seems to work just fine for me. The syntax is nearly the old one, just use host instead of statichost:

Re: [libvirt] [PATCH] check for XHTML1 DTDs availability

2008-08-20 Thread Daniel Veillard
On Wed, Aug 13, 2008 at 03:50:10PM +0200, Chris Lalancette wrote: Daniel Veillard wrote: On Wed, Aug 13, 2008 at 08:10:36AM -0400, Daniel Veillard wrote: Well apparently the XSL output is post-processed by xmlling --valid --format which then introduce a dependancy on the XHTML1 DTDs .

Re: [libvirt] networking

2008-08-20 Thread James Bardin
Charles Duffy wrote: James Bardin wrote: I'm not sure where to set this up, but I have a bridged device br0 that I would like to have available in virt-manager/virsh. Right now, I can edit the VM's xml interface element manually to use br0. AFAIK, you're doing the right thing (as long

Re: [libvirt] networking

2008-08-20 Thread Richard W.M. Jones
On Tue, Aug 19, 2008 at 04:12:06PM -0500, Charles Duffy wrote: James Bardin wrote: I'm not sure where to set this up, but I have a bridged device br0 that I would like to have available in virt-manager/virsh. Right now, I can edit the VM's xml interface element manually to use br0. AFAIK,

Re: [libvirt] On shutdown Destroy/Delete

2008-08-20 Thread Richard W.M. Jones
On Tue, Aug 19, 2008 at 10:26:33PM +0200, Stefan de Konink wrote: I would really like to know how I can make a defined domain *gone* after shutdown :) (instead of it still be defined, after shutdown) virsh undefine? Rich. -- Richard Jones, Emerging Technologies, Red Hat

Re: [libvirt] On shutdown Destroy/Delete

2008-08-20 Thread Richard W.M. Jones
On Wed, Aug 20, 2008 at 02:31:52PM +0100, Richard W.M. Jones wrote: On Tue, Aug 19, 2008 at 10:26:33PM +0200, Stefan de Konink wrote: I would really like to know how I can make a defined domain *gone* after shutdown :) (instead of it still be defined, after shutdown) [...] Oh right, so am

Re: [libvirt] Re: qemud/.libs/libvirtd?

2008-08-20 Thread Richard W.M. Jones
On Wed, Aug 20, 2008 at 08:22:00PM +0900, Jun Koi wrote: Ah, that is so confused, the way to name files here. So if qemu/.libs/libvirtd is installed into /usr/sbin/libvirtd, where qemud/libvirtd is installed??? It isn't installed anywhere. (It seems only qemud/libvirtd works for me) This

Re: [libvirt] On shutdown Destroy/Delete

2008-08-20 Thread Daniel P. Berrange
On Wed, Aug 20, 2008 at 02:34:22PM +0100, Richard W.M. Jones wrote: On Wed, Aug 20, 2008 at 02:31:52PM +0100, Richard W.M. Jones wrote: On Tue, Aug 19, 2008 at 10:26:33PM +0200, Stefan de Konink wrote: I would really like to know how I can make a defined domain *gone* after shutdown :)

Re: [libvirt] networking

2008-08-20 Thread Cole Robinson
James Bardin wrote: Hello, I'm having trouble digging up some documentation on libvirt's network config. I'm not sure where to set this up, but I have a bridged device br0 that I would like to have available in virt-manager/virsh. Right now, I can edit the VM's xml interface element

Re: [libvirt] networking

2008-08-20 Thread James Bardin
Cole Robinson wrote: What virt-manager version are you using? Distro? libvirt: 0.4.0-2ubuntu8 virt-manager: 0.5.3-0ubuntu10 Distro: Ubuntu 8.04.1 server x86_64 Is there anything showing up in the shared device drop down (even if you can't select it?) The drop-down activates, but is

Re: [libvirt] networking

2008-08-20 Thread James Bardin
Cole Robinson wrote: Make sure hald (or some equivalently named service) is running. Bar that, you'll probably have to ask the ubuntu folks. It's running. I'll see if I can figure out where this went wrong. Does this apply to virsh as well? Thanks -jim -- Libvir-list mailing list

Re: [libvirt] networking

2008-08-20 Thread Cole Robinson
James Bardin wrote: Cole Robinson wrote: Make sure hald (or some equivalently named service) is running. Bar that, you'll probably have to ask the ubuntu folks. It's running. I'll see if I can figure out where this went wrong. Does this apply to virsh as well? Thanks -jim No

Re: [libvirt] Using Xen config files

2008-08-20 Thread Richard W.M. Jones
On Wed, Aug 20, 2008 at 11:35:17AM -0400, Matthew Donovan wrote: Thanks for the quick reply! I set the LIBVIRT_DEBUG flag to 1 and ran it again. (The output is below.) [...] [EMAIL PROTECTED] ~]$ gcc -g virt_test.c -lvirt ./a.out DEBUG: libvirt.c: virInitialize (register drivers) DEBUG:

RE: [libvirt] Using Xen config files

2008-08-20 Thread Matthew Donovan
Found it! I added serial and console devices to the XML and it appears to be running. It's not working completely as expcted but it's doing more than it was. Thanks for your help. -matthew -Original Message- From: Richard W.M. Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, August

Re: AW: [libvirt] libvirt-java: change org.libvirt.Error implementingSerializable

2008-08-20 Thread Daniel Veillard
On Wed, Aug 20, 2008 at 04:22:49PM +0200, Daniel Schwager wrote: Here we are: Okay, that didn't applied correctly due to mail reformating of the patch but i applied those manually and commited, thanks ! Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel

Re: [libvirt] PATCH: 5/5: Make all code use virExec

2008-08-20 Thread Jim Meyering
Daniel P. Berrange [EMAIL PROTECTED] wrote: This final patch switches over all places which do fork()/exec() to use the new enhanced virExec() code. A fair amount of code is deleted, but that's not the whole story - the new impl is more robust that most of the existing code we're deleting

[libvirt] [PATCH] Don't list capabilities entries if emulators can't be accessed

2008-08-20 Thread Cole Robinson
The patch below fixes capabilities xml generation for the qemu driver if the emulators aren't found in the hardcoded paths. Current behavior will add a guest entry for the emulator even if it does not exist, patch fixes this to check that we actually have access. This brings up another issue,

Re: [libvirt] Using Xen config files

2008-08-20 Thread Daniel P. Berrange
On Wed, Aug 20, 2008 at 04:44:04PM +0100, Richard W.M. Jones wrote: On Wed, Aug 20, 2008 at 11:35:17AM -0400, Matthew Donovan wrote: It certainly looks OK, and it seems like the domain should run after virDomainCreate. Have you tried adding a delay of 30 seconds just to check if the domain

Re: [libvirt] Libvirt Xen daemon interaction in Red Hat Enterprise with virtualization

2008-08-20 Thread Daniel P. Berrange
On Wed, Aug 20, 2008 at 10:15:49AM -0700, vaibhav chugh wrote: Hi, I am new to libvirt and I am trying to figure out that how libvert connects to Xend in Red Hat Enterprise with virtualization. I read a few posts but was not able to find this out. The eariler versions of Xen were using

Re: [libvirt] [PATCH] Implement vol delete for disk pools

2008-08-20 Thread Daniel P. Berrange
On Tue, Aug 12, 2008 at 11:58:07PM -0400, Cole Robinson wrote: Daniel P. Berrange wrote: This isn't correct because the target path is not guarenteed to point to the master device name /dev/sda1. The user could have configured it to use a stable path such as

Re: [libvirt] Re: virsh/virt-install for dummies

2008-08-20 Thread Jun Koi
On Thu, Aug 21, 2008 at 1:57 AM, Cole Robinson [EMAIL PROTECTED] wrote: Jun Koi wrote: On Wed, Aug 20, 2008 at 1:23 AM, Cole Robinson [EMAIL PROTECTED] wrote: Jun Koi wrote: Hmm, yeah we should check that and throw a more clear error message. However, the root cause is that your capabilities

Re: [libvirt] Re: qemud/.libs/libvirtd?

2008-08-20 Thread Jun Koi
On Wed, Aug 20, 2008 at 10:39 PM, Richard W.M. Jones [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 08:22:00PM +0900, Jun Koi wrote: Ah, that is so confused, the way to name files here. So if qemu/.libs/libvirtd is installed into /usr/sbin/libvirtd, where qemud/libvirtd is installed??? It

[libvirt] pthread_sigmask undefined reference error

2008-08-20 Thread Jun Koi
Hi, The latest cvs version has an error when compiling: make[3]: Entering directory `/home/jun/projects/libvirt-0821/src' /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align