[rhn-satellite-beta-users] Howto setup network on host-system-for-virtual-systems ?

DCLUX Sysadmin sysadmin at sysadmin.dclux.com
Tue Jan 30 15:57:14 UTC 2007


Hello,

Here under the used kickstart for "host-system-for-virtual-systems" :


# Kickstart config file generated by RHN Config Management
#
# Profile Name  : host-system-for-virtual-systems
# Profile Label : host-system-for-virtual-systems
# Date Created  : 2007-01-26 15:11:05.0
#

install
text
network --bootproto static --ip 192.168.1.155 --netmask 255.255.255.0  
--gateway 192.168.1.1 --nameserver 192.168.1.11
url --url http://rhn5beta.dclux.loc/ty/gXcXcSOT
lang en_US
langsupport --default en_US en_US
keyboard fr_CH
mouse none
zerombr yes
clearpart --all
part pv.01 --size=1000 --grow
part /boot --fstype=ext3 --size=200
part swap --size=1000   --maxsize=2000
volgroup myvg pv.01
logvol / --vgname=myvg --name=rootvol --size=1000 --grow
bootloader --location mbr
timezone Europe/Luxembourg
auth --enablemd5 --enableshadow
rootpw --iscrypted $1$eTCQ5T.p$rqUk9Z7BOMFGDGYdGdv/z1
selinux --permissive
reboot
firewall --disabled
skipx
repo --name=Cluster --baseurl=http://rhn5beta.dclux.loc/ty/gXcXcSOT/ 
Cluster
repo --name=ClusterStorage --baseurl=http://rhn5beta.dclux.loc/ty/ 
gXcXcSOT/ClusterStorage
repo --name=Workstation --baseurl=http://rhn5beta.dclux.loc/ty/ 
gXcXcSOT/Workstation
repo --name=VT --baseurl=http://rhn5beta.dclux.loc/ty/gXcXcSOT/VT
key --skip

%packages --resolvedeps

@ Base
kernel-xen
xen


%post --nochroot
mkdir /mnt/sysimage/tmp/ks-tree-copy
if [ -d /oldtmp/ks-tree-shadow ]; then
cp -fa /oldtmp/ks-tree-shadow/* /mnt/sysimage/tmp/ks-tree-copy
elif [ -d /tmp/ks-tree-shadow ]; then
cp -fa /tmp/ks-tree-shadow/* /mnt/sysimage/tmp/ks-tree-copy
fi
cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf

%post
( # Log %post errors
  # --Begin RHN command section--
cat > /tmp/ssl-key-1 <<'EOF'
Certificate:
     Data:
         Version: 3 (0x2)
         Serial Number: 0 (0x0)
         Signature Algorithm: sha1WithRSAEncryption
         Issuer: C=US, ST=NC, L=Raleigh, O=RHN Satellite Beta,  
OU=Satellite Beta, CN=rhn5beta.dclux.loc
         Validity
             Not Before: Jan 25 14:05:07 2007 GMT
             Not After : Jan 18 14:05:07 2036 GMT
         Subject: C=US, ST=NC, L=Raleigh, O=RHN Satellite Beta,  
OU=Satellite Beta, CN=rhn5beta.dclux.loc
         Subject Public Key Info:
             Public Key Algorithm: rsaEncryption
             RSA Public Key: (2048 bit)
                 Modulus (2048 bit):
                     00:e2:ef:cb:92:01:92:5f:82:13:fa:f1:0d:4c:59:
                     5b:5d:7e:eb:f1:fb:60:3b:e0:fd:90:7b:66:2d:ce:
                     64:49:df:b6:2b:7b:7a:33:4c:0d:8b:7a:f0:72:50:
                     04:09:1e:d1:56:2e:a8:03:b5:97:6a:69:71:45:57:
                     58:98:c1:19:eb:94:c9:bb:0c:98:39:88:94:f1:84:
                     81:0d:b7:61:90:45:43:ca:4e:26:93:b0:06:53:15:
                     93:c0:5c:97:6d:e7:fa:57:e8:c9:be:97:d2:e2:02:
                     6d:2e:65:9f:34:54:8a:e3:b3:7d:d2:4e:38:04:c2:
                     19:ad:e1:ed:d5:c2:d9:b8:f2:90:b0:e9:59:48:ab:
                     61:4f:6d:17:e5:64:30:eb:d5:fc:ef:04:22:aa:70:
                     d6:2a:af:fd:07:5f:c2:11:02:b7:c0:74:0c:57:99:
                     09:d7:27:09:9f:5e:5c:e5:02:9e:05:fd:0b:44:91:
                     eb:d2:2b:2e:4a:8e:53:08:ca:3c:82:32:48:2d:8e:
                     67:17:b7:2b:a5:1d:ee:d3:f3:77:0a:74:e4:cc:26:
                     9a:03:30:61:96:b8:47:39:16:41:91:f9:f1:4c:9f:
                     75:7f:58:00:7c:34:78:b5:68:a2:1c:52:4a:67:85:
                     21:e1:d6:5b:ec:39:da:e3:a1:3b:e7:a0:55:22:41:
                     e8:77
                 Exponent: 65537 (0x10001)
         X509v3 extensions:
             X509v3 Basic Constraints:
             CA:TRUE
             X509v3 Key Usage:
             Digital Signature, Key Encipherment, Certificate Sign
             X509v3 Extended Key Usage:
             TLS Web Server Authentication, TLS Web Client  
Authentication
             Netscape Comment:
             RHN SSL Tool Generated Certificate
             X509v3 Subject Key Identifier:
             C9:C3:A1:D2:E7:56:92:64:7C:2C:B4:FC:4B:2F:AE:38:33:7C:34:87
             X509v3 Authority Key Identifier:
             keyid:C9:C3:A1:D2:E7:56:92:64:7C:2C:B4:FC:4B:2F:AE: 
38:33:7C:34:87
             DirName:/C=US/ST=NC/L=Raleigh/O=RHN Satellite Beta/ 
OU=Satellite Beta/CN=rhn5beta.dclux.loc
             serial:00

     Signature Algorithm: sha1WithRSAEncryption
         96:50:65:84:44:da:14:93:b8:79:49:f0:51:0e:38:6e:80:62:
         81:4e:fa:e0:f9:c9:c6:5a:a5:e6:1d:b1:0f:b2:74:79:d7:b1:
         90:04:d2:9d:7d:b2:10:15:76:d6:3a:65:b3:bb:79:11:ff:2a:
         b0:37:f9:35:4c:4f:0c:82:dd:61:6c:f5:5a:e4:22:d4:4f:68:
         95:c6:57:ee:28:91:80:5c:4c:91:e7:21:0b:14:0f:7d:28:87:
         9e:59:11:4b:0f:9c:bc:99:8f:6b:89:96:ce:71:3b:f0:e0:0e:
         d9:61:49:4d:cb:a9:95:e6:0f:dd:30:68:cf:ad:17:a1:66:77:
         48:44:3b:b0:f8:b0:92:5b:b9:3e:85:ef:27:32:88:aa:9a:36:
         14:41:54:5c:15:29:1d:29:a0:8d:22:0e:05:89:b5:6d:6f:70:
         5a:a8:a6:15:c4:fb:f2:d3:e5:67:8a:1a:87:cc:09:a1:3f:f0:
         b8:79:7e:64:5e:4a:a4:b5:e6:e4:92:4c:73:55:49:4a:f9:bf:
         a3:26:9c:68:f6:40:1c:92:51:24:08:52:33:f1:88:56:52:b0:
         db:e4:9b:32:5a:6a:86:73:2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1NMIFRvb2wgR2VuZXJhdGVk
IENlcnRpZmljYXRlMB0GA1UdDgQWBBTJw6HS51aSZHwstPxLL644M3w0hzCBqwYD
VR0jBIGjMIGggBTJw6HS51aSZHwstPxLL644M3w0h6GBhKSBgTB/MQswCQYDVQQG
EwJVUzELMAkGA1UECBMCTkMxEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTElJI
TiBTYXRlbGxpdGUgQmV0YTEXMBUGA1UECxMOU2F0ZWxsaXRlIEJldGExGzAZBgNV
BAMTEnJobjViZXRhLmRjbHV4LmxvY4IBADANBgkqhkiG9w0BAQUFAAOCAQEAllBl
hETaFJO4eUnwUQ44boBigU764PnJxlql5h2xD7J0edexkATSnX2yEBV21jpls7t5
Ef8qsDf5NUxPDILdYWz1WuQi1E9olcZX7iiRgFxMkechCxQPfSiHnlkRSw+cvJmP
a4mWznE78OAO2WFJTcupleYP3TBoz60XoWZ3SEQ7sPiwklu5PoXvJzKIqpo2FEFU
XBUpHSmgjSIOBYm1bW9wWqimFcT78tPlZ4oah8wJoT/wuHl+ZF5KpLXm5JJMc1VJ
Svm/oyacaPZAHJJRJAhSM/GIVlKw2+SbMlpqhnMsyBFwl+2HICdSpJq1tl1s0QUo
z6E0fT1PC9z7QuXm4w==
-----END CERTIFICATE-----

EOF
# ssl-key1
cat /tmp/ssl-key-* > /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
perl -npe 's/RHNS-CA-CERT/RHN-ORG-TRUSTED-SSL-CERT/g' -i /etc/ 
sysconfig/rhn/*

mkdir -p /tmp/rhn_rpms/optional
cd /tmp/rhn_rpms/optional
wget -P /tmp/rhn_rpms/optional http://rhn5beta.dclux.loc/download/ 
1170212060/1101d29bf025c9989a7259f04bf4733cbbe00f76/0/0/redhat/NULL/ 
rhnlib/2.2.5-1.el5/noarch/rhnlib-2.2.5-1.el5.noarch.rpm http:// 
rhn5beta.dclux.loc/download/1170212060/ 
c689fd8e5f8987208249264fd52f2b42f3a85a11/0/0/redhat/NULL/pyOpenSSL/ 
0.6-1.p24.7.2.2/i386/pyOpenSSL-0.6-1.p24.7.2.2.i386.rpm http:// 
rhn5beta.dclux.loc/download/ 
1170212060/64ef82cb488b36843446d7fd574a5037831c47c8/0/0/redhat/NULL/ 
libxml2-python/2.6.26-2.1.1/i386/libxml2-python-2.6.26-2.1.1.i386.rpm
rpm -Uvh --replacepkgs --replacefiles /tmp/rhn_rpms/optional/ 
pyOpenSSL* /tmp/rhn_rpms/optional/rhnlib* /tmp/rhn_rpms/optional/ 
libxml2-python*
sed -i.backup 's/default=[0-9]*/default=0/' /boot/grub/grub.conf
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-beta

