Hallo,
Ich habe eine frage zu meiner ks.cfg unzwar wird bei der installation sshd nicht freigeschaltet also Permit Root Login nicht auf YES gesetzt das will ich aber...
wie mache ich das...?? also ich zeige euch mal meine KS
# Auto-Generated Scripted Install Configuration file.
# This file is used for VMware ESX Server Scripted Install Deployment
install
# Localization
lang de_DE
keyboard de
# Langauge Support
langsupport --default de_DE
# Mouse Configuration
mouse generic3ps/2 --device psaux
# Skip X configuration
skipx
# Text install
text
# Network information
network --bootproto static --ip 192.168.178.5 --netmask 255.255.0.0 --gateway 192.168.178.1 --nameserver 192.168.178.11 --hostname ESX03 --addvmportgroup=1 --vlanid=0
# Encrypted root password
rootpw vmware
# Disable the firewall
firewall --disabled
# Auth Configuration
authconfig --enableshadow --enablemd5
# Timezone
timezone Europe/Berlin
# Bootloader config
bootloader --location=mbr
# Reboot
reboot
# VMware Licensing
vmaccepteula
# Partitioning
clearpart --linux
part /boot --fstype ext3 --size 150 --ondisk sda --asprimary
part / --fstype ext3 --size 5120 --ondisk sda --asprimary
part swap --size 1024 --ondisk sda --asprimary
part /var --fstype ext3 --size 2048 --ondisk sda
part /tmp --fstype ext3 --size 2048 --ondisk sda
part /opt --fstype ext3 --size 1024 --ondisk sda
%packages
@ base
%post
sed -i "s/PermitRootLogin no/PermitRootLogin yes/g" /etc/ssh/sshd_config
sed -i 's/boot\/memSize = \"272\"/boot\/memSize = \"512\"/g' /etc/vmware/esx.conf
sed -i 's/uppermem 277504/uppermem 523264/g' /boot/grub/grub.conf
sed -i 's/mem=272M/mem=512M/g' /boot/grub/grub.conf
service sshd restart
Die Foren-SW läuft ohne erkennbare Probleme. Sollte doch etwas nicht funktionieren, bitte gerne hier jederzeit melden und wir kümmern uns zeitnah darum. Danke!
Unattended Installation vom ESX
- Tschoergez
- Moderator
- Beiträge: 3476
- Registriert: 23.02.2005, 09:14
- Wohnort: Burgberg im Allgäu
- Kontaktdaten:
hi,
ich denke mal, dass es daran liegt, dass das Prost script direkt nach der installation (und vor dem ersten neustart des neuen ESX ausgeführt wird. und da werden dann die Verzeichnisse nicht passen.
Du musst das so umbauen, dass die Post-Section ein Script erstellt, dass dann beim nächsten Neustart einmalig ausgeführt wird.
Beispiele dazu:
http://www.brianshouse.net-a.googlepage ... _3.00.html
http://vmware-forum.de/viewtopic.php?t=11420
Das "Über-Beispiel"
http://communities.vmware.com/message/436165
viele grüße,
jörg
ich denke mal, dass es daran liegt, dass das Prost script direkt nach der installation (und vor dem ersten neustart des neuen ESX ausgeführt wird. und da werden dann die Verzeichnisse nicht passen.
Du musst das so umbauen, dass die Post-Section ein Script erstellt, dass dann beim nächsten Neustart einmalig ausgeführt wird.
Beispiele dazu:
http://www.brianshouse.net-a.googlepage ... _3.00.html
http://vmware-forum.de/viewtopic.php?t=11420
Das "Über-Beispiel"
http://communities.vmware.com/message/436165
viele grüße,
jörg
hallo jörg danke.......
das heißt so sollte es funktionieren???
habe ich mir zusammen kopiert ist dsa richtig so?
lg
Robert
%post
cat > /tmp/esxcfg.sh <<\EOF3
!/bin/sh
# Configure ESX Server
### Firewall configuration
# We need to enable adlagent port and file transfer port
# You need to set a static port ("4321" in this example) for file #transfer in the deployment
# console under Tools->Options->Global
esxcfg-firewall --openPort 402,tcp,out,adlagent
esxcfg-firewall --openPort 4321,tcp,out,adlagentFileTransfer
### Configuration Examples
# Uncomment and/or modify the example lines below to use in your configuration
# SSH Access:
# EXAMPLE: Enable root login via SSH
# WARNING: This is not the most secure course of action!
sed -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new
mv -f /etc/ssh/sshd_config.new /etc/ssh/sshd_config /etc/init.d/ sshd restart
EOF3
# make configuration script executable
chmod +x /tmp/esxcfg.sh
#####################################################
# save a copy of rc.local
cp /etc/rc.d/rc.local /etc/rc.d/rc.local.sav
# add esxcfg.sh to rc.local
cat >> /etc/rc.d/rc.local <<EOF
cd /tmp
/tmp/esxcfg.sh
EOF
das heißt so sollte es funktionieren???
habe ich mir zusammen kopiert ist dsa richtig so?
lg
Robert
%post
cat > /tmp/esxcfg.sh <<\EOF3
!/bin/sh
# Configure ESX Server
### Firewall configuration
# We need to enable adlagent port and file transfer port
# You need to set a static port ("4321" in this example) for file #transfer in the deployment
# console under Tools->Options->Global
esxcfg-firewall --openPort 402,tcp,out,adlagent
esxcfg-firewall --openPort 4321,tcp,out,adlagentFileTransfer
### Configuration Examples
# Uncomment and/or modify the example lines below to use in your configuration
# SSH Access:
# EXAMPLE: Enable root login via SSH
# WARNING: This is not the most secure course of action!
sed -e 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config > /etc/ssh/sshd_config.new
mv -f /etc/ssh/sshd_config.new /etc/ssh/sshd_config /etc/init.d/ sshd restart
EOF3
# make configuration script executable
chmod +x /tmp/esxcfg.sh
#####################################################
# save a copy of rc.local
cp /etc/rc.d/rc.local /etc/rc.d/rc.local.sav
# add esxcfg.sh to rc.local
cat >> /etc/rc.d/rc.local <<EOF
cd /tmp
/tmp/esxcfg.sh
EOF
- Tschoergez
- Moderator
- Beiträge: 3476
- Registriert: 23.02.2005, 09:14
- Wohnort: Burgberg im Allgäu
- Kontaktdaten:
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste