On 11/07/2021 20.14, Ed Greshko wrote:
On 11/07/2021 16:19, Eyal Lebedinsky wrote:
>
>
> On 11/07/2021 10.22, Ed Greshko wrote:
>> On 10/07/2021 19:09, Eyal Lebedinsky wrote:
>>>
>>> On 10/07/2021 10.56, Ed Greshko wrote:
>>>> On 10/07/2021 08:44, Eyal Lebedinsky wrote:
>>>>> Recently I started having Xorg crash while using firefox.
>>>>>
This is f34 in a libvirt kvm, host (also f34) uses internal i915 video.
>>>>>
Kernel is 5.12.14-300.fc34.x86_64 but saw this with earlier 5.12.12/13 kernels.
>>>>
>>>> I've not seen any crashes on my VM. Host is F34 and multiple guests,
including F34 guests.
>>>>
>>>> As a test, have you tried changing your guest video from QXL to Virtio?
>>>
>>> Worth a try. I am now running with Virtio video. Audio sync is a bit out...
>>>
>>> Interestingly: I tried to change back to QXL for comparo but LXD could not
start,
>>> X repeatedly terminated with
>>> [ 43.747] resizing primary to 3840x2160
>>> [ 43.747] primary is 0x5640e09faa30
>>> [ 43.747] (EE) qxl(0): failed to set mode: Cannot allocate memory(EE)
>>> I will deal with this later.
>>>
>>
>> Is your host running low on memory?
>
> I do not think so. I changed back to QXL and LXDM failed in a loop, at that point
> I did this on the host:
>
> $ free
> total used free shared buff/cache available
> Mem: 32734592 3232096 7343812 246400 22158684 28782264
> Swap: 16777212 1064704 15712508
>
> The guest is configured with 8GB memory.
>
> [later] I had a very vague memory that I needed to fiddle with the domain xml file.
> I restored /etc/libvirt/qemu/e4.xml from backup and compared and sure it was
different.
>
> I used
> $ sudo virsh edit e4
> and set the <video> stanza to say
> <model type='qxl' ram='131072' vram='131072'
vgamem='32768' heads='1' primary='yes'/>
> where it originally said
> <model type='qxl' ram='65536' vram='65536'
vgamem='16384' heads='1' primary='yes'/>
> Now lxdm starts OK.
>
> Audio sync still bad. Video barely keeps up. Probably similar to virtio mode.
>
> I will run this way until I get an Xorg crash, then switch to virtio to see if it is
better.
>
OK.... I forgot to ask. This is F34 installed from what Live Image?
This system was installed too many years ago to remember and upgraded every year.
I don't use VM's with audio. I don't know if it is my
slow HW or what, but I never got it to work well with
pulseaudio and I've not even given pipewire a try with VM's. I had the same
disappointing issues using
VirtualBox as well.
--
Eyal Lebedinsky (fedora(a)eyal.emu.id.au)