box.matto.nl
Enjoying Open Source Software

Manage remote vm-bhyve guests with OS X Mavericks VNC client

FreeBSD vm-bhyve is a great tool to create, install and manage virtual machines.

vm-bhyve is designed to work with ZFS, which makes it very easy to create new vm's, and make ZFS snapshots of those.

Virtual machines can either run with or without a graphical desktop. For machines running without a graphical desktop we use SSH.

The FreeBSD bhyve hypervisor provides VNC access to the virtual machines that boot with UEFI. Expose the VNC port to the network to allow for remote management.

Screenshot of the Screen Sharing application with a VNC connection to a Debian virtual machine running on the bhyve hypervisor

The Screen Sharing application with a VNC connection to a Debian virtual machine running on the bhyve hypervisor

VNC access with vm-bhyve

We add some lines to the template to allow for remote VNC access:

loader="uefi"
graphics="yes"
graphics_res="1024x760"
graphics_listen="192.168.123.4"
vnc_password="secret"
  • The first line sets UEFI as boot method.
  • Choose a fitting resolution and use that in the "graphics_res" line,
  • Set the listen address to allow remote access to the ip address of the bhyve server.
  • Set a password for connecting to the virtual machine from a VNC client.

Start the virtual machine. The default VNC port is 5900. When another virtual machine is started, port 5901 will be assigned to it, and so on.

OS X Mavericks VNC client

There is no need to install additional software, OS X Mavericks has a build-in VNC client.

Open the Finder, choose "Go -> Connect to server" in the menu and enter "vnc://192.168.123.4:5900" (where "192.168.123.4" is the ip address of the bhyve server). This prompts for the password ("secret" in our example above).

The "Screen sharing" applications opens with a VNC connection to the bhyve client.

Tags:

⇽ Joined the netizen club webring


Made with ♥ by a human — no cookies, no trackers.
Proud member of the 250kb.club, the no-JS.club, the Blogroll.Club, and the Bukmark.Club.
Don’t let a billionaire’s algorithm control what you read — use an RSS feed reader.


netizen-ring-button
<<- random ->>