Koozali.org: home of the SME Server

VMWare Server on SME

Offline crbarnett

  • 2
  • +0/-0
VMWare Server on SME
« on: June 21, 2007, 07:40:29 PM »
I am a newbie to Linux.  Recently our company has switched to linux when our netware server died.  I am running VMWare Server on two Linux servers.

I have 2 problems:

1: When I copy a virtual machine to a new directory on the same server and try to start it, I get an error about the vmx file rights

2: How do I copy a virtual machine to my other server.  I don't know putty that well yet.

Thanks,
Chris

Offline mmccarn

  • *
  • 2,656
  • +10/-0
VMWare Server on SME
« Reply #1 on: June 23, 2007, 07:08:26 PM »
Checking file rights on the same machine:

Do this:
Code: [Select]
ls -l /path/to/original/vmware/files
this will sow you the access rights and pwnership settings the files need for vmware to work.

I haven't run vmware on Linux so I don't know for sure -- but I suspect vmware runs as a specific user, and when you copied the files you were logged in as 'root' -- so the new copies belong to 'root' instead of to the 'vmware' user.

post back what you get from the command above if you don't know what to do.


Copying files from one linux system to another can be accomplished in any of several ways:
  • scp [[user@]host1:]file1 [...] [[user@]host2:]file2
  • WinSCP (search in Google) - copy the file to your Windows box, then over to the other Linux box
  • mount a samba or nfs share from one system on the oter, then copy with 'cp', 'cpio', 'tar'...
  • ftp
  • make the file available via httpd, then use wget or curl to download it to the other system

Offline raem

  • *
  • 3,972
  • +4/-0
Re: VMWare Server on SME
« Reply #2 on: June 23, 2007, 11:30:54 PM »
crbarnett

This method will retain permissions & ownership

Save/compress the folder structure and files to a tar.gz format using the tar command (at the root prompt)
Then copy that file between machines using the scp command.
Then untar the file using tar

To find out usage (from root prompt) do
man tar
man scp

to pack do
cd to folder required to be packed
cd /home/e-smith/files/ibays/ibayname/html
tar -czvf /home/e-smith/files/ibays/saveto-ibayname/html/filename.tar.gz *
(note remember to include * at the end)

to unpack do
cd to folder that files are required to be unpacked to
tar -xvzf filename.tar.gz

to copy between servers (you will be asked for root pw of other server)
scp filename.tar.gz otherserverIP:/tmp
...