Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #229977

Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days

From <buz.hrach@seznam.cz>
Newsgroups linux.debian.user
Subject Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days
Date 2020-12-25 10:10 +0100
Message-ID <BpRgJ-3My-3@gated-at.bofh.it> (permalink)
References <BpDQt-3vh-1@gated-at.bofh.it> <BpEtb-3Xy-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Dan Ritter <dsr@randomstring.org>

Hi Dan, Thank you for answering ;-)

> First question: when they are just a few minutes old, does the
> serial console work?

Yes, 100%. I always configure serial console for all VMs both on QEMU (libvirt) and OS side.

> Second question: when the VMs are a few minutes old, does virsh
> shutdown work?

Yes, 100%. In most cases everything works just fine. Until I keep those VMs
running for days... And even then some virtualization hosts are just fine
and one or two has those frozen VMs.

> You probably want to change that to 1 minute or so.

Good point.

> Are the VMs set up to match the local hardware definition or be
> fully emulated?

Matching HW, all virtio, CPU pass-through for everything (=> maximum performance).

> And, especially: if they are not using virtio for disk and
> network address, try that ASAP.

They do.

==================
  <cpu mode='host-passthrough' check='none'/>
...
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none' discard='unmap'/>
      <source dev='/dev/..../>
      <target dev='sdX' bus='scsi'/>
    </disk>
...
    <controller type='scsi' index='0' model='virtio-scsi'/>
...
    <interface type='bridge'>
      <mac address='...'/>
      <source bridge='...'/>
      <vlan>
        <tag id='...'/>
      </vlan>
      <virtualport type='openvswitch'/>
      <target dev='...'/>
      <model type='virtio'/>
      <driver name='vhost'/>
      <link state='up'/>
    </interface>
===================

Kind regards,
Robert

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

QEMU-KVM VMs sometime freeze when I run them for a couple of days <buz.hrach@seznam.cz> - 2020-12-24 19:50 +0100
  Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days Dan Ritter <dsr@randomstring.org> - 2020-12-24 20:30 +0100
    Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days <buz.hrach@seznam.cz> - 2020-12-25 10:10 +0100
    Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days <buz.hrach@seznam.cz> - 2020-12-27 11:40 +0100
      Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days Nicholas Geovanis <nickgeovanis@gmail.com> - 2020-12-27 16:50 +0100
        Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days <buz.hrach@seznam.cz> - 2021-01-06 14:40 +0100
          Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days Bob McGowan <bob@bnlmcgowan.net> - 2021-01-07 02:40 +0100
  Re: QEMU-KVM VMs sometime freeze when I run them for a couple of days George Shuklin <george.shuklin@gmail.com> - 2020-12-25 11:40 +0100

csiph-web