See this response for the same command on my EdgeRouter:

edgy# sysctl hw                                                       
hw.machine=octeon
hw.model=Cavium OCTEON (rev 0.2) @ 1000 MHz
hw.ncpu=4
hw.byteorder=4321
hw.pagesize=16384
hw.disknames=sd0:3b7d06c5b561182c
hw.diskcount=1
hw.cpuspeed=1000
hw.product=cavium,ubnt_e300
hw.physmem=1073741824
hw.usermem=1073709056
hw.ncpufound=4
hw.allowpowerdown=1
hw.ncpuonline=4
hw.power=1


Whatever hypervisor you may use, the output will be substantially
different from a regular CPU.



On Tue, 2023-09-19 at 17:17 +0200, Alessandro Baggi wrote:
> 
> 
> Il 19/09/23 16:51, Denis Fondras ha scritto:
> > Le Tue, Sep 19, 2023 at 03:13:21PM +0200, Alessandro Baggi a écrit
> > :
> > > Hi list,
> > > there is a way to check if  OpenBSD runs on VM or physical
> > > hardware?
> > > 
> > > Something like in sysctl or similar.
> > > 
> > > Thank you in advance.
> > > 
> > 
> > You may want to check the `hw` variable :
> > 
> > $ sysctl hw
> > [...]
> > hw.model=Common KVM processor
> > hw.vendor=QEMU
> > [...]
> > 
> 
> Hi and thank you for your answer.
> 
> I already seen this in sysctl but what if another hypervisor is used?
> Like VMWare or other?
> 
> Thank you in advance.
> 

Reply via email to