User Tools

Site Tools


freebsd:bhyve

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
freebsd:bhyve [2017/01/01 21:51]
tschulz [rc.conf]
freebsd:bhyve [2018/09/18 22:19]
tschulz [run.sh]
Line 98: Line 98:
 ==== run.sh ==== ==== run.sh ====
   * The following script loads the kernel, starts the VM, and kills the VM after a ACPI shutdown   * The following script loads the kernel, starts the VM, and kills the VM after a ACPI shutdown
 +
 +==== Linux Version ====
 <file bash> <file bash>
 #!/bin/sh #!/bin/sh
Line 113: Line 115:
 bhyvectl --destroy --vm=${VMNAME} bhyvectl --destroy --vm=${VMNAME}
 </​file>​ </​file>​
 +
 +==== FreeBSD Version ====
 +<file bash>
 +#!/bin/sh
 +
 +CONSOLE="​-l com1,​stdio"​
 +VMNAME="​bsd_emby"​
 +DISKIMAGE="​-s 3:​0,​virtio-blk,​./​emby.img"​
 +RAM="​1024M"​
 +CPUS="​4"​
 +TAPDEV="​tap1"​
 +NETWORK="​-s 2:​0,​virtio-net,​${TAPDEV}"​
 +
 +cd /​vol4/​byhve/​bsd_emby
 +#grub-bhyve -m device.map -r hd0,msdos1 -M ${RAM} ${VMNAME}
 +bhyveload -m 1024M -d ./​emby.img ​ ${VMNAME}
 +bhyve  -A -H -P -s 0:​0,​hostbridge -s 1:0,lpc ${NETWORK} ${DISKIMAGE} ${CONSOLE}
 +bhyvectl --destroy --vm=${VMNAME}
 +</​file>​
 +
  
freebsd/bhyve.txt · Last modified: 2018/09/18 22:21 by tschulz