Re: [libvirt-users] Libvirt adds extra parameters in domain XML

2016-10-17 Thread Martin Kletzander

On Mon, Oct 17, 2016 at 02:29:10PM +0200, Marina Danial wrote:

I have a predetermined set of commands that I want to launch qemu with:

sudo `which qemu-system-x86_64` -m 4G $(IMAGE) -enable-kvm \
-nographic \
-net nic,model=virtio,netdev=net0,macaddr=$(MAC),vlan=0 \
-netdev tap,id=net0,ifname=tap01,vhost=on,script=no,downscript=no \
-net nic,model=virtio,netdev=net1,macaddr=$(MANAGE_MAC),vlan=1 \
-netdev tap,id=net1,ifname=tap02,vhost=on,script=no,downscript=no \

I dont need any extra configuration from libvirt. is this possible? Or can
anyone help with a possible xml configuration ?



Why do you need libvirt, then?  If you need something from libvirt,
we'll need to add some things.  But if you don't need libvirt, then you
can just run that command.  Maybe I'm missing something.




On Thu, Oct 13, 2016 at 1:13 PM, Martin Kletzander 
wrote:


On Thu, Oct 13, 2016 at 11:49:44AM +0200, Marina Danial wrote:


Hello,

In my C++ code, I generate my own domain XML file and I
use virDomainCreateXML or virDomainDefineXML to launch my qemu VM.
However,
when I get to check which commands are sent to the qemu commandline, I
find
that libvirt has added so many extra parameters to the ones I have already
set. How can I prevent libvirt from adding any extra parameters to the
ones
I originally defined in the domain XML?



What problems are you having with those?  What specific ones are
problematic for you?  Libvirt adds a lot of things so that the domain is
predictable, it can talk to it later on and so on.  Some of them are
adding the same things you would have there without -no-defconfig and
similar.  Just so we can guarantee some compatibility etc.

Help will be highly appreciated.



Thanks



___

libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users





signature.asc
Description: Digital signature
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] Libvirt adds extra parameters in domain XML

2016-10-17 Thread Marina Danial
I need write the domain XML in libvirt to eventually convert it into these
qemu commands.. I don't want to call qemu directly with these commands. So
I needed assistance with that

On Oct 17, 2016 9:34 PM, "Martin Kletzander"  wrote:

> On Mon, Oct 17, 2016 at 02:29:10PM +0200, Marina Danial wrote:
>
>> I have a predetermined set of commands that I want to launch qemu with:
>>
>> sudo `which qemu-system-x86_64` -m 4G $(IMAGE) -enable-kvm \
>> -nographic \
>> -net nic,model=virtio,netdev=net0,macaddr=$(MAC),vlan=0 \
>> -netdev tap,id=net0,ifname=tap01,vhost=on,script=no,downscript=no \
>> -net nic,model=virtio,netdev=net1,macaddr=$(MANAGE_MAC),vlan=1 \
>> -netdev tap,id=net1,ifname=tap02,vhost=on,script=no,downscript=no \
>>
>> I dont need any extra configuration from libvirt. is this possible? Or can
>> anyone help with a possible xml configuration ?
>>
>>
> Why do you need libvirt, then?  If you need something from libvirt,
> we'll need to add some things.  But if you don't need libvirt, then you
> can just run that command.  Maybe I'm missing something.
>
>
>>
>> On Thu, Oct 13, 2016 at 1:13 PM, Martin Kletzander 
>> wrote:
>>
>> On Thu, Oct 13, 2016 at 11:49:44AM +0200, Marina Danial wrote:
>>>
>>> Hello,

 In my C++ code, I generate my own domain XML file and I
 use virDomainCreateXML or virDomainDefineXML to launch my qemu VM.
 However,
 when I get to check which commands are sent to the qemu commandline, I
 find
 that libvirt has added so many extra parameters to the ones I have
 already
 set. How can I prevent libvirt from adding any extra parameters to the
 ones
 I originally defined in the domain XML?


 What problems are you having with those?  What specific ones are
>>> problematic for you?  Libvirt adds a lot of things so that the domain is
>>> predictable, it can talk to it later on and so on.  Some of them are
>>> adding the same things you would have there without -no-defconfig and
>>> similar.  Just so we can guarantee some compatibility etc.
>>>
>>> Help will be highly appreciated.
>>>


 Thanks


>>> ___
>>>
 libvirt-users mailing list
 libvirt-users@redhat.com
 https://www.redhat.com/mailman/listinfo/libvirt-users


>>>
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] Libvirt newer than 2.1.0 doesnt start up

