2026-11-15 15:16:46 -08:00
2023-06-24 19:12:21 -05:00
2023-06-24 19:12:21 -05:00
2023-06-24 19:12:21 -05:00
2023-06-24 19:12:21 -05:00
2023-06-24 19:12:21 -05:00
2023-06-24 19:12:21 -05:00
2023-06-24 19:12:21 -05:00

QEMUKit

Swift interface to QEMU, QMP, and QEMU guest agent.

Updating Interfaces

To update the generated sources to support a new release of QEMU, run:

$ ./generateQapi.sh /path/to/qemu

Where /path/to/qemu is a path to the QEMU source files.

Usage

import QEMUKit
import QEMUKitInternal

Task {
    let qemu = QEMUVirtualMachine()
    // set delegate to handle events
    await qemuVM.setDelegate(...)
    // start QEMU using a launcher and interface implementation
    try await qemuVM.start(launcher: system, interface: ioService)
    // run something from the monitor
    try await qemuVM.monitor?.continueBoot()
    // run something from guest agent
    try await qemuVM.guestAgent?.guestSetTime(NSDate.now.timeIntervalSince1970)
}

Note: You must link with glib-2.0

S
Description
Swift interface to QEMU, QMP, and QEMU guest agent.
Readme Apache-2.0
975 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 38.8%
C 32.1%
Objective-C 21.9%
Swift 7%
Shell 0.2%