Use xterm.js console. It pastes like a charm.I am using spice but still clipboard doesn't work. KVM debian 8 - client ubuntu 16.04
Use xterm.js console. It pastes like a charm.I am using spice but still clipboard doesn't work. KVM debian 8 - client ubuntu 16.04
Looks like there's a patch: https://github.com/novnc/noVNC/issues/509I will test if you provide a patch...
Does that really need to be the case?it needs the spice agent installed in the vm
Does that really need to be the case?
novnc has clipboard support as this is a rfb (vnc) extension protocol. qemu also accepts that and receives the clipboard from vnc, but to actually get the clipboard inside the guest, the spice-agent must be installed
- A recent reply on noVNC github suggests it should be possible in Proxmox and the code describes a Clipboard button in several places
no also ascii only is impossible without a guest agent, as qemu then can only send keystrokes, and different keyboard layouts may not even have ascii equivalents...Non text characters handling requirement
The built in function should support minimal functionality ie only the basic 7 bit ascii character set text send. If an application needs more elaborate functionality (emojii, graphics, other data types / structures and other MIME types) then requiring a guest handler is reasonable. In contrast exclude all functionality when there is no guest agent is a poor compromise and massive feature creep from the original bugzilla OP in my opinion.
You confuse me. I also find the threads on this subject confusing as two completely different functions are mixed together.no also ascii only is impossible without a guest agent
no, i'll try to explain:I thought these worked in a VM without a guest agent. Essentially functioning as a soft-keyboard. Which could be extended by analogy to include the option mimic keyboard entry to
- Sent clipboard text (7 bit ascii)
... to enter text, you have to send keystrokes ... 'z' would produce different result on an english and a german keyboard ... it works for 'normal' vnc use though is because the browser can detect the keystroke you send it and forward it to the vm ...
if you just have text copied into a textfield, this keystroke information is not there, and there is no general mapping from text -> keystrokes
it uses scancodes:So keyboards don't use ascii coding, the key mapping is keyboard dependent. What a weird choice of standard.
actually that would be needed in qemu, which already exists, you can set a 'keyboard layout' in qemuSo noVNC would need a "Keyboard" setting to do the ascii to key code mapping reliably.
Some browsers expose keyboard layout information but unfortunately not all.
Interestingly the Windows Server, Hyper-V Manager, Virtual Machine Connection, does provide a Menu "Clipboard" -> "Type Clipboad text". But give the above I guess they are using the operating system keyboard layout information to do the key mapping.
So in summary to have a:
- Send/Type clipboard text -> Proxmox would need a keyboard setting
- General clipboard copy / paste -> each VM needs a guest agent
(async () => {
const text = prompt("Enter text to type:");
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const input = document.getElementById("noVNC_keyboardinput");
const keydown = (key) => input.dispatchEvent(new KeyboardEvent("keydown", { key }));
for (let i = 0; i < text.length; i++) { keydown(text[i]); await sleep(50); }
})();
Why don't you try to get your patch into upstream novnc? That's the way to go...If there is enough interest I could prepare a Chrome/FF addon so it's quicker to use