-
Notifications
You must be signed in to change notification settings - Fork 1
Kubevirt + Ubuntu Testing #9
Comments
I updated the wiki about build section.(kubevirt-tdx doest not provide pre-built images) If mengmei wants to try the kubevirt-tdx, she can follow it. https://github.com/intel/kubevirt-tdx/wiki/0.-Getting-started if meet any problems, feel free to pin me. |
Thanks @LeiZhou-97
Looks like The yaml file I'm using is: ---
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
metadata:
labels:
special: vmi-ubuntu-td
name: vmi-ubuntu-td
spec:
domain:
launchSecurity:
tdx:
QGS: vsock:2:4050
clock:
timer:
hpet:
present: false
machine:
type: q35
cpu:
model: host-passthrough
sockets: 1
cores: 4
features:
acpi: {}
apic: {}
devices:
autoattachVSOCK: true
autoattachGraphicsDevice: false
disks:
- disk:
bus: virtio
name: containerdisk
firmware:
bootloader:
efi:
secureBoot: false
resources:
requests:
memory: 16Gi
terminationGracePeriodSeconds: 10
volumes:
- containerDisk:
image: localhost/guest-ubuntu-tdx:latest
name: containerdisk |
Hi @mengmeiye , Are you install the TDX host stack in advance ? |
@LeiZhou-97: Yes the TDX host stack has been installed. |
Do you try to launch the traditional TDVM successfully on bare-metal? The error log points the host stack is not installed. kvm is out-of-scope of kubevirt-tdx.
|
Oh I think the error is because |
No, it's qemu call the kvm to do the feature check and find tdx not supported by kvm. If qemu-kvm doesn't support tdx, it will tell you tdx is unrecognized. And I only provide the tdx-enabled qemu-kvm in the source, it's impossible to install a non-tdx qemu-kvm package.
Which host stack are you using? I guess it may be caused by the host stack is not aligning with the guest stack within the pod. |
This is the tdx stack I'm using: https://github.com/intel/tdx-tools/tree/2023ww15 |
Currently, the kubevirt-tdx only work with mid-stream stack. ubuntu: https://github.com/canonical/tdx/tree/mantic-23.10 centos: https://mirror.stream.centos.org/SIGs/9-stream/virt/x86_64/tdx-devel/ |
Has
kubevirt-tdx
been tested with Ubuntu-based K8 installation?cc: @mengmeiye
The text was updated successfully, but these errors were encountered: