Re: libvirtd daemon missing in LFS

2022-02-09 Thread Sai Kiran Kumar Reddy
Hi,

There was some issue with pkg-config-path. I have fixed it. I see that it
looks for wireshark and other dependencies. I get an error saying "remote
driver is required for libvirtd daemon". I am not sure what this error
means. Does it mean that I have to install wireshark or is it looking for
something else. Could you please help me out here.

On Thu, Feb 10, 2022 at 9:57 AM Sai Kiran Kumar Reddy 
wrote:

> Hi,
>
> Thanks for your inputs. I have compiled with -Ddriver_libvirtd=enabled
> option. As you have mentioned, it shows missing dependencies. Let me
> install them and try to get libvirtd up and running.
>
> Once again, thanks for your help.
>
> On Wed, Feb 9, 2022 at 5:24 PM Peter Krempa  wrote:
>
>> On Wed, Feb 09, 2022 at 16:34:43 +0530, Sai Kiran Kumar Reddy wrote:
>> > Hi,
>> >
>> > I am Sai Kiran. I am trying to build libvirt from source on my Linux
>> From
>> > Scratch(LFS) system. I have successfully installed libvirt and its
>> > dependencies. When I start virt-manager, there is a prompt in GUI saying
>> > that "libvirtd service is not installed".  I also do not see any
>> libvirtd
>> > in my system. I would like to install the libvirtd service(build from
>> > source). But I am not able to find the source code for it and also, I am
>> > not sure about the build process for the daemon. Could you please help
>> me
>> > out here.
>>
>> The libvirt daemon is integral part of the libvirt project so the
>> sources you used to build the library also contain the daemon sources.
>>
>> In your instance it's most likely that you are missing a dependancy and
>> libvirtd was not auto-enabled. To force-enable it configure libvirt with
>>
>>  '-Ddriver_libvirtd=enabled'
>>
>> which should report what you are missing. Since you are using LFS you
>> need to ensure that you have all deps yourself.
>>
>>
>
> --
> Regards,
> Sai Kiran.
>


-- 
Regards,
Sai Kiran.


Re: libvirtd daemon missing in LFS

2022-02-09 Thread Sai Kiran Kumar Reddy
Hi,

Thanks for your inputs. I have compiled with -Ddriver_libvirtd=enabled
option. As you have mentioned, it shows missing dependencies. Let me
install them and try to get libvirtd up and running.

Once again, thanks for your help.

On Wed, Feb 9, 2022 at 5:24 PM Peter Krempa  wrote:

> On Wed, Feb 09, 2022 at 16:34:43 +0530, Sai Kiran Kumar Reddy wrote:
> > Hi,
> >
> > I am Sai Kiran. I am trying to build libvirt from source on my Linux From
> > Scratch(LFS) system. I have successfully installed libvirt and its
> > dependencies. When I start virt-manager, there is a prompt in GUI saying
> > that "libvirtd service is not installed".  I also do not see any libvirtd
> > in my system. I would like to install the libvirtd service(build from
> > source). But I am not able to find the source code for it and also, I am
> > not sure about the build process for the daemon. Could you please help me
> > out here.
>
> The libvirt daemon is integral part of the libvirt project so the
> sources you used to build the library also contain the daemon sources.
>
> In your instance it's most likely that you are missing a dependancy and
> libvirtd was not auto-enabled. To force-enable it configure libvirt with
>
>  '-Ddriver_libvirtd=enabled'
>
> which should report what you are missing. Since you are using LFS you
> need to ensure that you have all deps yourself.
>
>

-- 
Regards,
Sai Kiran.


qemu+ssh connections to a remote libvirt fail as ssh banner configured

2022-02-09 Thread Yalan Zhang
Hi there,

I have a system configured with ssh login banner like as below:
# cat ~/.bashrc
...
echo
"="
echo "== This machine is occupied by xxx for testing now. If you are
about to use it, contact xxx first =="
echo
"="

It works as expected that whenever someone logs into this system by ssh,
he/she will see this warning message.
But it seems such settings will impact a virsh client connection with ssh,
when I try to connect the libvirt daemon on this system, it will error out :
# virsh -c qemu+ssh://${my_host}/system list --all
root@${my_host}'s password:
error: failed to connect to the hypervisor
error: packet 1027423545 bytes received from server too large, want 33554432

I have searched and found some related explanations[1], and [2] says "The
virsh man page doesn't mention ssh, so it sounds like the file
/usr/share/doc/libvirt-doc/remote.html shipped with libvirt-doc could use a
patch mentioning this."
But I can not find anything about this currently on
file:///usr/share/doc/libvirt-docs/html/remote.html.
Could we have this documented for reference with all the possibilities?
Thank you!

[1]
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/868753/comments/17
[2]
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/868753/comments/14


---
Best Regards,
Yalan Zhang
IRC: yalzhang


Re: libvirtd daemon missing in LFS

2022-02-09 Thread Peter Krempa
On Wed, Feb 09, 2022 at 16:34:43 +0530, Sai Kiran Kumar Reddy wrote:
> Hi,
> 
> I am Sai Kiran. I am trying to build libvirt from source on my Linux From
> Scratch(LFS) system. I have successfully installed libvirt and its
> dependencies. When I start virt-manager, there is a prompt in GUI saying
> that "libvirtd service is not installed".  I also do not see any libvirtd
> in my system. I would like to install the libvirtd service(build from
> source). But I am not able to find the source code for it and also, I am
> not sure about the build process for the daemon. Could you please help me
> out here.

The libvirt daemon is integral part of the libvirt project so the
sources you used to build the library also contain the daemon sources.

In your instance it's most likely that you are missing a dependancy and
libvirtd was not auto-enabled. To force-enable it configure libvirt with

 '-Ddriver_libvirtd=enabled'

which should report what you are missing. Since you are using LFS you
need to ensure that you have all deps yourself.



libvirtd daemon missing in LFS

2022-02-09 Thread Sai Kiran Kumar Reddy
Hi,

I am Sai Kiran. I am trying to build libvirt from source on my Linux From
Scratch(LFS) system. I have successfully installed libvirt and its
dependencies. When I start virt-manager, there is a prompt in GUI saying
that "libvirtd service is not installed".  I also do not see any libvirtd
in my system. I would like to install the libvirtd service(build from
source). But I am not able to find the source code for it and also, I am
not sure about the build process for the daemon. Could you please help me
out here.

Thanks in advance for your time and support.

-- 
Regards,
Sai Kiran.