Skip to content

hostname: Chassis type through org.freedesktop.hostname1 but returned an emtpy string. #24384

@smallorange

Description

@smallorange

systemd version the issue has been seen with

251.4-53

Used distribution

Rawhide

Linux kernel version used

6.0.0-0.rc1.20220819git4c2d0b039c5c.16.fc38.x86_64

CPU architectures issue was seen on

x86_64

Component

systemd-hostnamed

Expected behaviour you didn't see

If we requested the chassis type through dbus org.freedesktop.hostname1 in a VM, we expected the chassis type should be "vm" rather than an empty string ''.

Unexpected behaviour you saw

If we request the chassis type in qemu and virtual box, it always returns an empty string.
in_vm
Screen Shot 2022-08-22 at 11 40 14 AM

Steps to reproduce the problem

  1. Install Fedora in a VM (QEMU or Virtual box)
  2. Request chassis type through dbus interface "org.freedesktop.DBus.Properties"
  3. the returned value should be an empty string.

Additional program output to the terminal or log subsystem illustrating the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    hostnameregression ⚠️A bug in something that used to work correctly and broke through some recent commit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions