LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-21-2010, 07:41 AM   #1
slickrcbd
Member
 
Registered: Jan 2003
Posts: 45

Rep: Reputation: 1
Copying configuration from a vmware machine to a real one


I'm doing a school project for my masters and ran out of time setting up the system. Unfortunately, I can't easily use the removable hard drive I had at school.

The school does permit students to buy a portable hard drive and use VMware player to run virtual machines, at the student expense if they want to be able to work at home, vs the hard drive they provide as part of the tuition. I'm planning to borrow one for this.

If I can get the DNS server and DHCP server running with vmware, how easy would it be to either copy the conf files for dhcpd and bind from the portable drive to the removable drive (looks just like a regular SATA drive once it's in the machine) via a flash drive or e-mail?

Alternately, move the configuration files for CUPS, SSH server, and NFS including the part about excluding Root for NFS and SSH to the virtual machine?

Which do you guys think would be easier?

Also, could somebody list the files I'd need to move the configuration for Fedora 12 for the situation I described just to help me double check that I got everything?
Assume everything else is what is preinstalled off the DVD for Fedora 12, although I did yum install all those services and when possible the system-config utils.

Last edited by slickrcbd; 08-21-2010 at 07:43 AM.
 
Old 08-21-2010, 11:31 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
It's easiest if you try to see a VMware guest as any other machine with the exception that you can not access the filesystem directly (except monolithic VMDKs which should be nbd-mountable using vmware-mount) if it's not powered up. So if you mean copying between filesystem and VMware image then either vmware-mount it or else just bring the guest(s) online and copy between filesystems and guests with SCP, FTP, SMB, removable USB devices, fd image, ISO image.
 
Old 08-22-2010, 12:52 AM   #3
slickrcbd
Member
 
Registered: Jan 2003
Posts: 45

Original Poster
Rep: Reputation: 1
I've never used vmware, and am attempting to figure it out as I go.
Most of what you wrote is beyond me.
How difficult is it to get files onto my flash drive, or set up the virtual machine to put stuff onto either a Vista Home Preimum file share (the host OS), Windows 98SE file share, or an Appletalk share on my old Powermac 6500/300?

On the other end, will I have any difficulties copying the config files from the flash drive into the /etc folder provided I log in as root to do it? Windows doesn't generally like you trying to do things that way. You usually need to use slipstreaming or push them with group policy. If you can't do that, you usually have to set it up manually using the built-in interface. Since most of my Linux configuration seems to be done by editing .conf files, I assume I can simply copy them from one machine to another provided they are both running the same software?
I admit I barely know what I'm doing, but that was the point of the class. My only practical experience setting up DNS and DHCP is with Server 2003 and I tested out of most of the prerequisites. The school's choices are different from what I learned on and I've been adapting.
 
Old 08-22-2010, 04:23 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by slickrcbd View Post
I've never used vmware, and am attempting to figure it out as I go.
Cool.


Quote:
Originally Posted by slickrcbd View Post
How difficult is it to get files onto my flash drive, or set up the virtual machine to put stuff onto either a Vista Home Preimum file share (the host OS), Windows 98SE file share,
In the VM host configure the VM guest: add USB adapter and enable it for the guest. Once the guest boots (check if access to the device is enabled) it should automount after which you can copy over files: How to transfer files between VMPLAYER session and host computer, Copy Files between Guest and Host with VMWare Player.


Quote:
Originally Posted by slickrcbd View Post
On the other end, will I have any difficulties copying the config files from the flash drive into the /etc folder provided I log in as root to do it? (..) Since most of my Linux configuration seems to be done by editing .conf files, I assume I can simply copy them from one machine to another provided they are both running the same software?
Some configuration files may contain information that is local to the machine (hostname, accounts, hardware configuration, network settings) and some don't. So generally speaking copying files between Linux instances should not be problematic as long as you respect CR/LF settings (in case you edit them during copying in a different OS). Making backups and using versioning are considered standard practices.
 
Old 08-22-2010, 12:54 PM   #5
slickrcbd
Member
 
Registered: Jan 2003
Posts: 45

Original Poster
Rep: Reputation: 1
In this case, I'm actually TRYING to copy the hostname and network settings, although there is one change in that the default gateway on my home network is 192.168.1.1 while the default gateway at the school lab is 10.50.something (got it written down, don't feel like finding it in my notes).
Other than that, I'm trying to treat the machines as if they were the same, since I'm just trying to get things to work at home, copy the config files, and install them on the school machine to set up the simulated network. Among other things that are given to me are hostname and network settings. I am after all setting up a DNS and DHCP server.
 
Old 08-23-2010, 10:57 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by slickrcbd View Post
In this case, I'm actually TRYING to copy the hostname and network settings, although there is one change in that the default gateway on my home network is 192.168.1.1 while the default gateway at the school lab is 10.50.something (got it written down, don't feel like finding it in my notes). Other than that, I'm trying to treat the machines as if they were the same, since I'm just trying to get things to work at home, copy the config files, and install them on the school machine to set up the simulated network. Among other things that are given to me are hostname and network settings. I am after all setting up a DNS and DHCP server.
FWIW in VMware Server (probably not Player) you can use the built-in DHCPCd to create an isolated 10.50/16 subnet easily. That way you could probably mimic your school LAN setup better.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
vmware virtual machine slow in vmware client, faster viewer available? purplesocrates Linux - General 1 06-17-2008 10:40 AM
installation by copying it from one machine to another machine betrussell23 Linux - Newbie 5 03-05-2007 09:56 AM
Copying files off Ipod and having real file names.. bugg_tb Linux - Desktop 2 10-24-2006 04:31 AM
Stand-by machine in case real machine crashes jlinkels Linux - General 1 05-19-2005 08:28 AM
Vmware Virtual Machine Problem With Windows In Vmware jvdbossc Linux - Software 2 05-28-2004 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:52 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