Skip to content

Commit e610e73

Browse files
committed
Updates autounattend floppy images and scripts
1 parent e2cb31f commit e610e73

8 files changed

+28
-3
lines changed

Autounattend.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
Hyper-V Server 2012 R2 SERVERHYPERCORE
5656
Windows Server 2012 R2 SERVERSTANDARD
5757
-->
58-
<Value>Hyper-V Server 2012 R2 SERVERHYPERCORE</Value>
58+
<Value>%IMAGENAME%</Value>
5959
</MetaData>
6060
</InstallFrom>
6161
</OSImage>

configure-rdo.sh

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ wait_for_listening_port () {
3939
PORT=$2
4040
TIMEOUT=$3
4141
nc -z -w$TIMEOUT $HOST $PORT
42+
echo $?
4243
}
4344

4445
configure_ssh_pubkey_auth () {
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
BASEDIR=$(dirname $0)
4+
5+
TMP_AUTOUNATTEND_FILE=/tmp/Autounattend.xml
6+
7+
cp $BASEDIR/Autounattend.xml $TMP_AUTOUNATTEND_FILE
8+
sed -i 's/%IMAGENAME%/Hyper-V Server 2012 SERVERHYPERCORE/g' $TMP_AUTOUNATTEND_FILE
9+
10+
$BASEDIR/create-floppy.sh $BASEDIR/unattend_hyperv_2012_cloudbaseinit.flp $TMP_AUTOUNATTEND_FILE
11+
rm $TMP_AUTOUNATTEND_FILE
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
BASEDIR=$(dirname $0)
4+
5+
TMP_AUTOUNATTEND_FILE=/tmp/Autounattend.xml
6+
7+
cp $BASEDIR/Autounattend.xml $TMP_AUTOUNATTEND_FILE
8+
sed -i 's/%IMAGENAME%/Hyper-V Server 2012 R2 SERVERHYPERCORE/g' $TMP_AUTOUNATTEND_FILE
9+
10+
$BASEDIR/create-floppy.sh $BASEDIR/unattend_hyperv_2012_r2_cloudbaseinit.flp $TMP_AUTOUNATTEND_FILE
11+
rm $TMP_AUTOUNATTEND_FILE
12+

create-hyperv-2012-vm-template.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
BASEDIR=$(dirname $0)
44
DATASTORE=datastore1
5-
FLOPPY_IMAGE_PATH=$BASEDIR/unattend_hyperv_2012.flp
5+
FLOPPY_IMAGE_PATH=$BASEDIR/unattend_hyperv_2012_cloudbaseinit.flp
66

77
$BASEDIR/create-vm-template.sh $DATASTORE winhyperv hyperv-2012-template-80G 2048 80G /vmfs/volumes/datastore2/iso/en_microsoft_hyper-v_server_2012_x64_dvd_915600.iso windows $FLOPPY_IMAGE_PATH "VM Network" true true
88

deploy-rdo-example.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
RDO_NAME=rdo_test_$RANDOM
5-
ESXI_HOST=10.7.2.2
5+
ESXI_HOST=10.7.2.5
66
ESXI_USER=root
77

88
DATASTORE=datastore1
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)