save
This commit is contained in:
parent
54d4dfcb33
commit
605cfd38f9
8 changed files with 130 additions and 6 deletions
49
bin/vm-cmd
Executable file
49
bin/vm-cmd
Executable file
|
|
@ -0,0 +1,49 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# brew install qemu swtpm
|
||||
|
||||
# qemu-system-aarch64 -drive if=pflash,format=raw,unit=0,readonly=on,file=/Volumes/Cache/vms/image/win11-arm64/win11/code.fd -drive if=pflash,format=raw,unit=1,file=/Volumes/Cache/vms/image/win11-arm64/win11/vars.fd -display cocoa -device qemu-xhci,id=xhci -device usb-kbd -device usb-tablet -device virtio-keyboard-device -device virtio-mouse-device -device virtio-gpu -device virtio-net,netdev=n0 -netdev user,id=n0 -accel hvf -machine virt -cpu max -m 16384 -smp 6 -name FirstVM -boot order=d -drive file=/Volumes/Cache/vms/image/win11-arm64/win11/root.img,if=virtio,cache=writeback,format=raw,id=nvme0 -drive id=cd,format=raw,file=/Volumes/Cache/downloads/win11arm64.iso,media=cdrom -device usb-storage,drive=cd,bootindex=1 -device ramfb -chardev socket,id=chrtpm,path=/Users/agurgul/Downloads/tpm/tpm.sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-device,tpmdev=tpm0
|
||||
# vm setup win11 --tpm --cdrom /Volumes/Cache/downloads/win11arm64.iso
|
||||
|
||||
|
||||
# qemu-system-aarch64 -drive if=pflash,format=raw,unit=0,readonly=on,file=/Volumes/Cache/vms/image/win11-arm64/win11/code.fd -drive if=pflash,format=raw,unit=1,file=/Volumes/Cache/vms/image/win11-arm64/win11/vars.fd -display cocoa -device qemu-xhci,id=xhci -device usb-kbd -device usb-tablet -device virtio-keyboard-device -device virtio-mouse-device -device virtio-gpu -device virtio-net,netdev=n0 -netdev user,id=n0 -accel hvf -machine virt -cpu max -m 16384 -smp 6 -name FirstVM -boot order=d -drive file=/Volumes/Cache/vms/image/win11-arm64/win11/root.img,if=virtio,cache=writeback,format=raw,id=nvme0 -drive id=cd,format=raw,file=/Volumes/Cache/downloads/win11arm64.iso,media=cdrom -device usb-storage,drive=cd,bootindex=1 -device ramfb -chardev socket,id=chrtpm,path=/Users/agurgul/Downloads/tpm/tpm.sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-device,tpmdev=tpm0
|
||||
|
||||
# -netdev user,id=net0,hostfwd=tcp::33890-:3389,hostfwd=tcp::59850-:5985 \
|
||||
# -machine virt,accel=hvf,highmem=off \
|
||||
|
||||
|
||||
# -device virtio-keyboard-pci \
|
||||
# -device virtio-tablet-pci \
|
||||
|
||||
|
||||
qemu-system-aarch64 \
|
||||
-boot order=d \
|
||||
-machine virt,accel=hvf \
|
||||
-cpu host -smp 6 -m 8G \
|
||||
-drive if=pflash,format=raw,file=/Volumes/Cache/vms/image/win11-arm64/win11/code.fd,readonly=on \
|
||||
-drive if=pflash,format=raw,file=/Volumes/Cache/vms/image/win11-arm64/win11/vars.fd \
|
||||
-drive file=/Volumes/Cache/vms/image/win11-arm64/win11/root.img,if=none,format=raw,id=drv0 \
|
||||
-device ich9-ahci,id=ahci0 \
|
||||
-device nvme,drive=drv0,serial=nvme0 \
|
||||
-device virtio-scsi-pci,id=scsi0 \
|
||||
-drive file=/Volumes/Cache/downloads/win11arm64.iso,if=none,media=cdrom,id=cd0 \
|
||||
-device scsi-cd,drive=cd0,bus=scsi0.0,bootindex=1 \
|
||||
-device ramfb \
|
||||
-device qemu-xhci,id=xhci \
|
||||
-device usb-kbd,bus=xhci.0,port=1 \
|
||||
-device usb-tablet,bus=xhci.0,port=2 \
|
||||
-netdev user,id=net0,hostfwd=tcp::33890-:3389 \
|
||||
-device virtio-net-pci,netdev=net0 \
|
||||
-chardev socket,id=chrtpm,path=/Users/artur/Downloads/tpm/tpm.sock \
|
||||
-tpmdev emulator,id=tpm0,chardev=chrtpm \
|
||||
-device tpm-tis-device,tpmdev=tpm0
|
||||
|
||||
|
||||
# in Shell
|
||||
# FS0:
|
||||
# cd EFI\BOOT
|
||||
# BOOTAA64.EFI
|
||||
|
||||
|
||||
# Disk driver: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/
|
||||
# Used: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.271-1/
|
||||
Loading…
Add table
Add a link
Reference in a new issue