Re: [libvirt] 802.1q vlan-tagging support for libvirt

2009-04-02 Thread Kaitlin Rupert
I don't know how libvirt would need to be extended to be able to properly 'manage' those 802.1q-enabled virtual switches. Another question would be how libvirt-CIM would support this. Once libvirt provides the network interface functionality, then the libvirt-CIM developers can map it into the

Re: [libvirt] 802.1q vlan-tagging support for libvirt

2009-04-02 Thread David Lutterkort
Hi Klaus, On Thu, 2009-04-02 at 15:50 -0300, Klaus Heinrich Kiwi wrote: > My understanding is that libvirt would use vconfig to create tagged > interfaces, while using a physical interface as trunk (e.g., eth0 is the > trunk, eth0.20 the interface with the '20' vlan tag). > > Then it would add th

[libvirt] ANNOUNCE: netcf, a platform-agnostic library for network configuration

2009-04-02 Thread David Lutterkort
I am pleased to announce the availability of netcf 0.0.1, the initial release of a library for managing network configuration in a platform agnostic manner. If I were into code names, this would be the "what have you been waiting for" release. Netcf does its work by directly modifying the 'native'

[libvirt] freecell gives out bytes instead of kilobytes

2009-04-02 Thread Gerrit Slomma
The virsh-command freecell hands out bytes but affixes those with kB. The error ist found in virsh.c on line 1663 and following. I have corrected this and altered the output to the method i chose for virt-manager - in the days of 96 GB per socket (Nehalem-EP) no one cares even about a fraction o

Re: [libvirt] How to prevent libvirt from adding iptables rules?

2009-04-02 Thread Mariano Absatz
(sorry, Daniel... I had only answered you instead of copying the list also) Daniel P. Berrange escribió el 01/04/09 09:41: > On Tue, Mar 31, 2009 at 04:08:24PM -0300, Mariano Absatz wrote: > >> At first I used the 'default' network (with a different rfc1918 >> network)... everything was kinda

Re: [libvirt] [PATCH] Openvz: how to use a nondefault config

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 06:36:15PM +0400, Evgeniy Sokolov wrote: > > Config /etc/vz/conf/ve-XXX.conf-sample define there are many parameters > like memory, CPU etc. This parameters are not properties of . > > Daniel, usage of pre-defined configs in really usefull. Can we create > additional ta

