This commit is contained in:
Valeria Fadeeva 2023-10-03 23:17:07 +05:00
parent ebaeb5c4a2
commit ae780ac84a
2 changed files with 5 additions and 1 deletions

3
03_create_hdd_disk.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
qemu-img create -f qcow2 melawy.img 50G

View File

@ -9,7 +9,8 @@ cp -av -- '/usr/share/edk2-ovmf/x64/OVMF_VARS.fd' "./out/"
qemu-system-x86_64 \
-boot order=d,menu=on,reboot-timeout=5000 \
-cdrom ./out/melawy-linux-2023.10.03-x86_64.iso \
-cdrom ./out/$(ls -1 | grep "\.iso" | tail -n 1) \
-drive file=melawy.img,index=0,media=disk,format=qcow2 \
-smbios type=0,uefi=on \
-smp cpus=$virt_cpu \
-m "size=3072,slots=0,maxmem=$((3072*1024*1024))" \