virt-install already uses 'host-passthrough' as default when no setup for cmline '--cpu'. However, it will still use 'host-model' when comes with '-cpu host'. This will be a problem for aarch64 platfrom as 'host-model' for aarch64 kvm domain on aarch64 host is not supported yet. Signed-off-by: Liang Yan <lyan@xxxxxxxx> --- virtinst/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtinst/cli.py b/virtinst/cli.py index c6a39121..da8c2698 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -2147,7 +2147,10 @@ class ParserCPU(VirtCLIParser): def set_model_cb(self, inst, val, virtarg): if val == "host": - val = inst.SPECIAL_MODE_HOST_MODEL + if self.guest.conn.is_qemu() and self.guest.conn.caps.host.cpu.arch == "aarch64": + val = inst.SPECIAL_MODE_HOST_PASSTHROUGH + else: + val = inst.SPECIAL_MODE_HOST_MODEL if val == "none": val = inst.SPECIAL_MODE_CLEAR -- 2.26.0