← 返回命令列表

Linux command

kvm 命令

文件

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Check KVM support

lscpu | grep Virtualization

Run VM with QEMU/KVM

qemu-system-x86_64 -enable-kvm -m [2048] -hda [disk.qcow2]

Check if KVM is enabled

ls /dev/kvm

List running VMs (libvirt)

virsh list --all

说明

KVM (Kernel-based Virtual Machine) is a Linux kernel virtualization module. It turns Linux into a hypervisor, allowing it to run multiple virtual machines with near-native performance. KVM requires hardware virtualization support (Intel VT-x or AMD-V). It's typically used with QEMU for device emulation and optionally with libvirt for management.

FAQ

What is the kvm command used for?

KVM (Kernel-based Virtual Machine) is a Linux kernel virtualization module. It turns Linux into a hypervisor, allowing it to run multiple virtual machines with near-native performance. KVM requires hardware virtualization support (Intel VT-x or AMD-V). It's typically used with QEMU for device emulation and optionally with libvirt for management.

How do I run a basic kvm example?

Run `lscpu | grep Virtualization` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more kvm examples?

This page includes 4 examples for kvm, plus related commands for nearby Linux tasks.