Re: Kernel module for Proxmox hypervisor

From: Tom Everett <tom_at_khubla.com>
Date: Thu, 26 Oct 2023 23:16:09 UTC
I was just looking at this.  It appears to require this in 
"/boot/loader.conf"

virtio_console_load="YES"

Here is the ansible play I use

- name: install qemu-guest-agent
ansible.builtin.command:
cmd: "pkg install -y qemu-guest-agent"

- name: add startup line in /etc/rc.conf
ansible.builtin.lineinfile:
path: '/etc/rc.conf'
line: 'qemu_guest_agent_enable="YES"'

- name: add config line in /etc/rc.conf
ansible.builtin.lineinfile:
path: '/etc/rc.conf'
line: 'qemu_guest_agent_flags="-d -v -l /var/log/qemu-ga.log"'

- name: enable virtio_console_load
ansible.builtin.lineinfile:
path: /boot/loader.conf
line: virtio_console_load="YES"
regex: virtio_console_load

- name: load virtio_console
ansible.builtin.shell:
cmd: 'kldload virtio_console'
ignore_errors: true

- name: start service qemu-guest-agent
ansible.builtin.service:
name: qemu-guest-agent
state: restarted
async: 45
   poll: 5


> Felix Reichenberger <mailto:felix.reichenberger@tuta.io>
> October 26, 2023 at 4:48 AM
> Hi,
>
> you can take a loot at qemu-guest-agent (emulators/qemu)
>
> Regards
>
> Olivier <mailto:Olivier.Nicole@cs.ait.ac.th>
> October 24, 2023 at 8:40 PM
> Hi,
>
> I am wondering if there is a kernel module to install for a FreeBSD
> virtual machine on a Proxmox hypervisor, something like open-vm-tools
> for VMware.
>
> Thanks in advance,
>
> Olivier

-- 
Sent from Postbox <https://www.postbox-inc.com>