Re: [libvirt] SYSCONF_DIR

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 08:44:55PM +0300, Zvi Dubitzky wrote: > I can do TLS certificate authentication on a remote libvirt access > through 'virsh' ( virsh -c qemu+tls://hostnake/system) . > But when I try same auth from my C code linked with libvirt 0.6.1 I get > the message : " libvir:

Re: [libvirt] 802.1q vlan-tagging support for libvirt

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 03:50:32PM -0300, Klaus Heinrich Kiwi wrote: > Are there any plans to support configuring 802.1q VLAN tagging through > libvirt? > > My understanding is that libvirt would use vconfig to create tagged > interfaces, while using a physical interface as trunk (e.g., eth0 is th

Re: [libvirt] [PATCH] Refresh storage volume on dumpxml

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 02:00:22PM -0400, Cole Robinson wrote: > The storage driver refreshes a volume's capacity+allocation data when > the 'info' command is called. Seems that we should also update it when > dumpxml is called, which also returns size information. Yes, that's a good point. ACK

Re: [libvirt] specifying -serial telnet: in XML

2009-04-02 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 10:13:53PM -0700, Sukadev Bhattiprolu wrote: > > I run qemu (version 0.9.1 kvm-84) with -serial option as follows: > > - serial telnet::2445,server > > so I can telnet to 2445 and have a serial console. > > I tried specifying this to libvirt (version 0.6.0) using t

[libvirt] 802.1q vlan-tagging support for libvirt

2009-04-02 Thread Klaus Heinrich Kiwi
Are there any plans to support configuring 802.1q VLAN tagging through libvirt? My understanding is that libvirt would use vconfig to create tagged interfaces, while using a physical interface as trunk (e.g., eth0 is the trunk, eth0.20 the interface with the '20' vlan tag). Then it would add the

Re: [libvirt] [PATCH] Don't squash file format on volume refresh

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 02:01:02PM -0400, Cole Robinson wrote: > A while back, code was added to > storage_backend.c:virStorageBackendUpdateVolTargetInfoFD to try to > determine the volume format for iscsi volumes. Unfortunately this > function is also called for refreshing file volumes, which has

Re: [libvirt] [PATCH] Fix test driver 'restore' return value

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 02:00:07PM -0400, Cole Robinson wrote: > The return value for domain restore in the test driver isn't consistent > with the API, and as such virsh will report failure even if the restore > succeeds. The attached patch fixes this. ACK. Daniel > commit 5fd0612bae3e67bd1496c

Re: [libvirt] [PATCH] Fix sparse volume allocation reporting

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 02:39:58PM -0400, Cole Robinson wrote: > Daniel P. Berrange wrote: > > On Thu, Mar 26, 2009 at 05:55:00PM +0100, Daniel Veillard wrote: > >> So I agree with Dan, we need to drop st_blksize in any volume size > >> computation, and fallback to 512 if not defined, apparently

Re: [libvirt] [PATCH 2/3] First level of plumbing for virInterface*.

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 02:18:39PM -0400, la...@laine.org wrote: > From: Laine Stump > > --- > include/libvirt/libvirt.h| 18 ++ > include/libvirt/libvirt.h.in | 18 ++ > include/libvirt/virterror.h |4 + > src/datatypes.h | 25 ++ > src/driver.h | 7

Re: [libvirt] [PATCH] Fix sparse volume allocation reporting

2009-04-02 Thread Cole Robinson
Daniel P. Berrange wrote: > On Thu, Mar 26, 2009 at 05:55:00PM +0100, Daniel Veillard wrote: >> On Thu, Mar 26, 2009 at 01:19:12PM +, Daniel P. Berrange wrote: >>> On Tue, Mar 24, 2009 at 03:29:21PM -0400, Cole Robinson wrote: >> [...] >>> Having read the man page again, I'm inclined to say usi

Re: [libvirt] [PATCH 1/3] Public API for new virInterface* functions, which facilitate

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 02:18:38PM -0400, la...@laine.org wrote: > From: Laine Stump ACK, we've discussed this public API enough now :-) Will wait till we have a driver using it before re-reviewing it agian. Daniel > diff --git a/include/libvirt/libvirt.h b/include/libvirt/libvirt.h > index 779

Re: [libvirt] [PATCH 3/3] Setup configure.in to detect presence of libnetcf and change config.h

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 02:18:40PM -0400, la...@laine.org wrote: > > dnl > +dnl Is the netcf library available and desired? > +dnl > +AC_ARG_WITH([netcf], > +[ --with-netcfadd libnetcf support (on)],[],[with_netcf=yes]) > +if test "$with_netcf" = "yes" ; then > + AC_CHECK_LIB([netc

[libvirt] [PATCH 2/3] First level of plumbing for virInterface*.

2009-04-02 Thread laine
From: Laine Stump --- include/libvirt/libvirt.h| 18 ++ include/libvirt/libvirt.h.in | 18 ++ include/libvirt/virterror.h |4 + src/datatypes.h | 25 ++ src/driver.h | 73 + src/libvirt.c| 628

[libvirt] [PATCH 3/3] Setup configure.in to detect presence of libnetcf and change config.h

2009-04-02 Thread laine
From: Laine Stump --- configure.in| 22 ++ src/Makefile.am |2 +- 2 files changed, 23 insertions(+), 1 deletions(-) diff --git a/configure.in b/configure.in index 392f2b9..6fba66d 100644 --- a/configure.in +++ b/configure.in @@ -783,6 +783,27 @@ fi AM_CONDITIONAL(

[libvirt] checkpoint patches of netcf integration for review/guidance

2009-04-02 Thread laine
I've gone through the first two steps of danpb's "Guide to Adding New libvirt APIs", and thought this would be a good time to send a copy of my work to the list to make sure I'm going in the right direction. Now is (yet another) good time to tell me "You're doing it wrong!". Basically, I've defin

[libvirt] [PATCH 1/3] Public API for new virInterface* functions, which facilitate

2009-04-02 Thread laine
From: Laine Stump --- include/libvirt/libvirt.h| 77 ++ include/libvirt/libvirt.h.in | 77 ++ 2 files changed, 154 insertions(+), 0 deletions(-) diff --git a/include/libvirt/libvirt.h b/include/libvirt/libvi

[libvirt] [PATCH] Don't squash file format on volume refresh

2009-04-02 Thread Cole Robinson
A while back, code was added to storage_backend.c:virStorageBackendUpdateVolTargetInfoFD to try to determine the volume format for iscsi volumes. Unfortunately this function is also called for refreshing file volumes, which has the effect of setting the format as 'raw' whenever a volume is refreshe

[libvirt] [PATCH] Refresh storage volume on dumpxml

2009-04-02 Thread Cole Robinson
The storage driver refreshes a volume's capacity+allocation data when the 'info' command is called. Seems that we should also update it when dumpxml is called, which also returns size information. Thanks, Cole commit 26ec9d5cd9ae919ccdf3d122dcf3832f61f9476f Author: Cole Robinson Date: Wed Apr 1

[libvirt] [PATCH] Fix test driver 'restore' return value

2009-04-02 Thread Cole Robinson
The return value for domain restore in the test driver isn't consistent with the API, and as such virsh will report failure even if the restore succeeds. The attached patch fixes this. Thanks, Cole commit 5fd0612bae3e67bd1496cf175b742fea962d9977 Author: Cole Robinson Date: Thu Apr 2 13:49:40 20

[libvirt] SYSCONF_DIR

2009-04-02 Thread Zvi Dubitzky
I can do TLS certificate authentication on a remote libvirt access through 'virsh' ( virsh -c qemu+tls://hostnake/system) . But when I try same auth from my C code linked with libvirt 0.6.1 I get the message : " libvir: Remote error: cannot access CA certificate '/usr/local/etc/pki/CA

Re: [libvirt] [PATCH] Openvz: how to use a nondefault config

2009-04-02 Thread Evgeniy Sokolov
Hi Anton, I'm sorry for delay. I was on vacation. Hi all. When libvirt creates an OpenVZ machine, it does smth like # vzctl create $ctid --ostemplate `ostemplate` And we can't specify an --config `config` argument. In this case vzctl chooses a default config file (a value of CONFIG variabl

Re: [libvirt] [PATCH] Openvz: how to use a nondefault config

2009-04-02 Thread Anton Protopopov
2009/3/27 Daniel Veillard > On Fri, Mar 27, 2009 at 12:35:27PM +0300, Anton Protopopov wrote: > > 2009/3/27 Daniel Veillard > > > > > I would like to make a new release mid or end of next week, considering > > > the number of fixes accumulated in CVS compared to 0.6.1, I guess 0.6.2 > > > makes

Re: [libvirt] PATCH: update the XML domain RelaxNG schemas

2009-04-02 Thread Daniel Veillard
On Thu, Apr 02, 2009 at 11:19:33AM +0100, Daniel P. Berrange wrote: > On Thu, Apr 02, 2009 at 11:19:58AM +0200, Daniel Veillard wrote: > > pritesh raised the issue on IRC, so I checked the schemas against the > > current parsing routines and found a few missing items, I also sorted > > the device

Re: [libvirt] PATCH: first patch to update the architecture documentation

2009-04-02 Thread Daniel Veillard
On Thu, Apr 02, 2009 at 11:22:36AM +0100, Daniel P. Berrange wrote: > On Thu, Apr 02, 2009 at 11:49:09AM +0200, Daniel Veillard wrote: > > Relatively small update done in the train yesterday, currently this > > just updates the project description, makes a spearate page for goals > > and terminol

[libvirt] specifying -serial telnet: in XML

2009-04-02 Thread Sukadev Bhattiprolu
I run qemu (version 0.9.1 kvm-84) with -serial option as follows: - serial telnet::2445,server so I can telnet to 2445 and have a serial console. I tried specifying this to libvirt (version 0.6.0) using the following stanza: I checked /var/log/libvirt/qe

Re: [libvirt] Reworked the XML verification patch for svirt

2009-04-02 Thread Daniel P. Berrange
On Wed, Apr 01, 2009 at 02:39:36PM -0400, Daniel J Walsh wrote: > > Fixed Whitespace. > > Removed Makefile patch. > > Use STREQ in seclabeltest. > diff --git a/src/domain_conf.c b/src/domain_conf.c > index 3d73414..0efa50f 100644 > --- a/src/domain_conf.c > +++ b/src/domain_conf.c > @@ -1859,29

Re: [libvirt] PATCH: first patch to update the architecture documentation

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 11:49:09AM +0200, Daniel Veillard wrote: > Relatively small update done in the train yesterday, currently this > just updates the project description, makes a spearate page for goals > and terminology. > I intent to continue to revamp the architecture pages with an user

Re: [libvirt] PATCH: update the XML domain RelaxNG schemas

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 11:19:58AM +0200, Daniel Veillard wrote: > pritesh raised the issue on IRC, so I checked the schemas against the > current parsing routines and found a few missing items, I also sorted > the device lice to match the enum sequence in the C file. ACK. this means there's no

Re: [libvirt] How to prevent libvirt from adding iptables rules?

2009-04-02 Thread Daniel P. Berrange
On Thu, Apr 02, 2009 at 10:16:13AM +0200, Ludwig Nussel wrote: > Daniel P. Berrange wrote: > > On Tue, Mar 31, 2009 at 04:08:24PM -0300, Mariano Absatz wrote: > > > [...] > > > I modified my VMs to use isolated rather than default, but rules keep > > > being added to iptables when libvirt-bin is s

[libvirt] PATCH: first patch to update the architecture documentation

2009-04-02 Thread Daniel Veillard
Relatively small update done in the train yesterday, currently this just updates the project description, makes a spearate page for goals and terminology. I intent to continue to revamp the architecture pages with an user view of the architecture, presenting the library/daemon dichotomy, and th

[libvirt] PATCH: update the XML domain RelaxNG schemas

2009-04-02 Thread Daniel Veillard
pritesh raised the issue on IRC, so I checked the schemas against the current parsing routines and found a few missing items, I also sorted the device lice to match the enum sequence in the C file. One thing missing and still TODO is the interface definition block, the C parser accepts the "ser

Re: [libvirt] PATCH: Fix 2 build bugs on mingw

2009-04-02 Thread Daniel Veillard
On Wed, Apr 01, 2009 at 04:56:46PM +0100, Daniel P. Berrange wrote: > The Mingw platform lacks readlink(), so we stub out this method on that > platform. > > The plain write() implementation of safezero() was not actually doing > anything with the 'offset' arg. This makes it seek to the offset >

Re: [libvirt] How to prevent libvirt from adding iptables rules?

2009-04-02 Thread Ludwig Nussel
Daniel P. Berrange wrote: > On Tue, Mar 31, 2009 at 04:08:24PM -0300, Mariano Absatz wrote: > > [...] > > I modified my VMs to use isolated rather than default, but rules keep > > being added to iptables when libvirt-bin is started. > > > > Is there a way to convince libvirt not to add these rule