TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.56k stars 244 forks source link

OpenBSD fails to boot on bhyve on AMD hardware #927

Open akole opened 4 years ago

akole commented 4 years ago

When booting bhyve branded VM with OpenBSD 6.6 install iso the process fails with:

{"log":"vm exit[0]\n\treason\t\tSVM\n\trip\t\t0x00000000fffee1ec\n\tinst_length\t0\n\texitcode\t","stream":"stderr","time":"2020-04-23T17:27:36.533033000Z"}

SmartOS platform is joyent_20200408T231825Z Server is a Proliant DL385 G6 with dual AMD Opterons

sjorge commented 4 years ago

Have you tried adding vmadm update UUID bhyve_extra_opts="-w" it's needed on intel too to not make OpenBSD trip bhyve by accessing unsupported MSRs

akole commented 4 years ago

Have you tried adding vmadm update UUID bhyve_extra_opts="-w" it's needed on intel too to not make OpenBSD trip bhyve by accessing unsupported MSRs

Yes, I set these in the spec json and both seem to be there when checking vmadm info: "bootrom": "uefi", "bhyve_extra_opts": "-w"

sjorge commented 4 years ago

Ack, should work then... so it's probably a SVM vs VMX thing.

akole commented 4 years ago

Ack, should work then... so it's probably a SVM vs VMX thing.

Anything I can do to help debug this issue?

FreeBSD host with NetBSD VM also seemed to have similar issues few years back if it's any help: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203643

despair86 commented 3 years ago

oh hell i posted more info in https://github.com/joyent/illumos-joyent/issues/248

despair86 commented 3 years ago

@akole this should be fixed in the latest platform image, got to a normal multi-user boot with multiple vcpus configured