Recent Changes - Search:

Bob Brandt

Linux Projects


Server Projects

Desktop Projects

Novell Projects


VMware Projects


N900 (Maemo) Projects


Python Projects


OpenOffice.org Projects


Other Projects


PmWiki

edit SideBar

Creating a VMware Template for SuSE

VMware.SuSETemplate History

Show minor edits - Show changes to markup

May 15, 2009, at 10:05 AM by 82.141.254.184 -
Changed line 10 from:
  1. Edit the /etc/udev/rules.d/30-net_persistent_names.rules file and comment out the lines which begin with SUBSYSTEM=="net" (i.e. Place a # character at the beginning of the line)
to:
  1. Edit the /etc/udev/rules.d/x0-net_persistent_names.rules file and comment out the lines which begin with SUBSYSTEM=="net" (i.e. Place a # character at the beginning of the line)
February 25, 2009, at 03:27 PM by 82.141.254.184 -
Added lines 15-21:

And while your at it, it is a good idea to setup all the standard settings present on all your servers.

  1. NTP
  2. LDAP Authentication
  3. SUDO
  4. ...
February 25, 2009, at 03:25 PM by 82.141.254.184 -
Changed line 11 from:
  1. Use YaST2 | /etc/sysconfig Editor to browse to the Network/Hardware/Config area and change the FORCE_PERSISTENT_NAMES value to off.
to:
  1. Use YaST2 | /etc/sysconfig Editor to browse to the Network/Hardware/Config area and change the FORCE_PERSISTENT_NAMES value to off.
February 25, 2009, at 03:24 PM by 82.141.254.184 -
Added lines 1-14:

(:title Creating a VMware Template for SuSE :)

While the title says VMware and SuSE, this should work for virtualization product (i.e. XEN) and any *nix system that uses udev persistence rules.

The basic problem is that when you clone an SuSE VM, the network configuration explodes. More specifically, the system creates new NIC devices - which have no configuration and therefore don't do anything! The reason for this is something called udev. Udev rules in linux effectively map a MAC address to a device (i.e. 00:50:22:47:58:b0 => eth0) There are historical reasons why this is done, and it make sense if you are hot-plugging NICs in and out. However, with a Virtual Machine Template, you want the process to be automatic. And since this will most likely be a server, we don't need to worry about hotplugged NICs so we can turn off udev for network!

While on the Template Machine:

  1. Edit the /etc/udev/rules.d/30-net_persistent_names.rules file and comment out the lines which begin with SUBSYSTEM=="net" (i.e. Place a # character at the beginning of the line)
  2. Use YaST2 | /etc/sysconfig Editor to browse to the Network/Hardware/Config area and change the FORCE_PERSISTENT_NAMES value to off.
  3. Reboot
  4. Again using YaST2 | Network Card, edit each NIC and find the Hardware Configuration Name (it should look something like id-00:50:22:47:58:b0) and change it to a number (i.e. 0 for eth0; 1 for eth1...)
  5. Reboot
Edit - History - Print - Recent Changes - Search
Page last modified on May 15, 2009, at 10:05 AM