I'm currently trying to run a guest virtual machine on my current system (Ubuntu 18.04 with the 4.15.0-29-generic kernel).
Every time I've tried running a virtual machine (I've tried virtualbox aswell as kvm) my host system completely freezes and I have to reboot in order for the system to be responsive again.
The freeze seems to occur when the guest is processing some task (for example downloading a large package using apt).
I'm very new to Linux and so I'm essentially looking for a good way to troubleshoot this issue. I'm not too familiar with how I would go about this.
I've tried a couple of fresh installs but the issue still occurs.
I've checked the syslog and this is what is logged right before the crash happens:
kernel: [ 863.019124] vboxdrv: 0000000000000000 VMMR0.r0 kernel: [ 863.142264] vboxdrv: 0000000000000000 VBoxDDR0.r0
After that there's a bunch of "^@^@^@^" until the next message in the log which is the system restarting.
In "journalctl" I can see a number of errors happening at the time of the freeze, for example, a lot of them are variations of this with different numbers displaying:
kernel: swap_info_get: Bad swap file entry 2200000000000000 kernel: BUG: Bad page map in process EMT-1 pte:00002200 pmd:32fb78067 kernel: addr:00000000fc73a6db vm_flags:1c0400fb anon_vma: (null) mapping:000000009d3746ac index:c3 kernel: file:dev/zero fault:shmem_fault mmap:shmem_mmap readpage: (null)
BUG: Bad page map in process EMT-1 pte:0000a100 pmd:32fb78067 page:ffffdceb80000280 count:1 mapcount:-1 mapping:0000000000000000 index:0x0 flags: 0x7ffffc0000800(reserved) raw: 0007ffffc0000800 0000000000000000 0000000000000000 00000001fffffffe raw: ffffdceb800002a0 ffffdceb800002a0 0000000000000000 0000000000000000 page dumped because: bad pte addr:00000000f6ef20c2 vm_flags:1c0400fb anon_vma: (null) mapping:000000009d3746ac index:c4 file:dev/zero fault:shmem_fault mmap:shmem_mmap readpage: (null)
I realise this may not be enough information to go on, but with my limited knowledge I'm unsure as to what information I should provide. Please let me know if there's something else I should include and I'll enter it.
Could anyone point me in the right direction as to how to diagnose the issue and fix it?