LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2012, 03:55 AM   #1
DrinkinHomeBrew
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Rep: Reputation: Disabled
Clone a Linux VM


I want to make a template of a Linux build that I can use repeatedly without re-installing the OS.

Is it correct to say the only steps I generally need to do is to

1) Update the IP addresses & network configuration (if its static)
2) Change the host name

I installed LVM, and I noticed the drive name is now mapped as /dev/mapping/servername-partition, which doesn't change even after I change the host name. I'd think I can just rename these partitions, or am I better off not using LVM at all?
 
Old 05-28-2012, 08:38 AM   #2
mukt-kalandar
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Cloning process of linux VM will create image of existing setup. It will clone each and every thing from existing setup. So you need to take care in case of static IP address/hostname. Because this information is very important if you are running any SSL based appliactions on your setup.

You can rename partitions after created them using cloned image. It is not recommended to convert LVM based partitions to static partitions if it is deployed under root partition.
 
Old 05-28-2012, 02:22 PM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Checkout these links-
http://www.mernin.com/blog/2006/11/h...-using-vmware/
http://www.storix.com/how-to/204-how...irtual-machine
 
Old 05-29-2012, 02:11 PM   #4
DrinkinHomeBrew
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mukt-kalandar View Post
Cloning process of linux VM will create image of existing setup. It will clone each and every thing from existing setup. So you need to take care in case of static IP address/hostname. Because this information is very important if you are running any SSL based appliactions on your setup.

You can rename partitions after created them using cloned image. It is not recommended to convert LVM based partitions to static partitions if it is deployed under root partition.
Thanks. This eases my mind a bit, and after looking further my problem was indeed that I built the template using whole disk with LVM, and I really am not seeing a need for LVM for Virtual Machines (this appears to be much more useful if I had multiple physical spindles - and not really useful if I have one virtual HDD and running everything in partition).

Unlike Windows where properly to make a template you'd need to sysprep the box before cloning to have it cover all the hidden crap that needs to be altered for cloning, I like being able to just clone the whole VM (VMWare automatically changes the MAC), and update the hostname & networking settings (don't even have to do the latter if I'm using DHCP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Clone OOsorio Linux - Newbie 2 08-03-2010 05:04 PM
I need to Clone a Red Hat drive and install clone in HP server drummer54 Linux - Newbie 14 03-07-2009 05:15 PM
Linux clone to bigger HD RJDavison Linux - Software 3 05-27-2004 11:55 AM
How do clone Linux partition? samxiao Linux - Software 5 12-24-2003 08:50 PM
Linux have a napster clone? Chijtska Linux - General 12 03-05-2002 05:36 PM


All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration