VMware Cloud Community
Jason_Cornick
Contributor
Contributor
Jump to solution

vmaccepteula in Kickstart

Hello,

I've got a kickstart script written that does absolutely everything I need, and it is all being configured properly, working great, except one thing. During the installation you need to mark that you accept the license and click next. I would really prefer it to be completely automated!

I have vmaccepteula in the %pre section immediately following the disk map that is correctly being used. It appears to match all the examples that I see. It is definitely a unix formatted file, no CRs in there!

Any suggestions?

Here is everything before %post:

#Set installation parameters

bootloader .location=mbr

mouse none

skipx

install

text

reboot

#Enable the firewall and network during the installation

firewall --enabled

network --device eth0 --bootproto dhcp

#Define the root password

rootpw PASSWORD

#Wipe everything on the first disk (SDA) and configure our partitions

%include /tmp/disk_map

%pre

cat > /tmp/disk_map << DISK_MAP2

clearpart --linux --initlabel --drives=sda

part /boot --fstype ext3 --size=100 --ondisk=sda --asprimary

part / --fstype ext3 --size=1800 --grow --maxsize=5000 --ondisk=sda --asprimary

part swap --size=1600 --ondisk=sda --asprimary

part /var --fstype ext3 --size=2048 --grow --maxsize=5000 --ondisk=sda

part /opt --fstype ext3 --size=1024 --grow --maxsize=2048 --ondisk=sda

part /tmp --fstype ext3 --size=1024 --grow --maxsize=5000 --ondisk=sda

part /home --fstype ext3 --size=1024 --ondisk=sda

part None --fstype vmkcore --size 110 --ondisk=sda

part None --fstype vmfs3 --size 1 --grow --ondisk=sda

DISK_MAP2

;;

  1. Licensing: accept the EULA (End User License Agreement) and use VirtualCenter served licenses

vmaccepteula

vmlicense --mode=server --server=27000@flexlm.domain.com --edition=esxFull --features=vsmp,backup

%packages

grub

@base

--

Thanks,

Jason

0 Kudos
1 Solution

Accepted Solutions
mcowger
Immortal
Immortal
Jump to solution

Jason - the vmaccepteula directive isn't an exevutable command, so it doesn't go in %pre%. Its a directive for kickstart, so it goes with the rest of your kickstart directives - e.g. next to the 'firewall' or rootpw commands:

Just change your file to look fsomething like:

bootloader .location=mbr

mouse none

skipx

install

text

vmaccepteula

vmlicense --mode=server --server=27000@flexlm.domain.com --edition=esxFull --features=vsmp,backup

reboot

#Enable the firewall and network during the installation

firewall --enabled

network --device eth0 --bootproto dhcp

#Define the root password

rootpw PASSWORD

...






--Matt

--Matt VCDX #52 blog.cowger.us

View solution in original post

0 Kudos
2 Replies
mcowger
Immortal
Immortal
Jump to solution

Jason - the vmaccepteula directive isn't an exevutable command, so it doesn't go in %pre%. Its a directive for kickstart, so it goes with the rest of your kickstart directives - e.g. next to the 'firewall' or rootpw commands:

Just change your file to look fsomething like:

bootloader .location=mbr

mouse none

skipx

install

text

vmaccepteula

vmlicense --mode=server --server=27000@flexlm.domain.com --edition=esxFull --features=vsmp,backup

reboot

#Enable the firewall and network during the installation

firewall --enabled

network --device eth0 --bootproto dhcp

#Define the root password

rootpw PASSWORD

...






--Matt

--Matt VCDX #52 blog.cowger.us
0 Kudos
Jason_Cornick
Contributor
Contributor
Jump to solution

Thank you! It seems obvious now when I look at it.

Jason

0 Kudos