Difference between revisions of "Install Ubuntu Linux 20.04 LTS in vm-bhyve"

From Aram's Wiki
Jump to: navigation, search
(Introduction)
Line 9: Line 9:
  
 
[[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 -t linux-zvol -i bionic-server-cloudimg-amd64.img -C -k ~aram/.ssh/id_rsa.pub ubuntu
 +
 +
Change the number of CPUs and amount of physical memory in /vm/ubuntu/ubuntu.conf
 +
 +
vi /vm/ubuntu/ubuntu.conf
 +
 +
== Start the VM ==
 +
 +
vm start ubuntu
 +
 +
== Log-in ==
 +
 +
Determine the IP and log-in:
 +
 +
ssh ubuntu@192.168.0.27
 +
 +
Sadly doesn't have any way of querying the IP, you need to search the DHCP logs or use ARP.

Revision as of 15:01, 19 November 2019


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 -t linux-zvol -i bionic-server-cloudimg-amd64.img -C -k ~aram/.ssh/id_rsa.pub ubuntu

Change the number of CPUs and amount of physical memory in /vm/ubuntu/ubuntu.conf

vi /vm/ubuntu/ubuntu.conf

Start the VM

vm start ubuntu

Log-in

Determine the IP and log-in:

ssh ubuntu@192.168.0.27

Sadly doesn't have any way of querying the IP, you need to search the DHCP logs or use ARP.