Proporciona Fedora CoreOS en AppleHV

Esta guía muestra como mantener las instancias de Fedora CoreOS (FCOS) nuevas en macOS utilizando vfkit.

Prerrequisitos

Antes de aprovisionar una máquina FCOS, debes tener un archivo de configuración Ignition que contenga sus personalizaciones. Si no tienes uno consulta Producción de un Archivo Ignition.

También necesitarás compilar o adquirir vfkit. Los binarios precompilados también están disponibles en tu página liberaciones. Vfkit, al igual que QEMU, ofrece muchas opciones que quedan fuera del alcance de este ejemplo de aprovisionamiento. Te recomendamos leer tu documentation.

Instalar por medio de Homebrew

vfkit is available as a Homebrew package:

brew install vfkit

Instalar por medio de MacPorts

vfkit is available as a MacPorts package:

sudo port install vfkit

Arrancar una MV nueva en macOS

Esta sección muestra como arrancar una MV con cfkit. Vfkit se conoce para funcionar con ambos Macs basadas ambas en Intel y Apple Silicon.

Obtener la imagen de AppleHV

Fetch the latest image suitable for your target stream (or download and verify it from the web). Remember to download the appropriate image based on the architecture of your Mac. Once downloaded, you will also need to decompress the image.

Configurar una MV nueva

Vfkit is not a stateful virtual machine framework. You simply need to run the vfkit binary to start a virtual machine. The following command line will launch a VM with:

  • 2 virtual CPUs

  • 2 GB of memory

  • a network device that will receive a IP address from Vfit

  • a GUI console with keyboard and mouse support

Launching FCOS with Vfkit
IGNITION_CONFIG="/path/to/example.ign"
IMAGE="/path/to/image.raw"

vfkit --cpus 2 --memory 2048 \
  --bootloader efi,variable-store=efi-variable-store,create \
  --device virtio-blk,path=${IMAGE} \
  --device virtio-net,nat \
  --ignition ${IGNITION_CONFIG} \
  --device virtio-input,keyboard \
  --device virtio-input,pointing \
  --device virtio-gpu,width=800,height=600 \
  --gui

Note: The AppleHV hypervisor does not allow you to see early boot and kernel messages. While you will see a GRUB boot menu, you will not see anything until later in the boot.

Explorar el SO

Vfkit GUI

When FCOS is completed booting, you will see the IP address of the VM displayed in the GUI window. Vfkit will lease an address in the 192.168.64.0/24 network. At this point, you can either choose to login or SSH to the VM. Unlike some other virtualization providers, you can SSH to the virtual machine from the host.

ssh core@192.168.64.5