Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2023 17:16:09 -0600
From:      Tom Everett <tom@khubla.com>
To:        Felix Reichenberger <felix.reichenberger@tuta.io>
Cc:        Olivier Nicole <olivier.nicole@cs.ait.ac.th>, Freebsd Questions <freebsd-questions@freebsd.org>
Subject:   Re: Kernel module for Proxmox hypervisor
Message-ID:  <0d80b6ba-7792-a014-64a0-83398b93f2f6@khubla.com>
In-Reply-To: <NhfaIij--V-9@tuta.io>
References:  <wu7wmvbjugm.fsf@banyan.cs.ait.ac.th> <NhfaIij--V-9@tuta.io>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <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>;

--------------1903DC435ED39B24E7B16A69
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html theme="default-light" iconset="color"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body text="#000000">I was just looking at this.  It appears to 
require this in "/boot/loader.conf"<br>
<br>
<span></span><span style="font-family: Courier New,Courier,monospace;">virtio_console_load="YES"</span><br>
<br>
Here is the ansible play I use<br>
<span style="font-family: Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">- name:
 install qemu-guest-agent</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
ansible.builtin.command:</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
cmd: "pkg install -y qemu-guest-agent"</span><span style="font-family: 
Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">- name:
 add startup line in /etc/rc.conf</span><span style="font-family: 
Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
ansible.builtin.lineinfile:</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
path: '/etc/rc.conf'</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
line: 'qemu_guest_agent_enable="YES"'</span><span style="font-family: 
Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">- name:
 add config line in /etc/rc.conf</span><span style="font-family: Courier
 New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
ansible.builtin.lineinfile:</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
path: '/etc/rc.conf'</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
line: 'qemu_guest_agent_flags="-d -v -l /var/log/qemu-ga.log"'</span><span
 style="font-family: Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">- name:
 enable virtio_console_load</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
ansible.builtin.lineinfile:</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
path: /boot/loader.conf</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
line: virtio_console_load="YES"</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
regex: virtio_console_load</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">- name:
 load virtio_console</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
ansible.builtin.shell:</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
cmd: 'kldload virtio_console'</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
ignore_errors: true</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">- name:
 start service qemu-guest-agent</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
ansible.builtin.service:</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
name: qemu-guest-agent</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">    
state: restarted</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  
async: 45</span><span style="font-family: Courier 
New,Courier,monospace;"><br>
</span><span style="font-family: Courier New,Courier,monospace;">  poll:
 5</span><span style="font-family: Courier New,Courier,monospace;"><br>
</span><br>
<br>
<blockquote type="cite" cite="mid:NhfaIij--V-9@tuta.io" style="border: 
0px none ! important;">
  <div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr" 
style="margin:30px 25px 10px 25px;"><div 
style="width:100%;border-top:2px solid 
rgba(146,154,163,0.7);padding-top:10px;">   <div 
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
   	<a style="color:#485664 
!important;padding-right:6px;font-weight:500;text-decoration:none 
!important;" href="mailto:felix.reichenberger@tuta.io" 
moz-do-not-send="true">Felix Reichenberger</a></div>   <div 
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
 right;">     <font color="#909AA4"><span style="padding-left:6px">October
 26, 2023 at 4:48 AM</span></font></div>    </div></div>
  <div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody" 
__pbrmquotes="true" 
style="color:#909AA4;margin-left:24px;margin-right:24px;"><div>Hi,<br><br>you
 can take a loot at qemu-guest-agent (emulators/qemu)<br><br>Regards<br><br></div>

  </div>
  <div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvHr" 
style="margin:30px 25px 10px 25px;"><div 
style="width:100%;border-top:2px solid 
rgba(146,154,163,0.7);padding-top:10px;">   <div 
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:49%;">
   	<a style="color:#485664 
!important;padding-right:6px;font-weight:500;text-decoration:none 
!important;" href="mailto:Olivier.Nicole@cs.ait.ac.th" 
moz-do-not-send="true">Olivier</a></div>   <div 
style="display:inline-block;white-space:nowrap;vertical-align:middle;width:48%;text-align:
 right;">     <font color="#909AA4"><span style="padding-left:6px">October
 24, 2023 at 8:40 PM</span></font></div>    </div></div>
  <div xmlns="http://www.w3.org/1999/xhtml" class="__pbConvBody" 
__pbrmquotes="true" 
style="color:#909AA4;margin-left:24px;margin-right:24px;"><div>Hi,<br><br>I
 am wondering if there is a kernel module to install for a FreeBSD<br>virtual
 machine on a Proxmox hypervisor, something like open-vm-tools<br>for 
VMware.<br><br>Thanks in advance,<br><br>Olivier<br></div>

  </div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div>Sent from <a href="https://www.postbox-inc.com"><span style="color:
 rgb(0, 157, 247);">Postbox</span></a></div></div>
</body></html>

--------------1903DC435ED39B24E7B16A69--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0d80b6ba-7792-a014-64a0-83398b93f2f6>