blob: 3e0b8d6a8f301d6a93d2d3052d32482f68532c83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
.POSIX:
VM="fedora.img"
CPU=-smp 4
MEM=-m 4G
DISP=-display none
run:
@qemu-system-x86_64 -enable-kvm $(CPU) $(MEM) -drive\
file=$(VM),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
|