Giter Site home page Giter Site logo

enckse / vfu Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 158 KB

simple virtualization utility for macOS written in swift and using the virtualization framework

License: GNU General Public License v3.0

Makefile 3.83% Swift 96.17%
virtual-machine vm virtualization-framework

vfu's Introduction

vfu

vfu is a swift re-implementation of vftool (in swift!) with a set of changes that make it a bit different to run. The baseline functionality of vftool remains the basis for the current state at this time. The main goal is to take what vftool is and provide the ability to run/configure simple Linux-based VMs via JSON definitions.

build

Build

to get vfu working:

  • clone the repository
  • make

Usage

There is a small set of example JSON configurations in the examples/ directory

CLI

To validate a configuration without starting the VM

vfu --config <config file> --verify

To start the VM

vfu --config <config file>

GUI

There is a simple GUI variant of the same vfu code that can be built and used via make targets (and then make install or manually copying the output release files to /Applications). This functionality allows for attaching an actual virtio graphics setup to a VM configuration. When started it will open a dialog box to select a configuration JSON file and the GUI will close when VM stops.

Changes

While there is quite a bit of divergence from vftool, the major changes are really:

  • instead of CLI arguments for all parameters, a JSON configuration file is passed via the --config flag (pass --verify to check the configuration without running the VM)
  • bridged networking functionality is removed
  • shared directory support (including readonly) via virtio is added
  • one (or more) static MACs can be attached
  • no tty/pty options, there are serial options (raw, full, none)
  • use '~/' to refer to a location starting with the user's home

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.