-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·28 lines (24 loc) · 961 Bytes
/
run.sh
File metadata and controls
executable file
·28 lines (24 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
./qemu/build/qemu-system-x86_64 \
-smp 4 \
-m 32G \
-overcommit mem-lock=on \
-vcpu vcpunum=0,affinity=2 \
-vcpu vcpunum=1,affinity=4 \
-vcpu vcpunum=2,affinity=6 \
-vcpu vcpunum=3,affinity=8 \
-object memory-backend-ram,size=32G,policy=bind,host-nodes=0,id=ram-node0 \
-numa node,nodeid=0,cpus=0-3,memdev=ram-node0 \
-drive file=rootfs/smartvm.qcow2,id=disk,if=virtio \
-enable-kvm \
-netdev user,id=net0,hostfwd=tcp::22222-:22 \
-device virtio-net-pci,netdev=net0 \
-D qemu.log \
-nographic
# -append "systemd.unified_cgroup_hierarchy=0 console=ttyS0 root=/dev/vda1 rw earlyprintk=serial,ttyS0"
# -kernel linux/arch/x86/boot/bzImage \
# -append "root=/dev/sda2 console=ttyS0" \
# -device virtio-memsplit-pci \
# -device virtio-numa-migrate-pci \
# -object memory-backend-ram,size=2G,policy=bind,host-nodes=1,id=ram-node1 \
# -numa node,nodeid=1,memdev=ram-node1 \