FreeBSD Bugzilla – Attachment 190195 Details for
Bug 225558
[bhyve][patch] Add option to specify emulated NIC in vmrun.sh
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for share/examples/bhyve/vmrun.sh
vmrun.sh.diff (text/plain), 1.78 KB, created by
Johannes Lundberg
on 2018-01-30 12:09:36 UTC
(
hide
)
Description:
patch for share/examples/bhyve/vmrun.sh
Filename:
MIME Type:
Creator:
Johannes Lundberg
Created:
2018-01-30 12:09:36 UTC
Size:
1.78 KB
patch
obsolete
>diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh >index d1176f217c9..2ef8d80fbc1 100755 >--- a/share/examples/bhyve/vmrun.sh >+++ b/share/examples/bhyve/vmrun.sh >@@ -37,7 +37,7 @@ DEFAULT_MEMSIZE=512M > DEFAULT_CPUS=2 > DEFAULT_TAPDEV=tap0 > DEFAULT_CONSOLE=stdio >- >+DEFAULT_NIC=virtio-net > DEFAULT_VIRTIO_DISK="./diskdev" > DEFAULT_ISOFILE="./release.iso" > >@@ -71,6 +71,7 @@ usage() { > echo " -I: Installation CDROM image location (default is ${DEFAULT_ISOFILE})" > echo " -l: the OS loader to use (default is /boot/userboot.so)" > echo " -L: IP address for UEFI GOP VNC server (default: 127.0.0.1)" >+ echo " -n: ethernet adapter (default is ${DEFAULT_NIC})" > echo " -m: memory size (default is ${DEFAULT_MEMSIZE})" > echo " -p: pass-through a host PCI device at bus/slot/func (e.g. 10/0/0)" > echo " -P: UEFI GOP VNC port (default: 5900)" >@@ -100,6 +101,7 @@ isofile=${DEFAULT_ISOFILE} > memsize=${DEFAULT_MEMSIZE} > console=${DEFAULT_CONSOLE} > cpus=${DEFAULT_CPUS} >+nic=${DEFAULT_NIC} > tap_total=0 > disk_total=0 > disk_emulation="virtio-blk" >@@ -117,7 +119,7 @@ vncport=5900 > fbsize="w=1024,h=768" > tablet="" > >-while getopts aAc:C:d:e:Ef:F:g:hH:iI:l:m:p:P:t:Tuvw c ; do >+while getopts aAc:C:d:e:Ef:F:g:hH:iI:l:n:m:p:P:t:Tuvw c ; do > case $c in > a) > bhyverun_opt="${bhyverun_opt} -a" >@@ -168,6 +170,9 @@ while getopts aAc:C:d:e:Ef:F:g:hH:iI:l:m:p:P:t:Tuvw c ; do > L) > vnchost="${OPTARG}" > ;; >+ n) >+ nic=${OPTARG} >+ ;; > m) > memsize=${OPTARG} > ;; >@@ -313,7 +318,7 @@ while [ 1 ]; do > i=0 > while [ $i -lt $tap_total ] ; do > eval "tapname=\$tap_dev${i}" >- devargs="$devargs -s $nextslot:0,virtio-net,${tapname} " >+ devargs="$devargs -s $nextslot:0,${nic},${tapname} " > nextslot=$(($nextslot + 1)) > i=$(($i + 1)) > done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 225558
:
190195
|
190234