Add preliminary support for Xen Virtual Appliance (xva) images.

This commit is contained in:
Albert Hopkins 2011-06-23 09:09:41 -04:00
parent d86cb09e04
commit 40330d8858
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@ HOSTNAME = $(APPLIANCE)
RAW_IMAGE = $(HOSTNAME).img RAW_IMAGE = $(HOSTNAME).img
QCOW_IMAGE = $(HOSTNAME).qcow QCOW_IMAGE = $(HOSTNAME).qcow
VMDK_IMAGE = $(HOSTNAME).vmdk VMDK_IMAGE = $(HOSTNAME).vmdk
XVA_IMAGE = $(HOSTNAME).xva
STAGE4_TARBALL = stage4/$(HOSTNAME)-stage4.tar.bz2 STAGE4_TARBALL = stage4/$(HOSTNAME)-stage4.tar.bz2
KERNEL_CONFIG = kernel.config KERNEL_CONFIG = kernel.config
VIRTIO = NO VIRTIO = NO
@ -300,6 +301,12 @@ $(QCOW_IMAGE): $(RAW_IMAGE) image
qcow: $(QCOW_IMAGE) qcow: $(QCOW_IMAGE)
$(XVA_IMAGE): $(RAW_IMAGE) image
xva.py --disk=$(RAW_IMAGE) --is-hvm --memory=256 --vcpus=1 --name=$(APPLIANCE) \
--filename=$(XVA_IMAGE)
xva: $(XVA_IMAGE)
$(VMDK_IMAGE): $(RAW_IMAGE) image $(VMDK_IMAGE): $(RAW_IMAGE) image
qemu-img convert -f raw -O vmdk $(RAW_IMAGE) $(VMDK_IMAGE) qemu-img convert -f raw -O vmdk $(RAW_IMAGE) $(VMDK_IMAGE)