|
Lines 56-62
setup_passt() {
Link Here
|
| 56 |
context_run_bg qemu 'qemu-system-$(uname -m)' \ |
56 |
context_run_bg qemu 'qemu-system-$(uname -m)' \ |
| 57 |
' -machine accel=kvm' \ |
57 |
' -machine accel=kvm' \ |
| 58 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
58 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
| 59 |
' -kernel ' "/boot/vmlinuz-$(uname -r)" \ |
59 |
' -kernel ' "/home/sbrivio/nf/arch/x86/boot/bzImage" \ |
| 60 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
60 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
| 61 |
' -nodefaults' \ |
61 |
' -nodefaults' \ |
| 62 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |
62 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |
|
Lines 152-158
setup_passt_in_ns() {
Link Here
|
| 152 |
' -machine accel=kvm' \ |
152 |
' -machine accel=kvm' \ |
| 153 |
' -M accel=kvm:tcg' \ |
153 |
' -M accel=kvm:tcg' \ |
| 154 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
154 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
| 155 |
' -kernel ' "/boot/vmlinuz-$(uname -r)" \ |
155 |
' -kernel ' "/home/sbrivio/nf/arch/x86/boot/bzImage" \ |
| 156 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
156 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
| 157 |
' -nodefaults' \ |
157 |
' -nodefaults' \ |
| 158 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |
158 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |
|
Lines 223-229
setup_two_guests() {
Link Here
|
| 223 |
context_run_bg qemu_1 'qemu-system-$(uname -m)' \ |
223 |
context_run_bg qemu_1 'qemu-system-$(uname -m)' \ |
| 224 |
' -M accel=kvm:tcg' \ |
224 |
' -M accel=kvm:tcg' \ |
| 225 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
225 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
| 226 |
' -kernel ' "/boot/vmlinuz-$(uname -r)" \ |
226 |
' -kernel ' "/home/sbrivio/nf/arch/x86/boot/bzImage" \ |
| 227 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
227 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
| 228 |
' -nodefaults' \ |
228 |
' -nodefaults' \ |
| 229 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |
229 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |
|
Lines 236-242
setup_two_guests() {
Link Here
|
| 236 |
context_run_bg qemu_2 'qemu-system-$(uname -m)' \ |
236 |
context_run_bg qemu_2 'qemu-system-$(uname -m)' \ |
| 237 |
' -M accel=kvm:tcg' \ |
237 |
' -M accel=kvm:tcg' \ |
| 238 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
238 |
' -m '${VMEM}' -cpu host -smp '${VCPUS} \ |
| 239 |
' -kernel ' "/boot/vmlinuz-$(uname -r)" \ |
239 |
' -kernel ' "/home/sbrivio/nf/arch/x86/boot/bzImage" \ |
| 240 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
240 |
' -initrd '${INITRAMFS}' -nographic -serial stdio' \ |
| 241 |
' -nodefaults' \ |
241 |
' -nodefaults' \ |
| 242 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |
242 |
' -append "console=ttyS0 mitigations=off apparmor=0" ' \ |