Change Windows to put 8 ahci devices on one controller by default

This allows adding disks without pushing network devices onto higher
slots, causing Windows to see it as a new interface.
This commit is contained in:
Matt Churchyard
2018-08-22 09:03:36 +01:00
parent d2763d307a
commit c4a40bff1f
3 changed files with 3 additions and 2 deletions

View File

@@ -411,7 +411,7 @@ vm::bhyve_device_disks(){
[ ${VERSION_BSD} -ge 1101000 ] || \
[ ${VERSION_BSD} -ge 1004000 ]; then
if [ -n "${_ahci_multi}" ]; then
if [ -n "${_ahci_multi}" ]; then
# see if it's numeric
echo "${_ahci_multi}" | egrep -iqs '^[0-9]+$'

View File

@@ -122,7 +122,7 @@ util::restart_service(){
# show version
#
util::version(){
echo "vm-bhyve: Bhyve virtual machine management v${VERSION} (build ${VERSION_INT})"
echo "vm-bhyve: Bhyve virtual machine management v${VERSION} (rev. ${VERSION_INT})"
}
# show version & usage information

View File

@@ -3,6 +3,7 @@ graphics="yes"
xhci_mouse="yes"
cpu=2
memory=2G
ahci_device_limit="8"
network0_type="e1000"
network0_switch="public"
disk0_type="ahci-hd"