Advance state of esxi5.0 support of DHCPv6 and install to parity with 4.1

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10732 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-10-10 18:15:12 +00:00
parent ef9ca9c221
commit 0cb9c2b754
5 changed files with 72 additions and 1 deletions

View File

@ -4088,6 +4088,10 @@ sub copycd {
}
open($bootcfg,">","$installroot/$distname/$arch/boot.cfg.install");
foreach (@bootcfg) {
if (/^modules=/ and $_ !~ /xcatmod.tgz/) {
chomp();
s! *\z! --- xcatmod.tgz\n!;
}
print $bootcfg $_;
}
close($bootcfg);
@ -4174,9 +4178,21 @@ sub makecustomizedmod {
if ($osver =~ /esxi4/ and -e "$::XCATROOT/share/xcat/netboot/esxi/38.xcat-enableipv6") {
mkpath($tempdir."/etc/vmware/init/init.d");
copy( "$::XCATROOT/share/xcat/netboot/esxi/38.xcat-enableipv6",$tempdir."/etc/vmware/init/init.d/38.xcat-enableipv6");
} elsif ($osver =~ /esxi5/ and -e "$::XCATROOT/share/xcat/netboot/esxi/xcat-ipv6.json") {
mkpath($tempdir."/usr/libexec/jumpstart/plugins/");
copy( "$::XCATROOT/share/xcat/netboot/esxi/xcat-ipv6.json",$tempdir."/usr/libexec/jumpstart/plugins/xcat-ipv6.json");
}
if ($osver =~ /esxi4/ and -e "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking") {
copy( "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking",$tempdir."/etc/vmware/init/init.d/47.xcat-networking");
} elsif ($osver =~ /esxi5/ and -e "$::XCATROOT/share/xcat/netboot/esxi/39.ipv6fixup") {
mkpath($tempdir."/etc/init.d");
copy( "$::XCATROOT/share/xcat/netboot/esxi/39.ipv6fixup",$tempdir."/etc/init.d/39.ipv6fixup");
chmod(0755,"$tempdir/etc/init.d/39.ipv6fixup");
}
if ($osver =~ /esxi5/ and -e "$::XCATROOT/share/xcat/netboot/esxi/48.esxifixup") {
mkpath($tempdir."/etc/init.d");
copy( "$::XCATROOT/share/xcat/netboot/esxi/48.esxifixup",$tempdir."/etc/init.d/48.esxifixup");
chmod(0755,"$tempdir/etc/init.d/48.esxifixup");
}
if (-e "$::XCATROOT/share/xcat/netboot/esxi/xcatsplash") {
mkpath($tempdir."/etc/vmware/");

View File

@ -41,4 +41,11 @@ echo -e "<xcatrequest>\n<command>nextdestiny</command>\n</xcatrequest>" | /bin/o
%firstboot --interpreter=busybox
# enable SSH on next boot....
chkconfig SSH on
chkconfig ESXShell on
esxcli system settings advanced set --int-value 0 --option /VMFS3/EnableBlockDelete
esxcli network ip set -e y
esxcli network firewall ruleset set -r DHCPv6 -e y
esxcli network firewall ruleset set -r sshServer -e y
esxcli network ip interface ipv6 set -i vmk0 -d y
#reboot

View File

@ -0,0 +1,21 @@
#!/bin/sh
retval=${SUCCESS}
if [ `uname -r` == '5.0.0' ]; then
#duid=default-duid "\000\001\000\001LnC\304\000\020\030^\340\334";
duid='default-duid "\000\004';
for i in `vsish -e get /hardware/machineUUID|grep \\\[|sed -e 's/.*://'|sed -e ':a;N;$!ba;s/\n//g'`; do
num=`printf "%d" $i`
tnum=`printf "\\%03o" $i`
if [ $num -lt 127 -a $num -gt 31 ]; then
tnum=`printf $tnum`
fi
duid=$duid$tnum
done
duid=$duid'";'
echo $duid > /etc/dhclient6-vmk0.leases
localcli network firewall ruleset set -r DHCPv6 -e y
localcli network ip interface ipv6 set -i vmk0 -d y
fi
return $retval

View File

@ -0,0 +1,10 @@
#!/bin/sh
#first off, let's ditch UNMAP, per vwmare's recall...
localcli system settings advanced set --int-value 0 --option /VMFS3/EnableBlockDelete
#ok, now let's turn on some SSH and ESXShell fun
localcli network firewall ruleset set -r sshServer -e y
chkconfig ESXShell on
chkconfig SSH on
/etc/init.d/SSH start
/etc/init.d/ESXShell start
return ${SUCCESS}

View File

@ -0,0 +1,17 @@
{
"operations" :
{
"start" :
[
"network ip set -e y",
]
}
,
"metadata" :
{
"version" : 1,
"requires" : ["random", "system uuid"],
"provides" : ["vmw-forced-legacy-34"]
}
}