You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
406 B
Bash
11 lines
406 B
Bash
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
arch=x86_64
|
|
kernel=/boot/vmlinuz-linux
|
|
initrd_dir="$1"
|
|
sockpath="$2"
|
|
shift 2
|
|
qemu-system-"$arch" -m 1G -nic tap,id=net0,ifname=tap-vm1,script=no,downscript=no -kernel "$kernel" -initrd "$initrd_dir/initrd.img" -chardev socket,id=sock0,path="$sockpath",mux=on,server=off -serial chardev:sock0 -mon chardev=sock0,mode=readline -daemonize -display none -append console=ttyS0,115200n1 "$@"
|