Re: [libvirt-users] Fwd: Problems connecting to the libvirtd server

2016-10-13 Thread Stefano Ricci
I did more tests and if kill the qemu process without stopping
libvirtd and relaunching it with the following command
/usr/bin/qemu-system-x86_64 -S --no-user-config -nodefaults -nographic
-M none -qmp unix: /var /lib /libvirt /qemu
/capabilities.monitor.sock,server, nowait -pidfile
/var/lib/libvirt/qemu/capabilities.pidfile -daemonize, then virsh
working correctly and connects.
The command used to launch qemu is used by libvirtd automatically
taken by the ps -a | grep qemu.
However checking the status of qemu process with qmp is always in
prelaunch and running is false, even when it works.
When restart libvirtd back does it still hangs.

2016-10-13 18:08 GMT+02:00 Stefano Ricci :
> it does still hang.
> The strange thing is that I launched qemu, without libvirtd,
> independently creating a linux virtual machine, functions regularly
> and reading the state with qmp is regularly running.
>
> Stefano
>
> 2016-10-13 2:57 GMT+02:00 Michal Privoznik :
>> On 12.10.2016 19:16, Stefano Ricci wrote:
>>> I checked with qmp and  your consideration was correct, the status of
>>> qemu process is in prelaunch and running equals false.
>>> But I do not understand why
>>
>> [Please don't top post on technical lists]
>>
>> Well, I don't have any idea either. I mean, the daemon logs you provided
>> are from the second run of libvirtd. Maybe this is qemu or kernel bug?
>> If you kill the stalled process and then start libvirtd again, can you
>> connect then or does it still hang?
>>
>> Michal

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


Re: [libvirt-users] Fwd: Problems connecting to the libvirtd server

2016-10-13 Thread Stefano Ricci
it does still hang.
The strange thing is that I launched qemu, without libvirtd,
independently creating a linux virtual machine, functions regularly
and reading the state with qmp is regularly running.

Stefano

2016-10-13 2:57 GMT+02:00 Michal Privoznik :
> On 12.10.2016 19:16, Stefano Ricci wrote:
>> I checked with qmp and  your consideration was correct, the status of
>> qemu process is in prelaunch and running equals false.
>> But I do not understand why
>
> [Please don't top post on technical lists]
>
> Well, I don't have any idea either. I mean, the daemon logs you provided
> are from the second run of libvirtd. Maybe this is qemu or kernel bug?
> If you kill the stalled process and then start libvirtd again, can you
> connect then or does it still hang?
>
> Michal

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


Re: [libvirt-users] problem with disk virtio driver

2016-10-13 Thread Martin Kletzander

On Thu, Oct 13, 2016 at 01:47:08PM +0100, Andrei Perietanu wrote:

Hi all,
  I have to admit Martin might have been right: I upgraded to qemu 2.6.0
and still I see the same problem with virtio disks on my custom built Linux
box.

I create domain using the previously mentioned domain xml definition and
try to install ubuntu from an iso. Earty on during the installation I get
an error:
The attempt to mount a file system with type ext4 in Virtual disk1,
partition#1 (vda1) at / failed
At this point the installation fails and I have to reboot the domain.

There obviously is something I'm missing since the same works on a ubuntu
host machine but I have no idea what or how to debug it.

Any help is greatly appreciated.

Thanks!


Yes, I think this is a problem with kvm/virtio then, yes.  But
unfortunately it's highly improbable that you'd get much help on kernel
issues from libvir-list.  Maybe qemu people can help.  But I doubt the
problem is in libvirt.  Sorry.


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

Re: [libvirt-users] problem with disk virtio driver

2016-10-13 Thread Andrei Perietanu
Hi all,
   I have to admit Martin might have been right: I upgraded to qemu 2.6.0
and still I see the same problem with virtio disks on my custom built Linux
box.

I create domain using the previously mentioned domain xml definition and
try to install ubuntu from an iso. Earty on during the installation I get
an error:
The attempt to mount a file system with type ext4 in Virtual disk1,
partition#1 (vda1) at / failed
At this point the installation fails and I have to reboot the domain.

There obviously is something I'm missing since the same works on a ubuntu
host machine but I have no idea what or how to debug it.

Any help is greatly appreciated.

Thanks!


On Wed, Oct 5, 2016 at 5:07 PM, Andrei Perietanu <
andrei.periet...@klastelecom.com> wrote:

>
>
> On Wed, Oct 5, 2016 at 4:18 PM, Martin Kletzander 
> wrote:
>
>> On Wed, Oct 05, 2016 at 03:00:40PM +0100, Andrei Perietanu wrote:
>>
>>> Hi Andrea,
>>>   Thanks for the reply;
>>>   To shed some more light on the matter I performed a few more tests;
>>> each
>>> time doing a clean install. I installed ubuntu14.04 as the guest OS,
>>> keeping everything else the same.
>>> On my custom Linux I've created ubuntu VMs before (using ide drivers) and
>>> it all works file. This time I created the VM using virtio disk drivers
>>> and
>>>
>>
>> So switching only the guest OS (keeping the host OS, domain XML and
>> everything) works, so how can the problem be anywhere else than the
>> guest OS?  You might be, most probably, missing some kernel option.
>> What is the difference between the installer and the system installed?
>> Are they using the same kernel?  Accessing the same things?
>>
>> the installation didn't even finish. It reported a disk related error
>>> saying it's not being able to read from /dev/vda. I restarted the
>>> machine...same error.
>>>
>>
>> You're adding more configurations into the mix, let's skip that and only
>> talk about what you had before, the IDE and ubuntu/your distro.
>>
>>Just to make sure that I have not messed anything up, I did the same on
>>> the ubuntu host, so installed ubuntu guest on an ubuntu host uding the
>>> same
>>> guest config xml. This time everything worked fine. So it looks like a
>>> problem with the kvm virtio drivers.
>>>
>>>I was trying to stay away from updating the qemu package because
>>> adding
>>> the package takes a long time (usually, because of missing dependencies),
>>> but I'm not sure I have any other option at this point...
>>>
>>>
>> Are there that many since 1.1.2?  I don't think that much has changed.
>> But it should be solvable without updating (plus the update might not
>> fix it for you.
>>
>
> Let me try and recap what is happening :
> On my custom embedded linux, using the same domain config xml, just
> changing the disk drivers and/or the iso
> Ubuntu.iso + ide disk drivers -> works
> Ubuntu.iso + virio disk drivers -> does not work; errors when reading
> from /dev/vda
> customLinuxOS.iso + virtio drivers -> does not seem to work; kernel
> panics and services stop working
>
>
> On Ubuntu10.04 host, using the same domain config xml as before, just
> changing the iso
>  Ubuntu.iso + virtio disk drivers -> vorks
>  customLinuxOS.iso + virtio drivers -> works
>
> This sounds to me like a problem with kvm virtio drivers (since when using
> ide drivers installing ubuntu as a guest works)
>
> If there is anything I'm missing, or you think I should try ..I'm open to
> trying it.
>
> Thanks,
> Andrei
>
>

-- 
 

The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient is prohibited. If you receive 
this in error please contact the sender and delete the material from any 
computer immediately. It is the policy of Klas  Limited to disavow the 
sending of offensive material and should you consider that the material 
contained in the message is offensive you should contact the sender 
immediately and also your I.T. Manager.

Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW, 
Washington, DC 20007.

Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish 
Limited Liability Company, with its registered office at Fourth Floor, One 
Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland.
___
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-13 Thread Martin Kletzander

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

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

2016-10-13 Thread Marina Danial
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?

Help will be highly appreciated.


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