A bit worse here:
# ohai --version
Ohai: 6.16.0
# ohai virtualization
[2013-04-22T12:26:21-07:00] WARN: [inet] no ipaddress/mask on venet0 matching the gateway 192.0.2.1
[2013-04-22T12:26:21-07:00] WARN: unable to detect ipaddress
[2013-04-22T12:26:21-07:00] WARN: unable to detect macaddress
[2013-04-22T12:26:21-07:00] INFO: [inet6] no default interface, picking the first ipaddress
{
"system": "openvz",
"role": "guest"
}
# ohai ipaddress
[2013-04-22T12:26:48-07:00] WARN: [inet] no ipaddress/mask on venet0 matching the gateway 192.0.2.1
[2013-04-22T12:26:48-07:00] WARN: unable to detect ipaddress
[2013-04-22T12:26:48-07:00] WARN: unable to detect macaddress
[2013-04-22T12:26:48-07:00] INFO: [inet6] no default interface, picking the first ipaddress
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/system.rb:247:in `attributes_print': I cannot find an attribute named ipaddress! (ArgumentError)
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/application.rb:101:in `block in run_application'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/application.rb:100:in `each'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/application.rb:100:in `run_application'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/lib/ohai/application.rb:75:in `run'
from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.16.0/bin/ohai:51:in `<top (required)>'
from /usr/bin/ohai:23:in `load'
from /usr/bin/ohai:23:in `<main>'
Available here: https://github.com/leehuffman/ohai/commits/OHAI-237