On Thu, Oct 12, 2017 at 10:24:39AM +0200, Roar Waagsbø wrote: > Sorry. > > I will try to clear this up. > > My problem is: > > I setup a openbsd box, and setup vmm. > > After one week, I noticed that one of my vms had shutdown. > I started it back up again without thinking so much about it. > > After a few days my other vm had shutdown. > > Then I thought maybe it was an error in the snapshot I ran, so I upgraded > it to a newer -current. > > After one week both my vms had shutdown. > > I upgraded the host to the newest -current (10/10/2017) and then one of my > vms wouldnt even start. > > Upgraded the host to the 10/11/2017 snapshot and got both to boot. > > I upgraded one of the vms to the newest current without trouble. > > Then I tried the other one, and it boots the vm, but when I tried to to use > the console and -b flag to boot the bsd.rd it hangs after I do U for > upgrade. > > As Mike said it could be a issue with the console hanging, and if I try to > start it again it will reset my vm. > > The problem is that after it hang, I do doas vmctl status on my host and it > shows that the vm isnt running anymore, so it seems not to only be a issue > with the console hanging, it actually shuts my vm down. > > Heres my dmesg after the vm shutdown:
I cut out the rest of the message. Here is the problem: > vmd: vm 1 event thread exited unexpectedly > vmm_sighdlr: handling signal 20 > vmm_sighdlr: attempting to terminate vm 1 > terminate_vm: terminating vmid 1 I do not know why it is failing. Please apply this diff, rebuild vmd, and reply with just the output of vmd -dvvv as you have done previously. Index: vm.c =================================================================== RCS file: /cvs/src/usr.sbin/vmd/vm.c,v retrieving revision 1.28 diff -u -p -r1.28 vm.c --- vm.c 19 Sep 2017 06:22:30 -0000 1.28 +++ vm.c 12 Oct 2017 16:54:47 -0000 @@ -1216,6 +1216,7 @@ event_thread(void *arg) intptr_t ret; ret = event_dispatch(); + log_debug("%s: event_dispatch returns %d", __func__, (int)ret); mutex_lock(&threadmutex); *donep = 1;