Difference between revisions of "Qemu guest agent"

From SME Server
Jump to navigationJump to search
(sme10 install)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
to get qemu agent running in your virtualized sme :
+
{{Languages}}
 +
<!-- here we define the contrib name variable -->
 +
<!-- we get the page title, remove suffix for translated version; if needed you can define there with the value you want-->
 +
{{#vardefine:contribname| {{lc: {{#titleparts:  qemu-guest-agent |1}} }} }}
 +
{{#vardefine:smecontribname| smeserver-{{lc: {{#titleparts:  qemu-guest-agent |1}} }} }}
 +
<!-- we define the language -->
 +
{{#vardefine:lang| {{lc:  {{#titleparts:    {{PAGENAME}} | | -1}}  }} |en }}
 +
{{Infobox contribs
 +
|name={{#var:contribname}}
 +
|image={{#var:contribname}}.jpg
 +
|description_image= {{#var:contribname}} logo
 +
|maintainer= John Crisp
 +
|licence= GPL v2
 +
|url= https://wiki.koozali.org
 +
|category= Contrib,Developer
 +
|tags=contrib'developer,perl
 +
}}
  
 +
===Maintainer===
 +
<!-- here you need to file your username and name -->
 +
[[User:reetp|John Crisp]]
  
SME9
+
=== Version ===
 +
<!-- keep this first element as is, you can add some if needed -->
 +
{{#smeversion: {{#var:smecontribname}} }}
 +
{{#smeversion: {{#var:contribname}} }}
 +
 
 +
=== Description ===
 +
 
 +
https://pve.proxmox.com/wiki/Qemu-guest-agent
 +
 
 +
 
 +
 
 +
=== Installation ===
 +
<tabs container>
 +
<tab name="For SME 10">
 +
<br>
 +
For a simple installation first set the ''QEMU Guest Agent'' as Enabled in the VM options and ''Display'' to Virtio-GPU in the Hardware Options.
 +
 
 +
Then just do:
 +
yum --enablerepo=smecontribs install smeserver-qemu-guest-agent -y
 +
signal-event post-upgrade;signal-event reboot
 +
 
 +
Check the Agent shows 'Enabled' in the Proxmox manager and the service is running on Koozali SME
 +
 
 +
systemctl status qemu-guest-agent
 +
 
 +
If agent was not enabled before the start of the vm from the hypervisor, so a reboot of the VM is not enough. You need to actually shutdown and restart the VM to enable the agent at the supervisor level and have qemu-guest-agent not to fail for dependency. 
 +
 
 +
To install manually:
  
yum install qemu-guest-agent -y
 
cd /etc/rc.d/rc7.d/
 
ln -s /etc/rc.d/init.d/qemu-ga  S85qemu-ga
 
config set qemu-ga service status enabled access private
 
service qemu-ga start
 
SME10
 
 
  yum install qemu-guest-agent -y  
 
  yum install qemu-guest-agent -y  
 
  config set qemu-guest-agent service status enabled access private
 
  config set qemu-guest-agent service status enabled access private
Line 15: Line 55:
 
  echo -e  "[Install]\nWantedBy=sme-server.target" > /usr/lib/systemd/system/qemu-guest-agent.service.d/50koozali.conf
 
  echo -e  "[Install]\nWantedBy=sme-server.target" > /usr/lib/systemd/system/qemu-guest-agent.service.d/50koozali.conf
 
  /etc/e-smith/events/actions/systemd-default
 
  /etc/e-smith/events/actions/systemd-default
 +
systemctl daemon-reload
 
  systemctl start qemu-guest-agent.service
 
  systemctl start qemu-guest-agent.service
 +
 +
</tab>
 +
<tab name="For SME 9">
 +
<br>
 +
No contrib available
 +
 +
yum install qemu-guest-agent -y
 +
cd /etc/rc.d/rc7.d/
 +
ln -s /etc/rc.d/init.d/qemu-ga  S85qemu-ga
 +
config set qemu-ga service status enabled access private
 +
service qemu-ga start
 +
</tab>
 +
</tabs>
 +
 +
=== Configuration ===
 +
 +
config show qemu-guest-agent
 +
 +
=== Uninstall ===
 +
yum remove {{#var:smecontribname}}
 +
 +
=== Bugs ===
 +
Please raise bugs under the SME-Contribs section in {{BugzillaFileBug|product=|component=|title= bugzilla}}
 +
and select the {{#var:smecontribname}} component or use {{BugzillaFileBug|product=SME%20Contribs|component={{#var:smecontribname}}|title=this link}}
 +
 +
Below is an overview of the current issues for this contrib:{{#bugzilla:columns=id,product,version,status,summary|sort=id|order=desc|component={{#var:smecontribname}} |noresultsmessage=No open bugs found.}}
 +
<br>
 +
===Changelog===
 +
Only released version in smecontrib are listed here.
 +
 +
{{ #smechangelog: {{#var:smecontribname}} }}
 +
 +
<!-- list of category you want to see this page in -->
 +
[[Category: Contrib]]
 +
[[Category:Howto]]
 +
 +
 +
<!-- Please keep there the template revision  number as is -->
 +
[[contribtemplate::2| ]]
 +
[[contriblang:: {{#var:lang}} | ]]

Latest revision as of 12:05, 19 July 2022




qemu-guest-agent
NeedImage.svg
qemu-guest-agent logo
MaintainerJohn Crisp
Urlhttps://wiki.koozali.org
LicenceGPL v2
Category

Contrib Developer

Tags contrib'developerperl


Maintainer

John Crisp

Version

Contrib 10:
smeserver-qemu-guest-agent
The latest version of smeserver-qemu-guest-agent is available in the SME repository, click on the version number(s) for more information.


qemu-guest-agent
The latest version of qemu-guest-agent is available in the SME repository, click on the version number(s) for more information.


Description

https://pve.proxmox.com/wiki/Qemu-guest-agent


Installation


For a simple installation first set the QEMU Guest Agent as Enabled in the VM options and Display to Virtio-GPU in the Hardware Options.

Then just do:

yum --enablerepo=smecontribs install smeserver-qemu-guest-agent -y
signal-event post-upgrade;signal-event reboot

Check the Agent shows 'Enabled' in the Proxmox manager and the service is running on Koozali SME

systemctl status qemu-guest-agent

If agent was not enabled before the start of the vm from the hypervisor, so a reboot of the VM is not enough. You need to actually shutdown and restart the VM to enable the agent at the supervisor level and have qemu-guest-agent not to fail for dependency.

To install manually:

yum install qemu-guest-agent -y 
config set qemu-guest-agent service status enabled access private
mkdir -p /usr/lib/systemd/system/qemu-guest-agent.service.d/
echo -e  "[Install]\nWantedBy=sme-server.target" > /usr/lib/systemd/system/qemu-guest-agent.service.d/50koozali.conf
/etc/e-smith/events/actions/systemd-default
systemctl daemon-reload
systemctl start qemu-guest-agent.service


No contrib available

yum install qemu-guest-agent -y
cd /etc/rc.d/rc7.d/
ln -s /etc/rc.d/init.d/qemu-ga  S85qemu-ga
config set qemu-ga service status enabled access private
service qemu-ga start

Configuration

config show qemu-guest-agent

Uninstall

yum remove smeserver-qemu-guest-agent

Bugs

Please raise bugs under the SME-Contribs section in bugzilla

and select the smeserver-qemu-guest-agent component or use this link


Below is an overview of the current issues for this contrib:

No open bugs found.


Changelog

Only released version in smecontrib are listed here.

smeserver-qemu-guest-agent Changelog: SME 10 (smecontribs)
2022/03/15 John Crisp 0.1-2.sme
- change event name smeserver-qemu-guest-agent-update [SME: 11777]
2021/10/22 John Crisp 0.1-1.sme
- Initial import to Koozali SME 10 [SME: 11715]