Skip to content

sandwichcloud/images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Images

Official Images to use on Sandwich Cloud

All images are built on GCE using Nested Virtualization, using packer with a qcow2 output, converted to vmdk then packed into a tarball with gzip compression.

Manual Usage

Install Requirements:

yum install epel-release
yum install qemu-system-x86 qemu-kvm qemu-img

Usage:

export IMAGE_DIR="centos/7"
export IMAGE_NAME=`echo $IMAGE_DIR | tr / -`
packer build -var "image_dir=$IMAGE_DIR" -var "image_name=$IMAGE_NAME" $IMAGE_DIR/packer.json
qemu-img convert -f qcow2 -O vmdk output/$IMAGE_NAME output/$IMAGE_NAME.vmdk
tar -cvzf output/$IMAGE_NAME.tar.gz -C output/ $IMAGE_NAME.vmdk