Using QEMU as KVM
dans Bloc-notesSo You Start dedicated servers did not provide free KVM to run a random OS iso.
Let's try with QEMU
running an iso uploaded locally.
In rescue mode, download a live iso locally, install and run QEMU
:
apt update && apt upgrade
apt install qemu-system-x86 vim
wget --no-check-certificate -O /tmp/installer.iso https://cdimage.debian.org/mirror/cdimage/release/current-live/amd64/iso-hybrid/debian-live-11.1.0-amd64-standard.iso
qemu-system-x86_64 -net nic -net user,hostfwd=tcp::80-:80,hostfwd=tcp::443-:443 -m 4096M -localtime -enable-kvm -hda /dev/sda -vnc 0.0.0.0:0 /tmp/installer.iso -boot d
Refs & sources :
- How to create Virtual KVM on Kimsufi / OVH / SoYouStart by Rinaldo Jonathan (30/5/2019)
- Booting a Debian Live ISO on QEMU, my question on serverfault.com (23/9/2021)
- QEMU full virtualization – CPU emulations (enable/disable CPU flags/instruction sets) by neoX (3/4/2018)
- How to SSH from host to guest using QEMU? by jobin on unix.stackexchanqe.com (14/4/2014)
- KVM: Which CPU features make VMs run better? by PythonLearner on serverfault.com (2/7/12)