Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 10, 2012 3:22 pm 
Offline
Newbie

Joined: Sun Feb 01, 2009 9:05 pm
Posts: 2
Hello,

I'd like to replicate our running application (that's distributed over 5 linodes) on local dev machines to work on issues that arise from the multi-server setup.

My idea is to download disk images of the Linodes and convert them to VirtualBox instances. Does that make sense? How to convert them?

Thanks!
Karim


Top
   
 Post subject:
PostPosted: Sat Mar 10, 2012 6:43 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
I use Ubuntu, and set up a VirtualBox with the same distro and applications that I use on my Linode. After that I just copy data files back and forth as needed.

James


Top
   
 Post subject:
PostPosted: Sat Mar 10, 2012 6:58 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
The disk images are not immediately compatible. Virtualbox emulates a "normal" BIOS (or EFI...) boot process, with a master boot record and all that. Typically, you'll need the master boot record, a partition table, and a bootloader to make it work. On the other hand, a Linode (or other VPS provider) image skips all this: it's just the contents of a single partition, not an entire disk. Virtualbox cannot boot it.

You can adapt the image to make it work. It's a pain in the ass. My preferred trick is to reduce a system to a set of installed software and configuration atop a base system. Something like devstructure's blueprint can do this for an existing system, or you can build this from the ground up using puppet, chef, or some other tool.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sat Mar 10, 2012 10:33 pm 
Offline
Newbie

Joined: Sun Feb 01, 2009 9:05 pm
Posts: 2
Thanks for the replies. It seems the consensus is to rebuild the systems - I'll look into Puppet and similar tools.


Top
   
 Post subject:
PostPosted: Sun Mar 11, 2012 12:38 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
I use this in a nightly cron job to have an updated list of my system's packages:

dpkg --get-selections > packages.txt

Then on my local system I use this to sync the packages up manually:

sudo dpkg --set-selections < packages.txt
sudo apt-get dselect-upgrade

This is an old article but it does contain some helpful responses from the readers:

http://www.ubuntugeek.com/clone-your-ub ... ation.html

One last thought, you might want to consider chroot, I'm not a pro (only used it once) at using it but it might let you image your server, copy it locally then access it in a chroot without the booting mess ... maybe (not totally sure).


Top
   
 Post subject: Try Vagrant
PostPosted: Tue Mar 27, 2012 3:18 pm 
Offline
Newbie

Joined: Fri Aug 20, 2010 2:13 pm
Posts: 3
I've been wanting to do a similar setups to this, i just recently learned of this new system http://vagrantup.com/


Top
   
 Post subject: Re: Try Vagrant
PostPosted: Tue Mar 27, 2012 4:29 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
arttus wrote:
I've been wanting to do a similar setups to this, i just recently learned of this new system http://vagrantup.com/


Doesn't look good for multi-core programming to me.

James


Top
   
 Post subject: Re: Try Vagrant
PostPosted: Tue Mar 27, 2012 5:31 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
zunzun wrote:
arttus wrote:
I've been wanting to do a similar setups to this, i just recently learned of this new system http://vagrantup.com/


Doesn't look good for multi-core programming to me.

James


Why not? There doesn't seem to be anything preventing you from creating multi-core VMs with it?


Top
   
 Post subject: Re: Try Vagrant
PostPosted: Wed Mar 28, 2012 5:41 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
Guspaz wrote:
Why not? There doesn't seem to be anything preventing you from creating multi-core VMs with it?


Ah, but deployment is a different thing altogether - if the remote server does not allow multi-core VMs you cannot deploy one. I do not see this discussed, nor do they mention the number of CPUs available or pricing per additional core. That would indeed be something to crow about, and they do not do so.

James


Top
   
 Post subject:
PostPosted: Wed Mar 28, 2012 10:23 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Huh? It's an opensource VM deployment script, and the remote server is your own box, what does "number of CPUs" or "price-per-core" have to do with anything? They're not selling anything.


Top
   
 Post subject:
PostPosted: Wed Mar 28, 2012 10:47 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
Guspaz wrote:
They're not selling anything.


Oh. I thought they also hosted. My bad - consider me appropriately chastised. Good call.

James


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group