os:proxmox_ve:guest_agent
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
os:proxmox_ve:guest_agent [2020-04-10 22:21] – Manuel Frei | os:proxmox_ve:guest_agent [2020-05-19 20:05] (current) – Manuel Frei | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Guest Agent ====== |
Proxmox vm's use the QEMU guest agent. The official documentation from Proxmox can be found here: [[https:// | Proxmox vm's use the QEMU guest agent. The official documentation from Proxmox can be found here: [[https:// | ||
Line 19: | Line 19: | ||
</ | </ | ||
- | ===== Windows ===== | + | |
+ | ===== Execute Command ===== | ||
+ | |||
+ | ==== Enable ==== | ||
+ | |||
+ | Per default the qemu-guest-agent doesn' | ||
+ | |||
+ | < | ||
+ | root@mypve: | ||
+ | Agent error: The command guest-exec has been disabled for this instance | ||
+ | </ | ||
+ | |||
+ | === CentOS / RHEL === | ||
+ | |||
+ | Open the config file. | ||
+ | < | ||
+ | vi / | ||
+ | </ | ||
+ | |||
+ | Search for the blacklist line. | ||
+ | < | ||
+ | BLACKLIST_RPC=guest-file-open, | ||
+ | </ | ||
+ | |||
+ | Remove guest-exec (and guest-exec-status for async exec calls). | ||
+ | < | ||
+ | BLACKLIST_RPC=guest-file-open, | ||
+ | </ | ||
+ | |||
+ | Restart the agent. | ||
+ | < | ||
+ | systemctl restart qemu-guest-agent | ||
+ | </ | ||
+ | |||
+ | ==== Use ==== | ||
+ | |||
+ | < | ||
+ | qm guest exec < | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | root@mypve: | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Installation on Windows ===== | ||
* Download the latest VirtIO ISO ([[https:// | * Download the latest VirtIO ISO ([[https:// | ||
Line 29: | Line 78: | ||
* Reboot the vm | * Reboot the vm | ||
- | ===== Linux ===== | + | ===== Installation on Linux ===== |
For Debian/ | For Debian/ |
os/proxmox_ve/guest_agent.1586550071.txt.gz · Last modified: 2020-04-10 22:21 by Manuel Frei