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

Check if kvm is supported before passing in flags requiring it #20

Closed grembo closed 2 years ago

grembo commented 2 years ago

Completely untested

Fixes #17

grembo commented 2 years ago

@click0 Can you test this on your atom machine? (and potentially on a machine that should support kvm/hw virtualization?)

click0 commented 2 years ago

@click0 Can you test this on your atom machine? (and potentially on a machine that should support kvm/hw virtualization?)

There is no way to restart the machine, it is in operation mode. From the recovery action log in risk mode, there is a qemu startup line:

/tmp/qemu-system-x86_64 -net nic -net user,hostfwd=tcp::3389-:3389,hostfwd=tcp::1022-:1022 -m 2600M -localtime -M pc -smp 3 -vga std -usbdevice tablet -k en-us -hda /dev/sda -boot once=d -vnc :1 &

grembo commented 2 years ago

@bretton So I guess we'll just test if this works for machines that have hw virtualization, and if it does, commit it (as it won't make things worse in this case). We definitely need a file to track tested configurations within the repo (outside of issues, but supported by issues).

grembo commented 2 years ago

@click0 Thanks for you valuable feedback (not just on this issue)

bretton commented 2 years ago

test works with with default options and key. login works fine.

script shows output of kvm-ok before starting qemu