Skip to main content

Copying files to a VMWare Server

I am using VMWare a lot for my Oracle activites. To be specific I use the VMWare Server. Now one of the missing features of the VMWare Server is that the drag and drop of files does not work.
Typically with a Linux I use WinSCP from my Windows Vista host. With a Windows guest I often use the feature of the Remote Desktop to connect my local drive.
Another possibility exists, although it is a little awkward and almost cumbersome if you need to transport a lot of files.
In the VMWare Server a utility exists which will copy a file into the guest OS. This utility is called vmrun and it works as follows.
Go to the directory where the file that you want to copy is located. Then execute the vmrun command with the following switches:
-T server
-h https://yourVMWareServerName:port/sdk (typically the port is 8333)
-u username_of_the_vmware_server
-p password_of_the_vmware_server
-gu username_of_the_vmware_guest
-gp password_of_the_vmware_guest
copyFileFromHostToGuest
“VMWare Configuration File”
source_file_name target_file_name
In the following screenshot you can see this command in action.



If you don’t know the VMWare configuration file location go to the summary page of the VMWare image and click on the “Configure VM”. This will bring up the following dialog box. The VMWare configuration file location is in the second part of the dialog box.


Comments

eMarcelCom said…
Well, It's good to know about that possibility which is vmrun. Thanks for info Andreas! However I haven't found it more handy than WinScp or Remote desktop - so many arguments must be provided, command line and so on. WinSCP can be also used from command line in similar way as ftp client, but here we have connection secured with all common commands available.

Cheers!!
Admin said…
Hi, my name is Christ Kowandi, I'm from Indonesia, honestly i am not very familiar with this VM Server thing, but i really admire the way you make and master fully this simple blog. It's description and originality is very good. Nice to know you. I also own a blog, sports blog, if you have time, please pay me a visit. Bye and thanks.
divorced said…
Good tip. I always RDP'ed to the server (quicker interface than the console) and just shared my local resources on the RDP settings. Copy to and from that way. It's a bit slow but it works. However, that will only work for Windows...

Popular posts from this blog

Different silent install files WLS 10.3.2 and 10.3.3

Today I tried to cut some corners and use a silent.xml file for WLS 10.3.3 for a silent installation of 10.3.2. To my amazement on a clean machine I received the following error: oracle@xxx001:/opt/oracle$ java -Djava.io.tmpdir=/opt/oracle/tmp -jar /nfsstage/wls1032_generic.jar -mode=silent -silent_xml=./silent/wls_silent.xml -log=/tmp/wls.log Extracting 0%....................................................................................................100% The local BEA product registry is corrupted. Please select another Middleware Home or contact Oracle Support I checked the wls_silent.xml file and found that it includes Coherence, which was not bundled with the 10.3.2 version. So I modified the 10.3.3 silent_xml file from value="WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third ...

Oracle Fusion Middleware Forum in Valencia

Last week the 22nd Fusion Middleware and PaaS Partner Community Forum took place in Valencia, Spain. For me this was a very valuable experience - again as I have visited a number of #ofmForum before. Let me recap here the highlights of this meeting. After a great Welcome-Reception the evening before, where everybody had the chance to catch up with a large number of old (and soon-to-be new) friends, the conference started with a kind of the state of the union by Jürgen Kress. The community already has more than 8000 people. This - in a fact - is a tremendous achievement. Everybody agrees that this is only possible by the relentless work of Jürgen who puts a big effort into this. It shows that other areas inside the Oracle technology stack do not benefit by equivalent communities. Even other communities, when they exist at all, do not compete in the same league. So a VERY BIG THANK YOU for Jürgen is at its place here. After the opening a keynote from Alistair Hopkins showed ver...

Unpacking Oracle cpio for AIX

When extracting a cpio file with Oracle software from OTN on AIX you might encounter the following problem: oracle@mymachine-app:/install/oracle/MRCA>cpio -idmv cpio: 0511-903 Out of phase! cpio attempting to continue... cpio: 0511-904 skipping 642010 bytes to get back in phase! One or more files lost and the previous file is possibly corrupt! Segmentation fault The solution is to use the option -idcmv oracle@mymachine-app:/install/oracle/MRCA>cpio -idcmv c Reads and writes header information in ASCII character form. If a cpio archive was created using the c flag, it must be extracted with c flag.