2016-10-17 Thread Laine Stump

On 10/17/2016 10:32 AM, Rene Pasing wrote:

Hi all,

I have some problems with libvirt >2.1.0 (so 2.2.0 and 2.3.0): I have a
working environment using libvirt 2.1.0 with 1 domain (called "mail")
and one network (called "default6"), both are autostarted. I have no
problems with this environment using libvirt 2.1.0, everything works great.

But after (testwise) updating to libvirt 2.2.0 or 2.3.0, libvirt doesn't
start up anymore.

Some investigations showed that apparently my "default6" network is the
problem. Libvirt is starting correctly after disabling all autostarts.
When I then virsh' into the system daemon and type "net-start default6",
then nothing happens and that command just hangs infinitely.

Further information, relevant log entries and e.g. the used default6.xml
configuration file can be found here, as I first thought it would be a
configuration error from my side:
https://bbs.archlinux.org/viewtopic.php?pid=1653221

Do you maybe have an idea what could be going on? Or do you maybe need
more information, and if yes, which exactly?


Nothing seems unusual about your config, and your troubleshooting so far 
eliminates some common problems. I've just tried starting an IPv6 
network with a libvirtd built from the latest sources (but on Fedora 24) 
and don't experience your problem.


I guess at this point what's most likely to get closer to the root of 
the problem would be to attach gdb to the hung libvirtd process and run 
"thread apply all bt". Presumably one of the threads will be waiting on 
a system call to return and that may give a further clue.


___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


[libvirt-users] Libvirt newer than 2.1.0 doesnt start up

2016-10-17 Thread Rene Pasing
Hi all,

I have some problems with libvirt >2.1.0 (so 2.2.0 and 2.3.0): I have a
working environment using libvirt 2.1.0 with 1 domain (called "mail")
and one network (called "default6"), both are autostarted. I have no
problems with this environment using libvirt 2.1.0, everything works great.

But after (testwise) updating to libvirt 2.2.0 or 2.3.0, libvirt doesn't
start up anymore.

Some investigations showed that apparently my "default6" network is the
problem. Libvirt is starting correctly after disabling all autostarts.
When I then virsh' into the system daemon and type "net-start default6",
then nothing happens and that command just hangs infinitely.

Further information, relevant log entries and e.g. the used default6.xml
configuration file can be found here, as I first thought it would be a
configuration error from my side:
https://bbs.archlinux.org/viewtopic.php?pid=1653221

Do you maybe have an idea what could be going on? Or do you maybe need
more information, and if yes, which exactly?

Thanks in advance
Regards
Rene

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


[libvirt-users] Fwd: Libvirt adds extra parameters in domain XML

2016-10-17 Thread Marina Danial
I have a predetermined set of commands that I want to launch qemu with:

sudo `which qemu-system-x86_64` -m 4G $(IMAGE) -enable-kvm \
-nographic \
-net nic,model=virtio,netdev=net0,macaddr=$(MAC),vlan=0 \
-netdev tap,id=net0,ifname=tap01,vhost=on,script=no,downscript=no \
-net nic,model=virtio,netdev=net1,macaddr=$(MANAGE_MAC),vlan=1 \
-netdev tap,id=net1,ifname=tap02,vhost=on,script=no,downscript=no \

I dont need any extra configuration from libvirt. is this possible? Or can
anyone help with a possible xml configuration ?



On Thu, Oct 13, 2016 at 1:13 PM, Martin Kletzander 
wrote:

> On Thu, Oct 13, 2016 at 11:49:44AM +0200, Marina Danial wrote:
>
>> Hello,
>>
>> In my C++ code, I generate my own domain XML file and I
>> use virDomainCreateXML or virDomainDefineXML to launch my qemu VM.
>> However,
>> when I get to check which commands are sent to the qemu commandline, I
>> find
>> that libvirt has added so many extra parameters to the ones I have already
>> set. How can I prevent libvirt from adding any extra parameters to the
>> ones
>> I originally defined in the domain XML?
>>
>>
> What problems are you having with those?  What specific ones are
> problematic for you?  Libvirt adds a lot of things so that the domain is
> predictable, it can talk to it later on and so on.  Some of them are
> adding the same things you would have there without -no-defconfig and
> similar.  Just so we can guarantee some compatibility etc.
>
> Help will be highly appreciated.
>>
>>
>> Thanks
>>
>
> ___
>> libvirt-users mailing list
>> libvirt-users@redhat.com
>> https://www.redhat.com/mailman/listinfo/libvirt-users
>>
>
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users