[pve-devel] [PATCH 1/6] vm_deviceplug|unplug : implement pending change

Dietmar Maurer dietmar at proxmox.com
Tue Nov 18 12:40:19 CET 2014


> >>if (vm_deviceplug(...)) {
> >>$conf->{$deviceid} = $optvalue;
> >>delete $conf->{pending}->{$deviceid};
> >>PVE::QemuServer::update_config_nolock($vmid, $conf, 1); }
> 
> >>(we can also make an extra sub for that)
> 
> 
> So, Yes, we can do like this.
> 
> I'll make a patch

I also get this error :

# qm set 100 -tablet 1
update VM 100: -tablet 1
VM 100 qmp command 'device_add' failed - Duplicate ID 'tablet' for device

Does that work for you?


More information about the pve-devel mailing list