Skip to content

intigration/qemu-linux-kvm

Repository files navigation

# Collect information and scripts for qemu arm64 environment ## Prerequisites - QEMU Binaries for Windows (64 bit) - https://qemu.weilnetz.de/w64/ - Environment for qemu-debootstrap (VM / WSL2) ## Create image for qemu Run the following scripts: ``` 0_setup_host.bash 1_create_debootstrap.bash 2_create_qcow2.bash 3_copy_to_host.bash 4_win_run_qemu.bash ``` Hints: - Openbox has no background image set, open terminal via right-click menu - Change resolution in 4_* script, video option: ``` -append "root=/dev/vda rw video=800x600" ` ``` - Connect via ssh: ``` ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 8022 arm@127.0.0.1 ``` ## Various information ### Install / Run EFI Image Choose /dev/vdb as cdrom ``` wget https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/debian-10.6.0-arm64-netinst.iso qemu-img create -f qcow2 debian.img 128G truncate -s 64m varstore.img truncate -s 64m efi.img dd if=/usr/share/qemu-efi-aarch64/QEMU_EFI.fd of=efi.img conv=notrunc qemu-system-aarch64 \ -M virt -m 2G -cpu max \ -drive if=pflash,format=raw,file=efi.img,readonly \ -drive if=pflash,format=raw,file=varstore.img \ -drive if=virtio,format=qcow2,file=debian.img \ -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng-pci,rng=rng0 \ -device virtio-net-pci,netdev=net0 \ -netdev user,id=net0,hostfwd=tcp::8022-:22 \ -device virtio-gpu-pci \ -drive if=virtio,format=raw,file=debian-10.6.0-arm64-netinst.iso ``` Win: -device virtio-gpu-pci -display gtk,show-cursor=on Linux: -device virtio-gpu-pci,virgl=on -display gtk,gl=on,show-cursor=on -device virtio-gpu-pci,virgl=on -display gtk,gl=es,show-cursor=on -device virtio-gpu-pci,virgl=on -display egl-headless,show-cursor=on ### Links - https://wiki.qemu.org/Documentation/Platforms/ARM - https://qemu.weilnetz.de/w64/ - https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/ - https://czak.pl/2020/04/09/three-levels-of-qemu-graphics.html - https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/ - https://ubuntu.com/blog/new-gpu-and-gui-features-announced-for-wsl-at-build - https://www.qemu.org/2017/11/22/haxm-usage-windows/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors