Qemu

Qemu

  • 创建 aarch64 虚拟机
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    qemu-img create -f raw disk.img 8G #创建系统磁盘镜像
    qemu-img create -f raw varstore.img 64M #创建 varstore
    qemu-system-aarch64.exe -m 2g -M virt -cpu cortex-a710 \
    -drive file=QEMU_EFI.img,if=pflash,format=raw,readonly=on \
    -drive file=varstore.img,format=raw,if=pflash \
    -drive file=disk.img,format=raw,if=virtio \
    -drive file=<installer.iso>,format=raw \
    -netdev type=user,id=net0,hostfwd=[tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestportRedirect \
    -device virtio-net-device,netdev=net0 \
    -nograph \
    -serial stdio