File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ SYSROOTSIZE=$(( SYSROOTSIZE * 1024 ))
40
40
SWAPSIZE=$(( SWAPSIZE * 1024 ))
41
41
# Network name
42
42
NETWORK=${NETWORK:- default}
43
+ # Pool name - determin the pool for vm disk the volume
44
+ MICROSHIFT_VOL_POOL=" ${MICROSHIFT_VOL_POOL:- default} "
45
+
43
46
44
47
KICKSTART_FILE=$( mktemp " /tmp/kickstart-${VMNAME} -XXXXX.ks" )
45
48
cat < " ${ROOTDIR} /config/kickstart.ks.template" | \
@@ -57,7 +60,7 @@ virt-install \
57
60
--name ${VMNAME} \
58
61
--vcpus ${NCPUS} \
59
62
--memory ${RAMSIZE} \
60
- --disk path=./${VMNAME} .qcow2,size=${DISKSIZE} \
63
+ --disk pool= ${MICROSHIFT_VOL_POOL} , path=./${VMNAME} .qcow2,size=${DISKSIZE} \
61
64
--network network=${NETWORK} ,model=virtio \
62
65
--events on_reboot=restart \
63
66
--location ${ISOFILE} \
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ function action_create {
90
90
export DISKSIZE=" ${DISKSIZE:- 100} "
91
91
export SWAPSIZE=" ${SWAPSIZE:- 8} "
92
92
export DATAVOLSIZE=" ${DATAVOLSIZE:- 2} "
93
+ export MICROSHIFT_VOL_POOL=" ${MICROSHIFT_VOL_POOL} "
93
94
if [ -z " ${ISOFILE} " ]; then
94
95
ISOFILE=" ${VMDISKDIR} /$( get_base_isofile " ${MICROSHIFT_RHEL_VERSION} " ) "
95
96
fi
You can’t perform that action at this time.
0 commit comments