-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I used CDI to do it. But there are some problems.
- the Dockerfile is:
FROM ubuntu:jammy AS rootfs
RUN apt-get update -y && \
apt-get install -y --no-install-recommends systemd-sysv udev lsb-release cloud-init sudo openssh-server && \
rm -rf /var/lib/apt/lists/*
- the vm.yaml:
apiVersion: virt.virtink.smartx.com/v1alpha1
kind: VirtualMachine
metadata:
name: test-vm
spec:
instance:
memory:
size: 4Gi
kernel:
image: smartxworks/virtink-kernel-5.15.12
cmdline: "console=ttyS0 root=/dev/vda rw"
disks:
- name: ubuntu
- name: cloud-init
interfaces:
- name: pod
volumes:
- name: ubuntu
persistentVolumeClaim:
claimName: rootfs-dv
#dataVolume:
# volumeName: ubuntu
- name: cloud-init
cloudInit:
userData: |-
#cloud-config
password: password
chpasswd: { expire: False }
ssh_pwauth: True
networks:
- name: pod
pod: {}
when I apply the vm.yaml,the pod is runinng, but it would quit or block later.
I try to solve the problem.
- use
kubectl logs -f vm-test-vm-xxx
:
it looks like successfuly, but the pod will quit later.
- use
kubectl describe vm test-vm
:
fengye87
Metadata
Metadata
Assignees
Labels
No labels