drive file=/media/usb/images/nfig,if=virtio \Īnd inside the KVM (running Alpine Linux):Įcho '/dev/vda1 /media/vda1 vfat rw 0 0' > /etc/fstab Qemu-img create -f raw /media/usb/images/nfig 32M This works by mounting a persistent filesystem under /media and selecting it to store the apkovl and the apkcache.
Qemu -m 512 -cdrom alpine-3.2.0-x86_64.isoĪt boot prompt to avoid being forced into graphical mode and losing access. iso file without any need for a virtual HDD image or further configuration.
To just give Alpine Linux a try in diskless mode, qemu can be used to boot the. Qemu-system-x86_64 -m 512 -nic user -hda alpine.qcow2 Live mode
Tip: Remove option -enable-kvm if your hardware does not support this.įollow the setup-alpine installation steps.Īfter the installation, QEMU can be started from disk image ( -boot c) without CDROM.