Hello Christian,

I understand how the system works, and this is why I noticed this issue,
in theory this should not happen because it should be keepalive+1 (so 6)
but it does.

Here is a quick reply to your questions:

I have enabled keepalive_timeout in libvirtd.conf and I have the
following settings there:

keepalive_interval = 5
keepalive_count = 0 (you also need to enable this)

1. I don't fully get "trying to use virsh console, virsh edit you will
get the following".

I connect to a guest or try to edit it using virsh in the following way:

virsh edit guest1 (using nano)

After 5 seconds, nano gets killed (SIGTERM) and I get that message in
/var/log/syslog

Also I get this in the terminal:

error: Disconnected from qemu:///system due to I/O error

2.

NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/";
SUPPORT_URL="http://help.ubuntu.com/";
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial


Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                        Version                    
Architecture               Description
+++-===========================================-==========================-==========================-============================================================================================
ii  ipxe-qemu                                   1.0.0+git-20150424.a25a16d all  
                      PXE boot firmware - ROM images for qemu
ii  libvirt-bin                                 2.2.0-0~16.04~ppa0         
amd64                      programs for the libvirt library
ii  libvirt-clients                             2.2.0-0~16.04~ppa0         
amd64                      Programs for the libvirt library
ii  libvirt-daemon                              2.2.0-0~16.04~ppa0         
amd64                      Virtualization daemon
ii  libvirt-daemon-system                       2.2.0-0~16.04~ppa0         
amd64                      Libvirt daemon configuration files
ii  libvirt-dev:amd64                           2.2.0-0~16.04~ppa0         
amd64                      development files for the libvirt library
ii  libvirt0:amd64                              2.2.0-0~16.04~ppa0         
amd64                      library for interfacing with different 
virtualization systems
ii  python-libvirt                              2.2.0-0~16.04~ppa0         
amd64                      libvirt Python bindings
un  qemu                                        <none>                     
<none>                     (no description available)
ii  qemu-block-extra:amd64                      1:2.6.2+dfsg-0~16.04~ppa0  
amd64                      extra block backend modules for qemu-system and 
qemu-utils
un  qemu-common                                 <none>                     
<none>                     (no description available)
un  qemu-keymaps                                <none>                     
<none>                     (no description available)
ii  qemu-kvm                                    1:2.6.2+dfsg-0~16.04~ppa0  
amd64                      QEMU Full virtualization
un  qemu-kvm-spice                              <none>                     
<none>                     (no description available)
un  qemu-system                                 <none>                     
<none>                     (no description available)
un  qemu-system-arm                             <none>                     
<none>                     (no description available)
ii  qemu-system-common                          1:2.6.2+dfsg-0~16.04~ppa0  
amd64                      QEMU full system emulation binaries (common files)
un  qemu-system-i386                            <none>                     
<none>                     (no description available)
un  qemu-system-mips                            <none>                     
<none>                     (no description available)
un  qemu-system-misc                            <none>                     
<none>                     (no description available)
un  qemu-system-ppc                             <none>                     
<none>                     (no description available)
un  qemu-system-sparc                           <none>                     
<none>                     (no description available)
ii  qemu-system-x86                             1:2.6.2+dfsg-0~16.04~ppa0  
amd64                      QEMU full system emulation binaries (x86)
un  qemu-system-x86-64                          <none>                     
<none>                     (no description available)
un  qemu-user                                   <none>                     
<none>                     (no description available)
ii  qemu-utils                                  1:2.6.2+dfsg-0~16.04~ppa0  
amd64                      QEMU utilities

3. Yes, I changed it to 6 and after that it works.

Note that if I use virsh -k 4  (it will send keepalives every 4 seconds)
it works.

This is why I thought it's a sync issue.

Maybe it could happen just on my machine because there is some delay
which I doubt, but I was also considering that these limits are
extremely close, and I do not see the point for them to be the same, one
second extra for closing the connection will not make such a difference,
but it will decrease the changes of this happening.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1730051

Title:
  keepalive_timeout in libvirtd.conf is causing virsh to disconnect

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1730051/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to