This is what I always do:

; pkg_add qemu
; pkg_add tigervnc
; fetch https://cdimage.debian.org/debian-cd/current
/amd64/iso-cd/debian-13.1.0-amd64-netinst.iso
; dd if=/dev/zero of=debian13.img bs=1M count=16000
; qemu-system-x86_64 -m 1024 -smp cpus=1,cores=1 \
        -drive format=raw,file=debian13.img     \
        -cdrom debian-13.1.0-amd64-netinst.iso -boot d \
        -device virtio-net-pci,netdev=network0 \
        -netdev user,id=network0,hostfwd=tcp::2001-:22 \
        -serial telnet:localhost:4321,server,nowait     \
        -display vnc=:1


And, in a second terminal:

; vncviewer :1

Or later

; ssh -p 2001 root@localhost





> Joseph A Borg <[email protected]> hat am 17.10.2025 10:45 CEST geschrieben:
> 
>  
> good day all,
> 
> I’m trying to set up a linux vm but I’m stuck on console. Tried Alpine and 
> debian.
> 
> By the looks of it, booting over console is flakey and I’m getting a lot a 
> feeling that it’s not well supported. It’s a great academic exercise but I 
> also need it to work reliably. My best case was to have a vm running some 
> software I cannot install in OpenBSD in lieu of having a machine solely for 
> that purpose. The vm will mostly be accessed through ssh and run as needed.
> 
> Is this a reliable strategy? I’m interested in learning how vm works but I 
> also need that a linux flavour works reliably. Preferably debian. Any 
> suggestions?
> 
> regards

Reply via email to