From 3019c547e8c294c023c09408e176e06133531596 Mon Sep 17 00:00:00 2001 From: gbaconni Date: Tue, 25 Jan 2022 12:45:40 +0100 Subject: [PATCH] 2022-01-25 12:45:40 --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b9b4474..7f16d6b 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2021/11/02 17:47:57 by gbaconni #+# #+# # -# Updated: 2022/01/25 12:20:26 by gbaconni ### ########.fr # +# Updated: 2022/01/25 12:45:23 by gbaconni ### lausanne.ch # # # # **************************************************************************** # @@ -26,7 +26,7 @@ FT = $(shell if test -L ~/goinfre; then echo "yes"; else echo "no"; fi) QEMU86 = qemu-system-x86_64 ifeq ($(KERNEL),Linux) ifeq ($(MACHINE),x86_64) - QEMU86 = kvm + QEMU86 = /usr/bin/qemu-system-x86_64 endif endif @@ -80,6 +80,9 @@ endif qemu: ifeq ($(KERNEL),Linux) @which qemu-system-x86_64 >/dev/null 2>&1 || sudo apt-get install -qq -y qemu-utils qemu-system-x86 qemu-system-arm qemu-efi-aarch64 ovmf ipxe-qemu expect +ifeq ($(MACHINE),x86_64) + sudo setcap -q 'cap_net_bind_service=+ep' /usr/bin/qemu-system-x86_64 +endif endif ifeq ($(KERNEL),Darwin) ifeq ($(FT),yes)