Proporciona Fedora CoreOS en AppleHV

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

Pre-requisitos

Antes de aprovisionar una máquina FCOS, usted debe tener un archivo de configuración Ignition que contenga sus personalizaciones. Si no tiene uno vea Produciendo un Archivo Ignition.

You will also need to build or acquire vfkit. Prebuilt binaries are also available from its releases page. Vfkit, like QEMU, has many options which are outside the scope of this provisioning example. Please consider reading their documentation.

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.

Setting up a new VM

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.qcow2"

./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