Difference between revisions of "Install Ubuntu Linux 20.04 LTS in vm-bhyve"
(→Enable autostart) |
m (Aram moved page Install Ubuntu Linux 18.04 LTS in vm-bhyve to Install Ubuntu Linux 20.04 LTS in vm-bhyve) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
Fetch the [https://cloud-init.io | Cloud Init] image: | Fetch the [https://cloud-init.io | Cloud Init] image: | ||
− | vm img http://cloud-images.ubuntu.com/ | + | vm img http://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img |
== Create VM == | == Create VM == | ||
− | vm create -t linux-zvol -i | + | vm create -c 16 -m 32G -t linux-zvol -i focal-server-cloudimg-amd64.img -C -k ~aram/.ssh/id_rsa.pub ubuntu |
− | + | Adjust the number of CPUs and memory to taste. A maximum of 16 vCPUs is currently supported in bhyve. | |
− | |||
− | |||
== Start the VM == | == Start the VM == | ||
Line 32: | Line 30: | ||
Determine the IP and log-in: | Determine the IP and log-in: | ||
− | ssh ubuntu@192.168.0. | + | ssh ubuntu@192.168.0.19 |
− | Sadly doesn't have any way of querying the IP, you need to search the DHCP logs or use ARP. | + | Sadly vm-bhyve doesn't have any way of querying the IP, you need to search the DHCP logs or use ARP. |
Complete the installation by following the [[Ubuntu Linux Post Install Steps]]. | Complete the installation by following the [[Ubuntu Linux Post Install Steps]]. |
Latest revision as of 13:10, 28 July 2020
Contents
Introduction
Prerequisites
Properly configured vm-bhyve running on FreeBSD. All commands below run as root.
Fetch image
Fetch the | Cloud Init image:
vm img http://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
Create VM
vm create -c 16 -m 32G -t linux-zvol -i focal-server-cloudimg-amd64.img -C -k ~aram/.ssh/id_rsa.pub ubuntu
Adjust the number of CPUs and memory to taste. A maximum of 16 vCPUs is currently supported in bhyve.
Start the VM
vm start ubuntu
Log-in
Determine the IP and log-in:
ssh ubuntu@192.168.0.19
Sadly vm-bhyve doesn't have any way of querying the IP, you need to search the DHCP logs or use ARP.
Complete the installation by following the Ubuntu Linux Post Install Steps.
Enable autostart
Make sure the VM is listed in vm_list
in /etc/rc.conf
.
vm_list="ubuntu vm1 vm2 ..."