|
| 1 | + <h1><span>bhyve virtual machine create via dialog menu</span></h1> |
| 2 | + |
| 3 | + <h2><a name="jcreate_cmd">Commands: bcreate, bconstruct-tui</a></h2> |
| 4 | + <div class="block"> |
| 5 | + <pre class="brush:bash;ruler=true;"> |
| 6 | + % cbsd bconstruct-tui |
| 7 | + % cbsd bcreate jconf=/path/to/conf.jconf |
| 8 | + </pre> |
| 9 | + </div> |
| 10 | + <div class="block"> |
| 11 | + <strong>Description:</strong> |
| 12 | + <p>The virtual machine is created on a pre-formed configuration file through <strong>cbsd bcreate jconf=path_to_cfg</strong>.</p> |
| 13 | + <p>For the configuration process, you can use the script <strong>cbsd bconstruct-tui</strong>, or use WEB interface.</p> |
| 14 | + <p>To create a via DIALOG:</p> |
| 15 | + <pre class="brush:bash;ruler=true;"> |
| 16 | + % cbsd bconstruct-tui |
| 17 | + </pre> |
| 18 | + <p>The same menu is available to create a jail when configuring <strong>CBSD</strong> via bsdconfig</p> |
| 19 | + <p class="text-center"><img src="/img/cbsd_syntax3.png" alt="" /></p> |
| 20 | + <p>If <strong>bconstruct-tui</strong> worked correctly, at the end you will be asked to create a virtual machine. In the case of positive response, <strong>bcreate</strong> will be made to the new configuration automatically. Otherwise, script displays the path to the configuration file (in <em>$workdir/tmp</em>), on which you can create a VM.</p> |
| 21 | + </div> |
| 22 | + <div class="block"> |
| 23 | + <p>Options and their brief description, which appear in the dialogue form. Depending on the type and profile of the OS, some of them may not be available:</p> |
| 24 | + <ul> |
| 25 | + <li>vm_os_type - type of OS. Depending on the type of the guest OS will be offered a particular profile set distributions</li> |
| 26 | + <li>vm_os_profile - select the profile distribution. A profile can contain as proposed default parameters described below, as well as specific distro settings (URL for the image, kernel boot options, etc.)</li> |
| 27 | + <li>imgsize - Size for the first virtual image. If the guest OS - FreeBSD profile and FreeBSD-from-jail (image generation through jail2iso), this parameter indicates the amount of free space after copying distribution</li> |
| 28 | + <li>jname - the name of the virtual machine, in a one word.</li> |
| 29 | + <li>host_hostname - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: set the hostname in /etc/rc.conf guest OS to the appropriate value</li> |
| 30 | + <li>vm_ram - allocated RAM</li> |
| 31 | + <li>vm_cpus - the number of virtual cores</li> |
| 32 | + <li>vm_hostbridge - guest OS host bridge. Maybe hostbridge or amd_hostbridge (affects the PCI vendor ID)</li> |
| 33 | + <li>astart - sign automatically start the virtual machine with the boot node</li> |
| 34 | + <li>interface - uplink interface for tap-interface, the first network card of the virtual machine</li> |
| 35 | + <li>pkglist - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: select the appropriate pekedzhi to be pre-installed in the created VM</li> |
| 36 | + <li>ip4_addr - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: set the ifconfig_NIC /etc/rc.conf in the guest OS to the appropriate value - can be an IP address or a 'DHCP'</li> |
| 37 | + <li>gw4 - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: install defaultrouter parameter /etc/rc.conf guest OS to the appropriate value</li> |
| 38 | + <li>ver - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: use the base and kernel of the specified version (for example 10.1, 11.0, 12)</li> |
| 39 | + <li>applytpl - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: whether to apply additional settings (/etc/hosts, /etc/make.conf)</li> |
| 40 | + <li>floatresolv - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: set /etc/resolv.conf servers listed in the parameter jnameserver</li> |
| 41 | + <li>arch - relevant only to the guest OS FreeBSD and Profile FreeBSD-from-jail: use the base and kernel of this architecture (eg i386, amd64)</li> |
| 42 | + </ul> |
| 43 | + |
0 commit comments