Re: [kubevirt-dev] CentOS-based KubeVirt Images

139 views
Skip to first unread message

Alexander Wels

unread,
Sep 24, 2021, 1:51:25 PM9/24/21
to Kyle, kubevirt-dev
CDI which is part of the kubevirt umbrella can import those images no problem. We support qcow2 with gz and xz compression as well as raw with gz and xz compressions. You can create a DataVolume like this to import directly from an http source for example:

apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
 name: centos7-image
 namespace: default
spec:
 pvc:
   accessModes:
     - ReadWriteOnce
   resources:
     requests:
       storage: 16Gi
 source:
   http:
     url: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2.xz

I picked the could image that was compressed that appears to be the latest centos 7. Once the DV is completed you should be able to use it as the source of a disk in a VM.


On Fri, Sep 24, 2021 at 12:26 PM Kyle <kyle-...@outlook.com> wrote:
Hello All,

I was wondering if there was a good way to import a CentOS-based image into a KubeVirt machine/pod. I've attempted to import from the CentOS Cloud images URL a couple of times now but it seems as if their images are structured differently compared to Fedora.  I am new to KubeVirt so any pointers would be appreciated!

Kyle
P.S. I am aware of the CentOS 7/8 EOL, but as of right now I need to use CentOS 7 for reasons.

--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/0a7d555c-1c96-4b9c-aeeb-50dbe30fb8den%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages