easy-qemu provides a simplest way to launch a basic qemu guest on Linux systems instead of writing lengthy qemu commands. It supports simple qemu guests (launched from a disk image) or the guests launched from iscsi disks. It supports an easy way to launch a qemu using either no network, tap devices or vfio-pci devices. Further, it supports the following features:
- Launch qemu guest with various disk types.
- Pre-launch mode
- Qemu guest with vTPM support (and fips support)
- AMD SEV
- and many other basic features for the convenience.
sudo bash easy-qemu.sh -O <image.qcow2>
sudo bash easy-qemu.sh -O <image.qcow2> -n user
sudo bash easy-qemu.sh -O <image.qcow2> -n macvtap0
sudo bash easy-qemu.sh -O <image.qcow2> -b <pci bus id> -n vf
# pci bus id can be obtained using lspci
sudo bash easy-qemu.sh --iso <iso file> -O <image.qcow2>
sudo bash easy-qemu.sh --iso <iso file> --iscsi
sudo bash easy-qemu.sh --iso <iso file> --iscsi -l 9
sudo bash easy-qemu.sh -O <image.qcow2> --iscsi -l 9,2,3,4,5,6
sudo bash easy-qemu.sh --iscsi boot -l 9,2,3,4,5,6
# First lun in the array i.e. 9 in this example, is used as a boot disk.