Friday, February 02, 2024

Re: vmd silently exits (after 7.4 upgrade)

Dave Voutila <dv@sisu.io> writes:

> "Piotr K. Isajew" <pki@ex.com.pl> writes:
>
>> Hello,
>>
>> I'm observing this on one of my machines (which I seldom use
>> nowadays) after upgrading it to 7.4. The machine had existing
>> vm.conf setup which worked for me in the past.
>>
>> Now "rcctl start vmd" reports:
>> vmd(ok)
>>
>> but just after that executing "vmctl status" gives:
>> vmctl: connect: /var/run/vmd.sock: Connection refused
>>
>> and there is no vmd process running.
>>
>> When I try to start vmd from command line, it generates some
>> output, but it is not really helpful in determining what could be
>> the problem:
>>
>> /usr/sbin/vmd -d -v -v -v -v -v -v -v -v -v -v -v
>> vmd: startup
>> vmd: vm_register: registering vm 1
>> vmd: /etc/vm.conf:18: vm "lindev" registered (disabled)
>> vmd: vmd_configure: setting staggered start configuration to parallelism: 4 and delay: 30
>> vmd: vmd_configure: starting vms in staggered fashion
>> vmd: start_vm_batch: starting batch of 4 vms
>> vmd: start_vm_batch: not starting vm lindev (disabled)
>> vmd: start_vm_batch: done starting vms
>> vmd: vmd: getgrnam
>
> Run sysmerge. You're missing the new _vmd group introduced in 7.4:
>
> $ grep vmd /etc/group
> _vmd:*:107:
>

err...also check the agentx group. That is probably the actual missing
group in this case:

$ grep agentx /etc/group
_agentx:*:92:

>> vmd: exiting
>> control: config_getconfig: control retrieving config
>> control: control exiting, pid 33268
>> # priv: config_getconfig: priv retrieving config
>> priv: priv exiting, pid 1161
>> vmm: config_getconfig: vmm retrieving config
>> vmm: vmm exiting, pid 48824
>>
>>
>> dmesg excerpt
>> OpenBSD 7.4 (GENERIC.MP) #2: Fri Dec 8 15:39:04 MST 2023
>> root@syspatch-74-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> cpu0: Intel(R) Xeon(R) CPU E31225 @ 3.10GHz, 3093.12 MHz, 06-2a-07, patch 0000002f
>> cpu0:
>> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
>>
>> cpu0: using VERW MDS workaround (except on vmm entry)
>> vmm0 at mainbus0: VMX/EPT

No comments:

Post a Comment