All Projects → chilcote → Vfuse

chilcote / Vfuse

Convert bootable DMG images for use in VMware Fusion

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Vfuse

vcenter-event-broker-appliance
The VMware Event Broker Appliance Fling enables customers to unlock the hidden potential of events in their SDDC to easily create event-driven automation.
Stars: ✭ 120 (-69.39%)
Mutual labels:  vmware
GNU-bash-mac-installer
Downloads and builds a Mac package installer for GNU bash 5
Stars: ✭ 17 (-95.66%)
Mutual labels:  macadmin
Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (-22.7%)
Mutual labels:  vmware
pre-commit-macadmin
Pre-commit hooks for Mac admins.
Stars: ✭ 43 (-89.03%)
Mutual labels:  macadmin
packer-templates
Packer templates for creating Amazon EC2 images, Proxmox templates and Vagrant boxes
Stars: ✭ 70 (-82.14%)
Mutual labels:  vmware
plainvm
plainvm allows you to control multiple virtual machines which are distributed among many hosts through your browser.
Stars: ✭ 37 (-90.56%)
Mutual labels:  vmware
grafana
Grafana dashboard for Veeam solutions
Stars: ✭ 31 (-92.09%)
Mutual labels:  vmware
Munkiadmin
macOS app for managing Munki repositories
Stars: ✭ 310 (-20.92%)
Mutual labels:  macadmin
vmware.vmware rest
Ansible Collection for VMWare (REST modules)
Stars: ✭ 60 (-84.69%)
Mutual labels:  vmware
Mech
Easy command line virtual machines for VMWare
Stars: ✭ 294 (-25%)
Mutual labels:  vmware
SelfPortal
One for all virtualization abstraction layer.
Stars: ✭ 22 (-94.39%)
Mutual labels:  vmware
sudoers manager
A standalone Python script to help administrators manage their sudoers file.
Stars: ✭ 28 (-92.86%)
Mutual labels:  macadmin
Vmware Usb Osx
Easily create a bootable USB installer for VMware ESXi / vSphere Hypervisor
Stars: ✭ 286 (-27.04%)
Mutual labels:  vmware
packer-ubuntu
No description or website provided.
Stars: ✭ 29 (-92.6%)
Mutual labels:  vmware
Rbvmomi
Ruby interface to the VMware vSphere API.
Stars: ✭ 304 (-22.45%)
Mutual labels:  vmware
meetings
Sharing of content from Automation User Group meetings etc.
Stars: ✭ 16 (-95.92%)
Mutual labels:  vmware
Project-Mendacius
A GUI based virtualisation tool for running Linux on macOS Big Sur (x86 or arm64)
Stars: ✭ 107 (-72.7%)
Mutual labels:  vmware
Bento
Packer templates for building minimal Vagrant baseboxes for multiple platforms
Stars: ✭ 3,779 (+864.03%)
Mutual labels:  vmware
Splashbuddy
Onboarding splash screen for Jamf Pro. Improves DEP provisioning for macOS.
Stars: ✭ 309 (-21.17%)
Mutual labels:  macadmin
Vagrant Boxes
baseboxes build with packer.io for use with vagrant
Stars: ✭ 291 (-25.77%)
Mutual labels:  vmware

vfuse

This script takes a never-booted DMG and converts it to a VMware Fusion VM.

The germ of this idea came about, as all good ideas, and germs, do: while drinking beer. Specifically, I was tossing back drinks and tossing around ideas with Gilbert Wilson, and he mentioned that he uses the VMware CLI tools to convert DMGs to VMDKs based on a blog post he'd read. Intrigued, I asked Gil to email me the specifics. After seeing how potentially cool this was, I wrapped it up in this here terribly illegible, queasingly unpythonic script.

Note: Big Sur guests are not supported. Because Apple has changed the anatomy of the installer application, AutoDMG most likely won't be able to create a never-booted DMG for Big Sur. And since that is a dependency for vfuse, we are currently out of luck.

Note: Version 3.0 requires python3. If you wish to continue using vfuse with Apple's system python2, you should use the vfuse 2.2.6 release. However, at some point in the not-too-distant future, Apple is going to remove python completely from macOS, and you'll need to roll your own python3 to be able to use vfuse.

Options for installing python3:

  1. Install the pkg downloaded directly from python.org.
  2. Install Apple's CL Tools (either by downloading the pkg from Apple's developer site, or by invoking the shim at /usr/bin/python3).
  3. Build your own copy of python (E.g. Greg Neagle's relocatable python tools). You'll need to ensure that this custom python is the default python in your $PATH.

Requirements

  • VMware Fusion 11.5.1 Professional or above
  • OS X 10.15+
  • Python 3+
  • A never-booted image created with AutoDMG.
  • (optional) Packer 1.1.1 (or above) for building a vagrant box.
  • (optional) qemu-img

Usage

usage: vfuse [-h] [--version] [-i INPUT] [-o OUTPUT] [-n NAME] [-w HW_VERSION]
             [-m MEM_SIZE] [-s [SERIAL]] [-t TEMPLATE] [-e]
             [--disk_type DISK_TYPE] [-p PACKER] [-d D] [--hw-model HW_MODEL]
             [--board-id BOARD_ID] [--use-qemu [USE_QEMU]] [--recovery]
             [--snapshot] [--snapshot-name SNAPSHOT_NAME] [-c CHECKSUM]
             [--list-templates] [--list-cache] [--clear-cache]

Create VM from source DMG.

optional arguments:
-h, --help            show this help message and exit
--version             show the version number
-i INPUT, --input INPUT
                        /path/to/dmg
-o OUTPUT, --output OUTPUT
                        /path/to/output/dir
-n NAME, --name NAME  Use a custom name
-w HW_VERSION, --hw-version HW_VERSION
                        VMware hardware version
-m MEM_SIZE, --mem-size MEM_SIZE
                        Memory Size in MB
-s [SERIAL], --serial [SERIAL]
                        Custom Serial number
-t TEMPLATE, --template TEMPLATE
                        Use a template
-e, --esx             Create pre-allocated ESX-type VMDK
-p PACKER, --packer PACKER
                        Populate a packer template
-d D                  Path to CD/DVD ISO path
--hw-model HW_MODEL   Custom hardware model
--board-id BOARD_ID   Custom hardware board id
--use-qemu [USE_QEMU]
                        Use qemu-img intead of the Fusion CLI tools [/path/to
                        /qemu-img]
--recovery            Boot into Recovery HD
--snapshot            Create initial snapshot
--snapshot-name SNAPSHOT_NAME
                        Custom name for the initial snapshot
-c CHECKSUM, --checksum CHECKSUM
                        Generate checksum of a DMG
--list-templates      Return list of available templates
--list-cache          Return list of cached disk images
--clear-cache         Clear cached disk images

Creating a VM

Running vfuse does not necessarily require sudo rights, but if you don't want to be prompted in the GUI for an admin password, run it with sudo. (Escalated privileges is required to run the vmware-vdiskmanager binary, which vfuse uses.)

The only required argument is -i aka --input. Run thusly, it will create a vm called macos-vm.vmwarevm in the current working directory:

/usr/local/vfuse/bin/vfuse -i /path/to/dmg

See the wiki for more on how to use vfuse.

Caveats

vfuse is meant to be used with never-booted disk images created with AutoDMG. Using vfuse with a dmg created with Disk Utility is not something that has been tested, so you're on your own there. Likely, it's even more of a longshot with APFS.

License

Copyright 2016-Present Joseph Chilcote

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].