perl -npe 's/xmlrpc.rhn.redhat.com/rhn5beta.dclux.loc/' -i /etc/ 
sysconfig/rhn/up2date
mkdir -p /etc/sysconfig/rhn/allowed-actions/script
touch /etc/sysconfig/rhn/allowed-actions/script/all
mkdir -p /etc/sysconfig/rhn/allowed-actions/configfiles
touch /etc/sysconfig/rhn/allowed-actions/configfiles/all

# now copy from the ks-tree we saved in the non-chroot checkout
cp -fav /tmp/ks-tree-copy/. /
rm -Rf /tmp/ks-tree-copy
# --End RHN command section--



rhn_check

) > /root/ks-post.log 2>&1


# MOTD
echo >> /etc/motd
echo "RHN kickstart on $(date +'%Y-%m-%d')" >> /etc/motd
echo >> /etc/motd

# end of generated kickstart file

Regards



Le 30 janv. 07 à 16:25, DCLUX Sysadmin a écrit :

> Hello,
>
> I will explain all cycle of the bug :
>
> * Fresh server without any OS on HardDisk.
> * Create a Kickstart "host-system-for-virtual-systems" as described  
> into your pdf document
>
> The only difference with your documentation is that I configure  
> this under into the Kickstart
>
> Kickstart Network Connection -> Use static IP from interface -> eth0
> Kickstart Details -> Advanced Options -> network -> --bootproto  
> static --ip 192.168.1.155 --netmask 255.255.255.0 --gateway  
> 192.168.1.1 --nameserver 192.168.1.11
>
> I boot the system on the RHEL 5 beta Boot CD
>
> Entrance on the Boot CD prompt :
>
> linux ksdevice=eth0 ks=http://rhn5beta.dclux.loc/kickstart/ks/label/ 
> host-system-for-virtual-systems ip=192.168.1.155 netmask=255.255.255.0
> 	gateway=192.168.1.1 dns=192.168.1.11
>
> The kickstart installation work fine, the server is registered into  
> the RHN 5 Beta system page.
>
> But if a try to connect with ssh on the "host-system-for-virtual- 
> systems", no response. If I try to ping the "host-system-for- 
> virtual-systems" no response.
> I log me into the "host-system-for-virtual-systems" with a console  
> as root.
>
> Verify my ifconfig configuration. I see my ip, netmask and  
> broadcast on eth0
> I have lo (127.0.0.1), but also 3 other xen interfaces without IP  
> configured on them.
>
> I verify my route, my route is fine 192.168.1.1
>
> I ping www.yahoo.fr, www.redhat.com, or any other systems into my  
> network or in internet, no responses at all.
>
>
> I have then try to install a new fresh system with a kickstart  
> "standard kickstart" with none virtualization,
> with the same kickstart method. Every thing is working fine.
>
> Will this help you ?
>
> Regards.
>
>
> Le 30 janv. 07 à 16:08, Peter Vetere a écrit :
>
>> DCLUX Sysadmin wrote:
>>> Hello,
>>> I have succesful install a standard kickstart with  
>>> "Virtualization Type" to "none".
>>> Kickstart Network Connection -> Use static IP from interface eth0
>>> network --bootproto static --ip 192.168.1.155 --netmask  
>>> 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.11
>>> The network going fine I have my eth0 configured and  I can ping  
>>> www.redhat.com <http://www.redhat.com> for example.
>>> But with a "host-system-for-virtual-systems" with "Virtualization  
>>> Type" to "Para-Virtualized Host"
>>> Kickstart Network Connection -> Use static IP from interface eth0
>>> network --bootproto static --ip 192.168.1.155 --netmask  
>>> 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.11
>>> The network don't work, I have the eth0 configured, route is ok
>>> Did I have miss something ?
>>
>> Interesting problem.  I was not able to reproduce it in my  
>> environment, unfortunately.  Perhaps you could elaborate.  When  
>> you say your network doesn't work, what do you mean?  Can the host  
>> system ping other systems?  Can the guest system ping other  
>> systems?  What does ipconfig show on the host system?  Any  
>> additional info you can provide will be tremendously helpful.   
>> Thanks!
>>
>> Pete
>
>
> _______________________________________________
> rhn-satellite-beta-users mailing list
> rhn-satellite-beta-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-satellite-beta-users





More information about the rhn-satellite-beta-users mailing list