Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
linux-kernel, qemu, kernel-testing, cxl, numa, nvdimm, virtual-machines, mkosi ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
dnf install mkosiqemu-system-x86_64argbash to generate the argument parser lib (using parser_generator.m4)Finding an mkosi version compatible with your operating system version and particular test configuration can sometimes be challenging. First, try the version packaged with your operating system. This will indirectly install mkosi dependencies (which have surprisingly not changed that much across mkosi versions). If that OS-provided mkosi version does not work for you, check the long mkosi section below.
run_qemu.sh script into somewhere in your PATH
ln -s ~/git/run_qemu/run_qemu.sh ~/bin/run_qemu.shrun_qemu file into the default bash completions dirpkg-config --variable=completionsdir bash-completionRun this from the top level of a Linux kernel tree
run_qemu.sh --cxl --git-qemuThe script can/will:
mkosindctl), and other convenience operations such as
copying .ssh/*.pub keys for easy access, and your ~/.bashrc
etc.More detailed CLI help is available with run_qemu.sh --help
Once qemu starts, in nographic mode, the Linux console 'takes over' the terminal. To interact with it, the following are useful:
Ctrl-a c : switch between the qemu monitor prompt (qemu) and consoleCtrl-a x : kill qemu and exitmkosi creates a package cache in mkosi.cache/ If a cache is present,
it will always use only that, and never go over the network even if newer
packages are available. To force re-fetching everything, remove this
directory, or --rebuild=wipe which removes the builddir entirely.
Which qemu to use can be overridden from the environment:
qemu=/path/to/qemu/build/qemu-system-x86_64 ./run_qemu.sh [options]
List of variables that have overrides via env:
qemugdbdistrorevbuilddirndctlTo use the 'hostfwd' network, put this in your .ssh/config:
Host rq
Hostname localhost
User root
Port 10022
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
And then ssh rq. You may need to open port 10022 on any local firewalls.
Then, the dpipe and sshfs programs can be used to let the guest access
host files. For instance, as found in man sshfs:
dpipe /usr/lib/ssh/sftp-server = ssh rq sshfs :$HOME/CXL /root/CXL -o passive
"sshfs -o passive" uses stdin and stdout instead of the guest connecting back
to the host over the network.
If you don't have dpipe, try the slightly less efficient:
socat EXEC:/usr/lib/ssh/sftp-server SHELL:"'ssh rq sshfs :$HOME/CXL /root/CXL -o passive'"
Supposedly faster file sharing options like 9P or virtiofs exist too but
they require much more complex configuration. sshfs generally
works out of the box.
The root password for the guest VM is root by default but note many Linux
distributions restrict remote root access in various ways. The serial console
automatically logs in, and a password isn't required.
The script enables generating a sane QEMU commandline for instantiating a basic CXL topology. Since QEMU support for CXL isn't yet upstream, --git-qemu is additionally required. The CXL related options are:
--cxl: Enables a simple CXL topology with:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (pmem/run_qemu) — no native marketplace selected
npx claudepluginhub p/pmem-run-qemuPlugins from other owners that cover similar ground