~comcloudway/builds.sr.ht

8dd80d558697430a6bdc5c526f6814c216e8112a — Drew DeVault 5 years ago acd30ca
Use KVM with FreeBSD image
1 files changed, 7 insertions(+), 2 deletions(-)

M images/freebsd/functions
M images/freebsd/functions => images/freebsd/functions +7 -2
@@ 10,8 10,13 @@ boot() {
	fi
	qemu=qemu-system-x86_64
	#_boot $(cpu_opts x86_64)
	# -cpu host doesn't work on AMD, kvm is not supported on freebsd
	_boot -cpu qemu64
	# -cpu host doesn't work on AMD
	if [ "$(uname -m)" = "$1" ] && [ -e /dev/kvm ]
	then
		_boot -cpu qemu64 -enable-kvm
	else
		_boot -cpu qemu64
	fi
}

install() {