diff options
| author | Yang Zhang <[email protected]> | 2023-07-26 17:20:04 +0800 |
|---|---|---|
| committer | Yang Zhang <[email protected]> | 2023-07-26 17:20:04 +0800 |
| commit | b46cd2b18e1d916023cc6a1c7d4effabf00b2d06 (patch) | |
| tree | dada17637006992a3f878781e910798f8a7c17c0 /script/run copy.sh | |
| parent | ba163ca89fa5cc34b12536d3f4b2b8692b6fff06 (diff) | |
init
Diffstat (limited to 'script/run copy.sh')
| -rw-r--r-- | script/run copy.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/script/run copy.sh b/script/run copy.sh new file mode 100644 index 0000000..bbb570d --- /dev/null +++ b/script/run copy.sh @@ -0,0 +1,15 @@ +#!/bin/bash +ubuntu=/home/zy/qemu_uintr/ubuntu-x86_64.cpio.gz +box=/home/zy/qemu_uintr/initramfs/initramfs-busybox-x86_64.cpio.gz +debian=/home/zy/qemu_uintr/debian.cpio.gz +PORT=2222 +QEMU=/home/zy/qemu_uintr/qemu/build/x86_64-softmmu/qemu-system-x86_64 +KERNEL=/home/zy/qemu_uintr/uintr-linux-kernel/build/arch/x86_64/boot/bzImage +$QEMU -smp 2 \ +-machine q35,kernel_irqchip=split \ +-m 2048M -nographic -cpu qemu64 \ +-kernel $KERNEL \ +-initrd $debian \ +-append "root=/dev/ram0 rw rootfstype=ext4 console=ttyS0 init=/linuxrc" \ +-net user,hostfwd=tcp::${PORT}-:22 -net nic,model=e1000e \ +-serial mon:stdio |
