blob: 651ffe646419a7fcc63bb0ecd152a5d3ae90c55d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
.POSIX:
VM=fedora
CPU=-smp 4
MEM=-m 4G
DISP=-display none
run:
@qemu-system-x86_64 -enable-kvm $(CPU) $(MEM) -drive\
file=$(VM).img,format=raw $$([ -z $(CDR) ]|| echo -cdrom $(CDR)\
-boot d) $$(echo -n "-net user"; for port in $(PORTS); do echo -n\
",hostfwd=tcp::$${port}-:$${port}"; done;) $(DISP) -net nic
|