Changes

Jump to navigation Jump to search
m
Line 25: Line 25:  
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
rpm --import https://fedoraproject.org/static/217521F6.txt
 
rpm --import https://fedoraproject.org/static/217521F6.txt
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
+
# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
 
rpm --import http://www.salstar.sk/pub/yum/keys/RPM-GPG-KEY-Fedora-Pre-Extras
 
rpm --import http://www.salstar.sk/pub/yum/keys/RPM-GPG-KEY-Fedora-Pre-Extras
 
# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
 
# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Line 88: Line 88:  
== Install screen ==
 
== Install screen ==
 
To enable background updates, screen is installed.
 
To enable background updates, screen is installed.
  yum install screen
+
  yum install screen nano mlocate
 
It is invoked / re-attached with <tt>'''screen -aR scrname'''</tt> and detached from the session with <tt>'''Ctrl-A d'''</tt>.
 
It is invoked / re-attached with <tt>'''screen -aR scrname'''</tt> and detached from the session with <tt>'''Ctrl-A d'''</tt>.
 +
 +
Set '''keepcache=1''' in '''/etc/yum.conf''' to retain the rpms for further use.
    
Take a backup of the Virtual Machine now before the mess that begins next.
 
Take a backup of the Virtual Machine now before the mess that begins next.
Line 98: Line 100:  
  mv /etc/yum.repos.d/*.repo /tmp/repo.bak/
 
  mv /etc/yum.repos.d/*.repo /tmp/repo.bak/
 
* Upload '''/etc/yum.repos.d/[[Media:SME8_sme-base.repo.txt|sme_base.repo]]'''
 
* Upload '''/etc/yum.repos.d/[[Media:SME8_sme-base.repo.txt|sme_base.repo]]'''
* UM install sme rpms
+
wget http://wiki.contribs.org/images/3/30/SME8_sme-base.repo.txt -O /etc/yum.repos.d/sme-base.repo
  yum install smeserver\* e-smith\* --enablerepo=smeos8,smeupdates8 --nogpgcheck
+
* YUM install sme rpms
 +
yum --disablerepo=base,updates,extras upgrade --nogpg
 +
  yum install smeserver\* e-smith\* *.sme.* --enablerepo=smeos8,smeupdates8 --nogpgcheck
 
* 287 MB / 374 RPMs Installed
 
* 287 MB / 374 RPMs Installed
 
* SMEServer uses runlevels 7 and 4
 
* SMEServer uses runlevels 7 and 4
Line 150: Line 154:  
Restart Networking with:
 
Restart Networking with:
 
  ifdown venet0 && ifup venet0
 
  ifdown venet0 && ifup venet0
 +
 +
Alternatively, the VLANs can be used:
 +
<pre>
 +
# cat /etc/sysconfig/network-scripts/ifcfg-venet0
 +
DEVICE=venet0
 +
BOOTPROTO=static
 +
ONBOOT=yes
 +
IPADDR=127.0.0.1
 +
NETMASK=255.255.255.255
 +
BROADCAST=0.0.0.0
 +
IPV6INIT="yes"
 +
 +
# cat /etc/sysconfig/network-scripts/ifcfg-venet0:0
 +
DEVICE=venet0:0
 +
ONBOOT=yes
 +
IPADDR=192.168.22.107
 +
NETMASK=255.255.255.255
 +
 +
ifdown venet0 && ifup venet0
 +
ifdown venet0:0 && ifup venet0:0
 +
</pre>
 +
 
Now install the missing packages:
 
Now install the missing packages:
  yum install mlocate xz xz-utils \
+
  yum install mlocate xz xz-libs \
 
     zip unzip which vixie-cron vim-enhanced vim-common usbutils traceroute tnef time telnet tcpdump \
 
     zip unzip which vixie-cron vim-enhanced vim-common usbutils traceroute tnef time telnet tcpdump \
 
     syslinux sysfsutils strace setserial safecat rsync rp-pppoe rpm-build qmail-qfilter \
 
     syslinux sysfsutils strace setserial safecat rsync rp-pppoe rpm-build qmail-qfilter \
Line 256: Line 282:  
  service dhcpd stop
 
  service dhcpd stop
 
  chkconfig dhcpd off
 
  chkconfig dhcpd off
 +
 +
== Errors ==
 +
=== Init Boot Log ===
 +
On startup, the VM emits the following error:
 +
<pre>
 +
Applying Intel CPU microcode update: FATAL:
 +
Could not load /lib/modules/2.6.32-7-pve/modules.dep: No such file or directory
 +
/etc/rc.d/init.d/microcode_ctl: microcode device /dev/cpu/microcode doesn't exist?
 +
Starting system logger: [ OK ]
 +
</pre>
 +
 +
The said package is:
 +
</pre>
 +
rpm -qa | grep -i microcode
 +
microcode_ctl-1.17-3.el5
 +
</pre>
 +
 +
* Removing it would mean the removal of 41 '''smeserver''' and '''e-smith''' rpms which are dependent.
 +
* Ref: [http://forums.fedoraforum.org/showthread.php?t=236507 Forum Post].
 +
* Ref: [http://www.centos.org/docs/5/html/5.2/Virtualization/sect-Virtualization-Troubleshooting-Microcode_error_during_guest_boot.html CentOS Docs]
 +
* Hence:
 +
/sbin/service microcode_ctl stop
 +
/sbin/chkconfig --del microcode_ctl
 +
* Copy the /lib/modules/2.6.32-7-pve folder from the host to the guest.
 +
* Initial Boot Log of the VM will show the following error:
 +
<pre>
 +
iscsid is stopped
 +
Starting iSCSI daemon: WARNING: Error inserting libiscsi (/lib/modules/2.6.32-7-pve/kernel/drivers/scsi/libiscsi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
 +
WARNING: Error inserting libiscsi_tcp (/lib/modules/2.6.32-7-pve/kernel/drivers/scsi/libiscsi_tcp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
 +
WARNING: Error inserting mdio (/lib/modules/2.6.32-7-pve/kernel/drivers/net/mdio.ko): Unknown symbol in module, or unknown parameter (see dmesg)
 +
WARNING: Error inserting cxgb3 (/lib/modules/2.6.32-7-pve/kernel/drivers/net/cxgb3/cxgb3.ko): Unknown symbol in module, or unknown parameter (see dmesg)
 +
WARNING: Error inserting libcxgbi (/lib/modules/2.6.32-7-pve/kernel/drivers/scsi/cxgbi/libcxgbi.ko): Unknown symbol in module, or unknown parameter (see dmesg)
 +
FATAL: Error inserting cxgb3i (/lib/modules/2.6.32-7-pve/kernel/drivers/scsi/cxgbi/cxgb3i/cxgb3i.ko): Unknown symbol in module, or unknown parameter (see dmesg)
 +
</pre>
 +
* Remove offending RPM and it's dependancies:
 +
<pre>
 +
# yum remove iscsi-initiator-utils
 +
 +
Removed:
 +
  iscsi-initiator-utils.i386 0:6.2.0.872-16.el5
 +
 +
Dependency Removed:
 +
  mkbootdisk.i386 0:1.5.3-2.1                            mkinitrd.i386 0:5.1.19.6-79.el5
 +
</pre>
 +
 +
== Remove needless services ==
 +
Ref: http://wiki.openvz.org/Physical_to_container
 +
rpm --nodeps -e acpid auditd kudzu netplugd microcode_ctl lvm2_monitor irqbalance ntpd lm_sensors
 +
If it complains with some being not installed like '''auditd netplugd lvm2_monitor ntpd''', then
 +
rpm --nodeps -e acpid kudzu microcode_ctl irqbalance lm_sensors
 +
 +
== Current Status ==
 +
* Networking and sshd works
 +
* Pinging outside works
 +
* yum update works
 +
* '''venet0''' and '''venet0:0''' not recognised inside SMEServer
 +
** Try to take a look at /etc/udev/rules.d/70-persisten-net.rules. Specifically the MAC address [RequestedDeletion ]
 +
* login as '''root''' and type '''console''' and enter the configuration menu
 +
* Can test internet access
 +
* elinks does not browse server-manager
 +
* configuration of server '''fails''' since no network card is recognised as it relies on '''udev'''
 +
* devnodes '''/dev/tun''' is available in the container
 +
 +
[[Category: Howto]] [[Category: Virtualisation‏‎]]

Navigation menu