go-qemu
go-qemu copied to clipboard
Go packages to interact with QEMU using the QEMU Machine Protocol (QMP). Apache 2.0 Licensed.
Alas, there will be no one there for anyone to talk to, except themselves.
In addition to the existing unix sockets I think it would be possible to implement this for Unix as well, using `mkfifo` and a suitable Monitor
The version in master does not unwrap the inner type in type definitions when marshalling to JSON. This results in infinite recursion that eventually exhausts the stack. This PR fixes...
Using the example pattern of monitor.Connect() defer monitor.Disconnect() cmd := []byte(`{ "execute": "query-status" }`) raw, _ := monitor.Run(cmd) even after the Disconnect() has successfully completed and waiting for 10 seconds...
Using the example pattern of monitor.Connect() defer monitor.Disconnect() cmd := []byte({ "execute": "query-status" }) raw, _ := monitor.Run(cmd) even after the Disconnect() has successfully completed and waiting for 10 seconds...
When return is very long (more than 64KB), it will get an error: `bufio.Scanner: token too long` This is because `go-qemu/qmp/socket.go:160` uses a small default Buffer (bufio.scan.MaxScanTokenSize) while real world...
We have aws instance and kvm already installed, now question is we need to connect AWS instance connect remotely and access the kvm . create the machine from my local...
…losed Fixes #155
I have a program that connects directly to the qemu monitor, runs several commands, then closes the connection. After getting a goroutine stack of the program, there appears to be...
Attempting to marshal ChardevBackendSocket or similar structs results in a stack overflow. MarshalJSON() seems to be recursively called by nesting `s`. Am I missing something critical or is the generated...