Lines Matching +full:qemu +full:- +full:user +full:- +full:static

7 VMTARGETS=	vm-image
19 VHD_DESC= Azure, VirtualPC, Hyper-V, Xen disk image
21 QCOW2_DESC= Qemu, KVM disk image
25 BASIC-CI \
26 BASIC-CLOUDINIT \
34 BASIC-CI_FORMAT= raw
35 BASIC-CI_FSLIST?= ufs
36 BASIC-CI_DESC= Image for CI
37 BASIC-CLOUDINIT_FORMAT= raw qcow2
38 BASIC-CLOUDINIT_FSLIST?= ufs zfs
39 BASIC-CLOUDINIT_DESC?= Images for VM with cloudinit disk config support
42 EC2_FLAVOURS?= BASE CLOUD-INIT SMALL
43 EC2-BASE_DESC= Amazon EC2 image
44 EC2-CLOUD-INIT_DESC= Amazon EC2 Cloud-Init image
45 EC2-SMALL_DESC= Amazon EC2 small image
58 VAGRANT-VIRTUALBOX_DESC= Vagrant Image for VirtualBox
59 VAGRANT-VMWARE_DESC= Vagrant Image for VMWare
64 CLOUDWARE_GEN+= ${_CWT}-${_CWF}
65 ${_CWT}-${_CWF}_FORMAT?= ${${_CWT}_FORMAT}
66 ${_CWT}-${_CWF}_FSLIST?= ${${_CWT}_FSLIST}
67 ${_CWT}-${_CWF}_DESC?= ${${_CWT}_DESC}
81 emulator-portinstall:
82 .if !exists(/usr/local/bin/qemu-${TARGET_ARCH}-static)
83 .if exists(${PORTSDIR}/emulators/qemu-user-static/Makefile)
84 env - UNAME_r=${UNAME_r} PATH=$$PATH \
85 make -C ${PORTSDIR}/emulators/qemu-user-static \
89 .if !exists(/usr/local/sbin/pkg-static)
90 env ASSUME_ALWAYS_YES=yes pkg bootstrap -y
92 env ASSUME_ALWAYS_YES=yes pkg install -y emulators/qemu-user-static
99 QEMUSTATIC=/usr/local/bin/qemu-${TARGET_ARCH}-static
100 QEMUTGT=emulator-portinstall
112 CLOUDTARGETS+= cw-${_CW:tl}-${_FS}-${_FMT}
113 CLEANDIRS+= cw-${_CW:tl}-${_FS}-${_FMT}
119 cw-${_CW:tl}-${_FS}-${_FMT}: ${QEMUTGT}
120 mkdir -p ${.OBJDIR}/${.TARGET}
123 ${.CURDIR}/scripts/mk-vmimage.sh \
124 -C ${.CURDIR}/tools/vmimage.subr -d ${.OBJDIR}/${.TARGET} -F ${_FS} \
125 -i ${.OBJDIR}/${_CW:tl}.${_FS}.${_FMT}.img -s ${VMSIZE} -f ${_FMT} \
126 -S ${WORLDDIR} -o ${.OBJDIR}/${${_CW:tu}${_FS:tu}${_FMT:tu}IMAGE} -c ${${_CW:tu}CONF}
131 # Hardlinks from "foo.${FMT}" to "foo-${VMFS}.${FMT}". These can go away once
135 CLOUDTARGETS+= cw-${_CW:tl}-${_FMT}
138 cw-${_CW:tl}-${_FMT}: cw-${_CW:tl}-${VMFS}-${_FMT}
139 ln -f ${${_CW:tu}${VMFS:tu}${_FMT:tu}IMAGE} ${${_CW:tu}${_FMT:tu}IMAGE}
145 cw-${_CW:tl}-${_FS}: cw-${_CW:tl}-${_FS}-${${_CW:tu}_FORMAT:[1]}
148 cw-${_CW:tl}: cw-${_CW:tl}-${${_CW:tu}_FORMAT:[1]}
153 CLEANFILES+= vm-image
156 CLEANDIRS+= vm-image-${FORMAT}-${FS}
163 vm-base: vm-image
165 vm-image: ${QEMUTGT}
169 mkdir -p ${.OBJDIR}/${.TARGET}-${FORMAT}-${FS}
172 ${.CURDIR}/scripts/mk-vmimage.sh \
173 -C ${.CURDIR}/tools/vmimage.subr \
174 -d ${.OBJDIR}/${.TARGET}-${FORMAT}-${FS} -F ${FS} \
175 -i ${.OBJDIR}/${FORMAT}.${FS}.img -s ${VMSIZE} -f ${FORMAT} \
176 -S ${WORLDDIR} -o ${.OBJDIR}/${VMBASE}.${FS}.${FORMAT}
182 vm-cloudware: ${CLOUDTARGETS}
184 list-vmtargets: list-cloudware
191 list-cloudware:
200 vm-install:
202 mkdir -p ${DESTDIR}/vmimages
205 cp -p ${VMBASE}.${FS}.${FORMAT} \
206 ${DESTDIR}/vmimages/${OSRELEASE}-${FS}.${FORMAT}
213 ${XZ_CMD} ${DESTDIR}/vmimages/${OSRELEASE}-${FS}.${FORMAT}
223 cloud-install-BASIC-CI:
224 mkdir -p ${DESTDIR}/ciimages
225 .for _FS in ${BASIC-CI_FSLIST}
226 . for _FMT in ${BASIC-CI_FORMAT}
227 cp -p ${.OBJDIR}/${BASIC-CI${_FS:tu}${_FMT:tu}IMAGE} \
228 ${DESTDIR}/ciimages/${OSRELEASE}-BASIC-CI-${_FS}.${_FMT}
229 ${XZ_CMD} ${DESTDIR}/ciimages/${OSRELEASE}-BASIC-CI-${_FS}.${_FMT}
237 cloud-install-BASIC-CLOUDINIT:
238 mkdir -p ${DESTDIR}/vmimages
239 .for _FS in ${BASIC-CLOUDINIT_FSLIST}
240 . for _FMT in ${BASIC-CLOUDINIT_FORMAT}
241 cp -p ${.OBJDIR}/${BASIC-CLOUDINIT${_FS:tu}${_FMT:tu}IMAGE} \
242 ${DESTDIR}/vmimages/${OSRELEASE}-BASIC-CLOUDINIT-${_FS}.${_FMT}
243 ${XZ_CMD} ${DESTDIR}/vmimages/${OSRELEASE}-BASIC-CLOUDINIT-${_FS}.${_FMT}
254 . if target(cloud-install-${_CW})
255 CLOUD_INSTALL_TGTS+= cloud-install-${_CW}
259 cloud-install: ${CLOUD_INSTALL_TGTS}
262 vm-release: ${VMTARGETS}
264 vm-release:
268 cloudware-release: ${CLOUDTARGETS}
270 cloudware-release: