free_zed.gitlab.io/content/using-qemu-as-kvm.md

2.0 KiB
Raw Permalink Blame History

Title: Using QEMU as KVM Date: 2021-09-14 22:59 Summary: Using KVM to run a Debian Live on SYS dedicated server Category: Bloc-notes Tags: debian, ovh, admin, shell, cli, vm, qemu Status: Published Slug: using-qemu-as-kvm

So 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  :