Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
chengcui:install_freebsd13_vm_via_bhyve [2023/11/07 20:39] – chengcuichengcui:install_freebsd13_vm_via_bhyve [2023/11/07 21:15] (current) – chengcui
Line 31: Line 31:
 if_bridge_load="YES" if_bridge_load="YES"
 if_tap_load="YES" if_tap_load="YES"
-pptdevs="2/0/0"                   // the passthru pci device +# the passthru pci device 
-hw.vmm.amdvi.enable="1"           // default AMD-Vi passthrough support is disabled+pptdevs="2/0/0" 
 +# default AMD-Vi passthrough support is disabled, enable it 
 +hw.vmm.amdvi.enable="1"
 </code> </code>
  
Line 81: Line 83:
 disk0_name="disk0" disk0_name="disk0"
 disk0_dev="sparse-zvol" disk0_dev="sparse-zvol"
- 
-# This gives the guest a virtual "optical" drive. Specifying disk1_dev=”custom”  
-# allows us to provide a full path to the ISO.  
- 
-disk1_type="ahci-cd"  
-disk1_dev="custom"  
-disk1_name="/zroot/bhyve/FreeBSD-13.2-RELEASE-amd64-disc1.iso" 
  
 # passing of host PCI devices to a virtual machine for its exclusive use of them # passing of host PCI devices to a virtual machine for its exclusive use of them
Line 110: Line 105:
  
 <code> <code>
-Use the ''vm console'' command to access the VM and finish the installation process.+Use the "vm console" command to access the VM and finish the installation process.
 cc@n1:~ % sudo vm console n1_iwl_vm cc@n1:~ % sudo vm console n1_iwl_vm
 +...
 +</code>
 +
 +==== snapshot ====
 +
 +<code>
 +cc@n1:/zroot/bhyve % sudo vm snapshot n1_iwl_vm@snapshot1              // create a snapshot of n1_iwl_vm
 +cc@n1:/zroot/bhyve % sudo vm rollback n1_iwl_vm@snapshot1              // restore to the snapshot of n1_iwl_vm
 </code> </code>
  
  • chengcui/install_freebsd13_vm_via_bhyve.1699389597.txt.gz
  • Last modified: 2023/11/07 20:39
  • by chengcui