4.4.1. QEMU#
4.4.1.1. Simulation#
- class simbricks.components.qemu.simulation.qemu.QemuSim(simulation: Simulation)#
- machine: str | None#
Optionally define the machine type. The above will be passed as ‘-machine q35’ to QEMU.
If set to None, no ‘-machine’ option is passed.
- accel: list[str]#
Define the virtualization accelerator. Each flag will be appended with a separate -accel parameter.
The above will become ‘-accel kvm -accel tcg’.
- resreq_cores() int#
Number of cores this simulator requires during execution.
This is used for scheduling multiple runs and experiments.
- resreq_mem() int#
Number of memory in MB this simulator requires during execution.
This is used for scheduling multiple runs and experiments.
- add(host_or_nic: Host | SimplePCIeNIC)#
- supported_image_formats() list[str]#
- toJSON() dict#
- classmethod fromJSON(simulation: Simulation, json_obj: dict) Self#
- async copy_disk_image(inst: Instantiation, disk_image: DiskImage, ident: str) str#
- checkpoint_commands() list[str]#
- cleanup_commands() list[str]#
- property extra_args: str#
- filter_components_by_pred(pred: ~typing.Callable[[~simbricks.orchestration.system.base.Component], bool], ty: type[~simbricks.orchestration.simulation.base.T] = <class 'simbricks.orchestration.system.base.Component'>) list[T]#
- filter_components_by_type(ty: type[T]) list[T]#
- full_name() str#
Full name of the simulator.
- get_interface_url(inst: Instantiation, intf: Interface) str#
- get_parameters_url(inst: Instantiation, socket: Socket, channel: Channel | None = None, sync: bool | None = None, latency: int | None = None, sync_period: int | None = None) str#
- id() int#
- async prepare(inst: Instantiation)#
- sockets_cleanup(inst: Instantiation) list[Socket]#
- sockets_wait(inst: Instantiation) list[Socket]#
- start_delay() int#
- supports_checkpointing() bool#
- property wait_terminate: bool#
- run_cmd(inst: Instantiation) str#
Command to execute this simulator.