Linux.com

Home Linux Community Community Blogs Servers Deploying a Linux based vm from VMware template

Deploying a Linux based vm from VMware template

Deploying a Linux based virtual machine from a VMware template can be a bit difficult when you don't know the ins and outs, the tiny tweaks. 

In this blog post I'll explain how you can get past the problems that might occur.

Virtual Machine size and speed

This is more of a general recommendation for about every virtual machine you got: If you operating system has a special virtual edition: use it.

Ubuntu and Suse both have their JeOS editions, Just Enough Operating System. These are special versions of the regular distributions that are geared towards virtualization and are small in size (Ubuntu JeOS has a 300Mb installation size).

Networking woes

The most common problem to occur when you have just deployed a Linux vm from a template is that you have no network.  Deploying from a template is actually cloning an existing VM, this causes the VM's network adapters to have a different MAC address as the VM from which you created the template.

udev allows Linux users to have a dynamic /dev directory and it provides the ability to have persistent device names

The udev system stores its rules in /etc/udev/rules.d, containing among other things a rule for network interfaces. This rule contains the mac address from the network interface, the mac address from the original vm's network interface. See the problem?

In Debian based distributions the file is called 70-persistent-net.rules. Simply delete this file an during the next boot the network interface will be available again.

VMware Tools

I started writing about VMware tools and how to have a decent strategy when it comes to keeping your VMware tools updated. The text kept getting longer and longer so I decided to make separate post about it. 

 

Comments

Subscribe to Comments Feed

Upcoming Linux Foundation Courses

  1. LFS230 Linux Network Management
    06 Oct » 09 Oct - Virtual
    Details
  2. LFS416 Linux Security
    06 Oct » 09 Oct - Washington
    Details
  3. LFD331 Developing Linux Device Drivers
    13 Oct » 17 Oct - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board