Skip to content

Qemu-GA支持需要的相关配置 #55

@aiminickwong

Description

@aiminickwong

1.内核配置

在最新内核配置上需要增加以下配置项:

# FOR QEMU-GA must add:
CONFIG_VIRTIO_CONSOLE=y
CONFIG_SERIAL_NONSTANDARD=y

2、Qemu-GA需要系统支持

目前适配了默认的Alpine Linux镜像,参考方法如下:

apk add qemu-guest-agent
rc-update add qemu-guest-agent

编辑 /etc/conf.d/qemu-guest-agent 文件,修改为以下内容:

# Specifies the transport method used to communicate to QEMU on the host side
# Default: virtio-serial
GA_METHOD="virtio-serial"

# Specifies the device path for the communications back to QEMU on the host
# Default: /dev/virtio-ports/org.qemu.guest_agent.0
GA_PATH="/dev/vport5p1"

3、附件:

-(1)完整内核配置文件:

tuned_config.zip

-(2)完整虚拟机镜像:(所有文件,含内核和默认系统镜像)

vm.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions