From 8789922ba68cb1320dddb403a379b13705a9503a Mon Sep 17 00:00:00 2001 From: Artur Gurgul1 Date: Sun, 10 Aug 2025 20:12:10 +0200 Subject: [PATCH] save --- bin/vm | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/bin/vm b/bin/vm index ed29799..e69de29 100755 --- a/bin/vm +++ b/bin/vm @@ -1,27 +0,0 @@ - -# mount -t 9p -o trans=virtio,version=9p2000.L share /home/user - -# this add to brake and inspect /dev if /dev/sda1 not found -# -append "root=/dev/sda1 console=ttyS0 rd.break" - -function run { - qemu-system-x86_64 -append "root=/dev/sda1 console=ttyS0 rd.break" \ - -kernel "vmlinuz-linux" \ - -initrd "initramfs-linux.img" \ - -m 2048 \ - -smp $(sysctl -n hw.logicalcpu) \ - -cpu qemu64 \ - -virtfs local,path=.,security_model=none,mount_tag=share \ - -drive id=root-disk,if=none,format=raw,file=linux.img \ - -device ide-hd,bus=ide.0,drive=root-disk \ - -drive id=data-disk,if=none,format=qcow2,file=dat.qcow2 \ - -device ide-hd,bus=ide.1,drive=data-disk \ - -nographic -} - - -function reset { - qemu-img create -f qcow2 dat.qcow2 32G -} - -$1