Skip to content

Updating golang and adding viriotfs#316

Merged
richardcase merged 4 commits intomainfrom
updating-go-and-adding-viritofs
Feb 10, 2025
Merged

Updating golang and adding viriotfs#316
richardcase merged 4 commits intomainfrom
updating-go-and-adding-viritofs

Conversation

@steve-fraser
Copy link
Member

@steve-fraser steve-fraser commented Feb 7, 2025

What this PR does / why we need it:
Updated Golang and the package core to the new repo.

Adds VirtioFS Support

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
#311

Tests:
Tested the running pod

# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
kind: Pod
metadata:
  annotations:
    cni.projectcalico.org/containerID: aec8094f01934feae0cd7093b7d6911a7cbabab3bd7035d915b00204f08f427f
    cni.projectcalico.org/podIP: 10.244.96.253/32
    cni.projectcalico.org/podIPs: 10.244.96.253/32
  creationTimestamp: "2025-02-07T21:04:15Z"
  generateName: capmvm-controller-manager-7d54fc6766-
  labels:
    cluster.x-k8s.io/provider: infrastructure-mvm
    control-plane: controller-manager
    pod-template-hash: 7d54fc6766
  name: capmvm-controller-manager-7d54fc6766-gdj86
  namespace: capmvm-system
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: capmvm-controller-manager-7d54fc6766
    uid: 07941911-c73c-45bf-8d7a-d639d85a24b8
  resourceVersion: "80109795"
  uid: fdf8a016-b075-4945-8ba8-f5e3ac94cc33
spec:
  affinity:
    nodeAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - preference:
          matchExpressions:
          - key: node-role.kubernetes.io/control-plane
            operator: Exists
        weight: 10
      - preference:
          matchExpressions:
          - key: node-role.kubernetes.io/master
            operator: Exists
        weight: 10
  containers:
  - args:
    - --leader-elect
    - --microvmcluster-concurrency=5
    - --microvmmachine-concurrency=5
    command:
    - /manager
    image: ghcr.io/liquidmetal-dev/cluster-api-provider-microvm:dev
    imagePullPolicy: IfNotPresent
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /healthz
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
kind: MicrovmMachine
metadata:
  annotations:
    cluster.x-k8s.io/cloned-from-groupkind: MicrovmMachineTemplate.infrastructure.cluster.x-k8s.io
    cluster.x-k8s.io/cloned-from-name: home-cluster-ch
  creationTimestamp: "2025-02-07T21:27:43Z"
  finalizers:
  - microvmmachine.infrastructure.cluster.x-k8s.io
  generation: 2
  labels:
    cluster.x-k8s.io/cluster-name: home-cluster
    cluster.x-k8s.io/deployment-name: home-cluster-ch
    cluster.x-k8s.io/set-name: home-cluster-ch-n8982
    machine-template-hash: 250383297-n8982
  name: home-cluster-ch-msfvf
  namespace: default
  ownerReferences:
  - apiVersion: cluster.x-k8s.io/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: Machine
    name: home-cluster-ch-n8982-pzdct
    uid: 8be9b0d1-87ae-4a92-9dce-b78494b798c2
  resourceVersion: "80123715"
  uid: 10107544-a82f-403a-8179-7a3e382e8e2f
spec:
  kernel:
    filename: boot/vmlinux.bin
    image: ghcr.io/liquidmetal-dev/cloudhypervisor-kernel-bin:5.12
  kernelCmdline: {}
  memoryMb: 32768
  networkInterfaces:
  - guestDeviceName: eth1
    type: macvtap
  provider: cloudhypervisor
  providerID: microvm://tower-01.stevefraser.dev:9090/01JKH54Z3YSC0KFSKZW8NM5TP6
  rootVolume:
    id: root
    image: ghcr.io/steve-fraser/capmvm-k8s-os-ch:1.30.4
    readOnly: false
  vcpu: 16
  volumes:
  - id: user
    readOnly: false
    virtiofsPath: /mnt/user
status:
  conditions:
  - lastTransitionTime: "2025-02-07T21:31:14Z"
    status: "True"
    type: Ready
  - lastTransitionTime: "2025-02-07T21:31:14Z"
    status: "True"
    type: MicrovmReady
  ready: true
  vmState: running

root@tower-01:/var/lib/flintlock/vm/default/home-cluster-ch-msfvf/01JKH54Z3YSC0KFSKZW8NM5TP6# ls
cloud-init.img       cloudhypervisor.pid    cloudhypervisor.stderr  virtiofs.pid    virtiofs.stderr
cloudhypervisor.log  cloudhypervisor.sock=  cloudhypervisor.stdout  virtiofs.sock=  virtiofs.stdout

Signed-off-by: Steve Fraser <steve@cast.ai>
Signed-off-by: Steve Fraser <steve@cast.ai>
@steve-fraser steve-fraser added the kind/feature New feature or request label Feb 7, 2025
Signed-off-by: Steve Fraser <steve@cast.ai>
@steve-fraser steve-fraser marked this pull request as ready for review February 7, 2025 21:37
@richardcase richardcase merged commit d9d14c3 into main Feb 10, 2025
7 checks passed
@richardcase richardcase deleted the updating-go-and-adding-viritofs branch February 10, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants