From nobody Thu Oct 26 23:16:09 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SGhWb6TbGz4yP1s for ; Thu, 26 Oct 2023 23:16:43 +0000 (UTC) (envelope-from tom@khubla.com) Received: from mailout.easymail.ca (mailout.easymail.ca [64.68.200.34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SGhWb4Jvvz4CnT for ; Thu, 26 Oct 2023 23:16:43 +0000 (UTC) (envelope-from tom@khubla.com) Authentication-Results: mx1.freebsd.org; none Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 28768644AF; Thu, 26 Oct 2023 23:16:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KYrDvH6dQUGp; Thu, 26 Oct 2023 23:16:11 +0000 (UTC) Received: from gargamel-2.ascot.khubla.lan (d198-166-24-90.abhsia.telus.net [198.166.24.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 40E98644AC; Thu, 26 Oct 2023 23:16:11 +0000 (UTC) Subject: Re: Kernel module for Proxmox hypervisor To: Felix Reichenberger Cc: Olivier Nicole , Freebsd Questions References: From: Tom Everett Message-ID: <0d80b6ba-7792-a014-64a0-83398b93f2f6@khubla.com> Date: Thu, 26 Oct 2023 17:16:09 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1903DC435ED39B24E7B16A69" Content-Language: en-US X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16686, ipnet:64.68.200.0/22, country:CA] X-Rspamd-Queue-Id: 4SGhWb4Jvvz4CnT This is a multi-part message in MIME format. --------------1903DC435ED39B24E7B16A69 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 > October 26, 2023 at 4:48 AM > Hi, > > you can take a loot at qemu-guest-agent (emulators/qemu) > > Regards > > Olivier > 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 --------------1903DC435ED39B24E7B16A69 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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


October 26, 2023 at 4:48 AM
Hi,

you can take a loot at qemu-guest-agent (emulators/qemu)

Regards

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
--------------1903DC435ED39B24E7B16A69--