LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2014, 02:11 PM   #1
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
compile on Virtualbox transfer to Slackware server


I want to setup Slackware on Virtualbox and migrate all of that to a live server. This way any mistakes that happen, happen on the Virtualbox and I can keep local copies. Can anyone explain to me if this is viable and if so give some tips on how to achieve this?

Last edited by khronosschoty; 07-12-2014 at 02:16 PM.
 
Old 07-12-2014, 02:27 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,651

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
I have just set up virtualbox on slackware, and installed fedora on it.
You can do it, and hardly have to migrate it. Everything question you want answered is up on Google. To the main machine it's just another process. But what is the server running?

The main benefit of a vm is it's limited nature - If a vm is running mail and someone succeeds in hacking the mail server, he only gets into a vm. I would not have thought logging to be an advantage of VMs, as they can not access much of the disk(s).
 
Old 07-12-2014, 02:48 PM   #3
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648

Original Poster
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by business_kid View Post
I have just set up virtualbox on slackware, and installed fedora on it.
You can do it, and hardly have to migrate it. Everything question you want answered is up on Google. To the main machine it's just another process. But what is the server running?

The main benefit of a vm is it's limited nature - If a vm is running mail and someone succeeds in hacking the mail server, he only gets into a vm. I would not have thought logging to be an advantage of VMs, as they can not access much of the disk(s).
Not exactly what I was asking. Not sure I know how to ask my question better, maybe if I did google would be more helpful.

So I am running OS X on a macbook and I have a VPS server running Debian. I want to change that VPS over to Slackware. I want to do all the configuration, compile and setup on a Virtualbox version on OS X and migrate it all over to the VPS server.

Last edited by khronosschoty; 07-12-2014 at 02:52 PM.
 
Old 07-12-2014, 03:06 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I think what you are asking is:

* Create a VM.
* Test until satisfied.
* Convert the VM to a physical machine.

For converting the VM there are two basic options:

* Convert the VM partition using vboxmanage.
* Copy the VM files.

I have done both.

I have a removable drive caddy to prep new disks.

To convert the VM using vboxmanage:
(The first step is needed only if you are using a dynamic drive.)
vboxmanage clonehd dynamic.vdi fixed.vdi --variant Fixed
vboxmanage convertdd disk_image.vdi disk_image.img --format RAW

I use gparted to create the new partition on a new disk as well as a swap partition.

Then I use dd to copy disk_image.img to the new hard disk partition:

dd if=/path/to/disk_image.img of=/dev/sdX1

The second option requires mounting the VM from the host system which requires bridge networking and NFS. Then I insert my new disk into my removable drive caddy, create the partition, and copy files.

In either case, be sure to check the following on the new disk:

* /etc/fstab
* Delete /etc/udev/rules.d/70-persistent*

You will need a method to boot the system the first time. The Slacwkare DVD should suffice. Then install your preferred boot loader.

I have not provided a detailed check list, but hopefully you get the basic idea.
 
Old 07-12-2014, 03:49 PM   #5
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648

Original Poster
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I was wondering if something like this would work?

https://wiki.archlinux.org/index.php...kup_with_rsync
 
Old 07-12-2014, 07:54 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,048

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Transfer from a VM to a physical machine is the same as any system to system copy/clone. There are a few items you may need to fix but you'd have those in any clone to different hardware and disk size.

You could use G4U or Clonezilla or redobackup or gparted even to move some or all data.

Not sure I'd start with dd. Too much time. Try to start with file to file type images.
 
  


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
Move Slackware guest from a Slackware hosted Virtualbox to Windows hosted Virtualbox? damgar Slackware 1 08-07-2012 11:28 PM
Slackware LDAP Server Wont Compile snoop20 Linux - Software 3 06-20-2011 04:54 PM
Transfer VirtualBox from one computer to another. Ununtu 9.10 to Ubuntu 10.04 pizzipie Linux - Virtualization and Cloud 2 11-23-2010 03:48 PM
Can't Compile VirtualBox 1.6.6 In Slackware Current Woodsman Slackware 8 12-18-2008 02:36 PM
file transfer with virtualbox OSE oguejiofor obiora Linux - Newbie 2 11-15-2008 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:44 PM.

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
Open Source Consulting | Domain Registration