os:proxmox_ve:guest_agent
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
os:proxmox_ve:guest_agent [2020-04-13 01:37] – Manuel Frei | os:proxmox_ve:guest_agent [2020-05-19 20:05] (current) – Manuel Frei | ||
---|---|---|---|
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.1586734662.txt.gz · Last modified: 2020-04-13 01:37 by Manuel Frei