By pvesh result: # pvesh create nodes/localhost/qemu/131/agent/set-user-password --password test123456 --username root --crypted 1 Use of inherited AUTOLOAD for non-method PVE::API2::Qemu::Agent::agent_cmd() is deprecated at /usr/share/perl5/PVE/API2/Qemu/Agent.pm line 255. Can't locate object method "map_method_by_name" via package "131" (perhaps you forgot to load "131"?) at /usr/share/perl5/PVE/RESTHandler.pm line 326.
# pvesh create nodes/localhost/qemu/131/agent/set-user-password --password test123456 --username root --crypted 0 Use of inherited AUTOLOAD for non-method PVE::API2::Qemu::Agent::agent_cmd() is deprecated at /usr/share/perl5/PVE/API2/Qemu/Agent.pm line 255. Can't locate object method "map_method_by_name" via package "131" (perhaps you forgot to load "131"?) at /usr/share/perl5/PVE/RESTHandler.pm line 326. > 在 2018年7月30日,上午10:12,lyt_yudi <lyt_y...@icloud.com> 写道: > > Hi, > > Here use two version’s qemu-guest-agent, it can’t set up password. > > 1. qemu-guest-agent: "version" : "2.8.0" > > # qm guest passwd 131 root > Enter new password: ********** > Retype new password: ********** > Use of inherited AUTOLOAD for non-method PVE::API2::Qemu::Agent::agent_cmd() > is deprecated at /usr/share/perl5/PVE/API2/Qemu/Agent.pm line 255. > Can't locate object method "map_method_by_name" via package "131" (perhaps > you forgot to load "131"?) at /usr/share/perl5/PVE/RESTHandler.pm line 326. > > 2. qemu-guest-agent: "version" : "2.11.1" > > # qm guest passwd 123 root > Enter new password: ********** > Retype new password: ********** > Use of inherited AUTOLOAD for non-method PVE::API2::Qemu::Agent::agent_cmd() > is deprecated at /usr/share/perl5/PVE/API2/Qemu/Agent.pm line 255. > Can't locate object method "map_method_by_name" via package "123" (perhaps > you forgot to load "123"?) at /usr/share/perl5/PVE/RESTHandler.pm line 326. > > Are there any related examples? > > Did anyone succeed? > > Thanks! > > > _______________________________________________ > pve-user mailing list > pve-user@pve.proxmox.com > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user _______________________________________________ pve-user mailing list pve-user@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user