core: better logging for caps
guests/linux: properly quote and insert public key