LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-22-2016, 09:06 PM   #1
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

Rep: Reputation: 0
Virtual Box to bootable on HDD


Sorry If this is the wrong board and/or Forum.

For awhile I have been doing a lot of test/learning development on my virtual box while at home on my main (gaming) rig.

However, since my rig will go to sleep while idle, it actually shuts down connections to my virtual box and when it does come back up, I am unable to reconnect to the network on the VM without having to restart the VM.

I got my hands on a HP tower, I will use this as a dedicated server.

I got a tone of software and settings setup on my VM OS that I cannot afford to lose.

I want to convert this VM so that can be used as a physical OS.


I am running Virtualbox 5... The Linux OS is CentOS 6.6.
 
Old 02-22-2016, 09:45 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
For the most part a virtual machine is a real machine. You'd take steps to clone or move a system just like you would a physical to physical. Unique names need to be edited before you move to generic or edited later. Some drivers may need to be adjusted or added in later or before the move.

You might try some distro like clonezilla to copy to a usb drive maybe then move to the new host.

Many people like the command dd and pipe it to gz to a file then dd it back to the new host. G4U would do that basically.

Since your distro has a ton of free information you should look up ways to clone Centos or RH or Fedora for ideas.

There are V2P programs out there too.

You could boot your vm from a live iso image and then use netcat over to your networked live booted host too.

Really many many ways to do what you want.

Last edited by jefro; 02-22-2016 at 09:47 PM.
 
Old 02-23-2016, 07:50 AM   #3
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
For the most part a virtual machine is a real machine. You'd take steps to clone or move a system just like you would a physical to physical. Unique names need to be edited before you move to generic or edited later. Some drivers may need to be adjusted or added in later or before the move.
......
Thanks for the replies. I did come to the idea of cloning it, since I had to do that once to upgrade my main HDD a month ago for storage.

Quote:
Originally Posted by jefro View Post
You might try some distro like clonezilla to copy to a usb drive maybe then move to the new host.
Many people like the command dd and pipe it to gz to a file then dd it back to the new host. G4U would do that basically.
You actually sparked an idea I'm surprised I didn't see before.
I'm wondering if it would work out for me to just install a Clean CentOS 6.6, and then copy files over from the other machine overwriting any if necessary.


I guess this gives me something to work on when I get off work. I'll update this board again after my testing
 
Old 02-23-2016, 05:16 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
A clean install is the best, generally, however you'd need to know the packages you installed and how you installed and configured them. If all the software came from a package manager then you can usually get a list or automate it's replication.
 
Old 02-23-2016, 08:28 PM   #5
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
A clean install is the best, generally, however you'd need to know the packages you installed and how you installed and configured them. If all the software came from a package manager then you can usually get a list or automate it's replication.

First I need to find out how to get this installation to work.

Maybe I can create a live DVD at work tomorrow.
------------

EDIT 2/24/2016:

I took the HDD to work and created the DVDs and got it up and running. I've set up the network as-well as vncserver with Desktops.

I will transfer over my data from the VM and see what happens.
Attached Thumbnails
Click image for larger version

Name:	1456280864675-1556164103.jpg
Views:	11
Size:	241.0 KB
ID:	20931  

Last edited by JoseKreif; 02-24-2016 at 12:36 PM.
 
Old 02-24-2016, 02:29 PM   #6
JoseKreif
Member
 
Registered: Jul 2015
Location: Iowa
Distribution: CentOS 6.6, RHEL Server release 5.5 (Tikanga)
Posts: 58

Original Poster
Rep: Reputation: 0
Well I got it up and running from scratch. I've installed a few things and made some changes here and there. Once I got a good foundation I started copying over the important things such as all scripts in /bin and ~/bat/

I've copied over the files such as .bashrc, .env, .bash_profile, etc. I also copied some of the databases. Things are looking good.


I did receive an error "dcop no found" with one of the scripts, I'm not sure how many more scripts use that, but the script I found it in was using it in a non essential way, so I commented it out.

The moment of truth is when I take this HDD come to try to stick in the correct PC.

It may take time and usage to see if everything is working correctly, but as an overview, things are working.



I finally had the time to mess with the .env and set it to use $(whoami)@$SYSNAME instead of $LOGNAME@$SYSNAME. This allows me to get the username on the display to change when I "su" back and forth
Attached Thumbnails
Click image for larger version

Name:	lq.PNG
Views:	8
Size:	22.2 KB
ID:	20943  

Last edited by JoseKreif; 02-24-2016 at 03:02 PM.
 
Old 02-24-2016, 04:32 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Cloning it would have been a good exercise too.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Issues trying to install Virtual Box Guest Additions on RHEL v6.5 in Virtual Box JockVSJock Linux - Virtualization and Cloud 4 07-13-2015 09:14 PM
Slackware 13.37 and Virtual Box 4.1 / Virtual Box 4.012 chris_kzn Slackware 4 07-29-2011 01:51 AM
Linux on USB flash/HDD, bootable as well as virtual nayeem Linux - Newbie 3 12-02-2010 12:08 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
Bootable partion on external HDD? 40 gb firelight hdd. Trebile34 Linux - Hardware 1 03-14-2005 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:14 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
Open Source Consulting | Domain Registration