depenguin-me / depenguin-run

Installer script for mfsBSD image to install FreeBSD 14.0 with zfs-on-root using qemu
MIT License
17 stars 7 forks source link

qemu won't run on servers that don't have virtualization support #17

Closed click0 closed 2 years ago

click0 commented 2 years ago

Subj. I have a server with an Intel Atom processor where there is no virtualization support.

Therefore, instead of the mandatory qemu options ( -enable-kvm -cpu host ), you need to check for virtualization support.

grembo commented 2 years ago

Do you have a spec for that server?

The easiest way to handle this short term is probably to provide a command line option, but pull requests to detect it automatically are welcome.

click0 commented 2 years ago

Do you have a spec for that server?

The easiest way to handle this short term is probably to provide a command line option, but pull requests to detect it automatically are welcome.

There is a kvm-ok script for this.

I found this CPU: hw.model: Intel(R) Atom(TM) CPU N2800 @ 1.86GHz

grembo commented 2 years ago

Ah, so assuming that kvm-ok is available by default, all that’s needed is

if kvm-ok; then
  qemu_args+=(-enable-kvm -cpu host)
fi

?