Difference between revisions of "Install Ubuntu Linux 20.04 LTS in vm-bhyve"
(Created page with "Category:Linux Category:FreeBSD == Introduction == We'll Install [https://ubuntu.com Ubuntu] Ubuntu in [https://github.com/churchers/vm-bhyve vm-bhyve]. == Prerequi...") |
(→Log-in) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
== Introduction == | == Introduction == | ||
− | We'll Install [https://ubuntu.com Ubuntu] | + | We'll Install [https://ubuntu.com Ubuntu] in [https://github.com/churchers/vm-bhyve vm-bhyve]. |
== Prerequisites == | == Prerequisites == | ||
[[Set up vm-bhyve in FreeBSD| Properly configured vm-bhyve running on FreeBSD]]. All commands below run as root. | [[Set up vm-bhyve in FreeBSD| Properly configured vm-bhyve running on FreeBSD]]. All commands below run as root. | ||
+ | |||
+ | == Fetch image == | ||
+ | |||
+ | Fetch the [https://cloud-init.io | Cloud Init] image: | ||
+ | |||
+ | vm img http://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img | ||
+ | |||
+ | == Create VM == | ||
+ | |||
+ | vm create -c 4 -m 8G -t linux-zvol -i bionic-server-cloudimg-amd64.img -C -k ~aram/.ssh/id_rsa.pub ubuntu | ||
+ | |||
+ | Adjust the number of CPUs and memory to taste. | ||
+ | |||
+ | == Start the VM == | ||
+ | |||
+ | vm start ubuntu | ||
+ | |||
+ | == Log-in == | ||
+ | |||
+ | Determine the IP and log-in: | ||
+ | |||
+ | ssh ubuntu@192.168.0.27 | ||
+ | |||
+ | 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 <code>vm_list</code> in <code>/etc/rc.conf</code>. | ||
+ | |||
+ | vm_list="ubuntu vm1 vm2 ..." |
Revision as of 16:01, 19 November 2019
Contents
Introduction
We'll Install Ubuntu in vm-bhyve.
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/bionic/current/bionic-server-cloudimg-amd64.img
Create VM
vm create -c 4 -m 8G -t linux-zvol -i bionic-server-cloudimg-amd64.img -C -k ~aram/.ssh/id_rsa.pub ubuntu
Adjust the number of CPUs and memory to taste.
Start the VM
vm start ubuntu
Log-in
Determine the IP and log-in:
ssh ubuntu@192.168.0.27
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 ..."