Vmware copy paste linux

Copy, Paste and Drag n Drop between Windows and VMWare Workstation Debian/Ubuntu VM

After creating a new Debian VM in VMWare workstation, Even after installing VMWare tools Copy/Paste, Drag n Drop from Windows Host to Debian VM was not working. It was painful to use the VM as you can’t share information between host and the VM.

After several trial and error method, here is what worked for me. Hope this would come in handy for others who are in same situation

  • If open-vm-tools installed then remove the latter by running aptautoremove open-vm-tools –purge-y. Reboot the VM
  • Install VMWare Tools, refer this link. Reboot the VM
  • Install apt install open-vm-tools-desktop -y. Reboot the VM.

This worked like a charm. My host OS = Windows 10 and VM = Debian 10

Rebooting after each completing each step is not mandatory but I prefer to reboot even though its Linux 🙂

In addition tothe above steps, enable Shared Folders which may come handy at times.

Go to VM Settings > Options Tab > Shared Folders. Provide the folder path to share (make sure sensitive data is not inside the folder/folders) and set to ‘Always enabled’

Thanks for stopping by, please spread the word with your friends and work mates if this blog found to be useful. Also, share your comments and ideas to improve this blog.

Share this:

Источник

How to enable copy paste from between host machine and virtual machine in vmware, virtual machine is ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

I am trying to copy and paste from my pc to the vm but i cant. I also enable copy and paste but i still can’t copy and paste from my pc to the vm. My pc runs windows 8.1 my vm has fedora.

8 Answers 8

This worked for me. Might want to try editing virtual machine settings:

Click on Edit virtual machine settings

Switch to Always Enabled in Options, Shared Folders

You need to install VMware Tools on your vm:

To install VMware Tools in most VMware products:

Power on the virtual machine.

Log in to the virtual machine using an account with Administrator or root privileges.

Wait for the desktop to load and be ready.

Читайте также:  Драйвера видеокарт linux ubuntu

Click Install/Upgrade VMware Tools. There are two places to find this option:

  • Right-click on the running virtual machine object and choose Install/Upgrade VMware Tools.
  • Right-click on the running virtual machine object and click Open Console. In the Console menu click VM and click Install/Upgrade VMware Tools. Note: In ESX/ESXi 4.x, navigate to VM > Guest > Install/Upgrade VMware Tools. In Workstation, navigate to VM > Install/Upgrade VMware Tools.

If anyone has already tools installed on Linux and still isn’t able to copy/paste, please make sure you have open-vm-tools-desktop package installed as this seems to be a key package here. You can install it on Ubuntu sudo apt-get install open-vm-tools open-vm-tools-desktop

Make sure /usr/bin/vmtoolsd -n vmusr process is running (see Start VMWare process manually). Execute /usr/bin/vmware-user to enable copy and paste.

Here is a small hint that I hope might be useful to other poor saps that experienced the same issue as I did.

My Setup: Host: Windows 7 Enterprise — build 7601 SP 1 VM: VMware® Workstation 12 Player 12.1.1 build-3770994 (free) Guest: Fedora release 23

I naively failed to install open-vm-tools-desktop. I say naively because I had no idea such a thing existed, nor do I understand why instructions to install open-vm-tools do not (or at least where I read them, do not) include mentions of this package.

Installing open-vm-tools on its own appears to be nearly useless — the desktop package makes the copy and paste function — probably the single most important function of VMTools — work.

So, there you go. Install open-vm-tools-desktop, and copy-paste should work

That did it for me. I had uploaded my VM onto an ESXi host, and my copy-paste stopped working. I had installed open-vm-tools but not open-vm-tools-desktop! I was about to set up an rdp connection after trying everything under the sun.

Thanks for this, I looked high and low for what I was missing and the desktop was the key, but you don’t find this posted anywhere else.

If your VM already came with VMware Tools pre-installed, but this still isn’t working for you—or if you install and still no luck—make sure you run Workstation or Player as Administrator. That fixed the issue for me.

here is another solution I started using after being fed up with the copy and paste issue:

  1. Download MRemote (for pc). this is an alternative to remote desktop manager. You can use remote desktop manager if you like.
  2. Change the VMNet settings to NAT or add another VMNet and set it to NAT.
  3. Configure the vm ip address with an ip in the same network as you host machine. if you want to keep networks separated use a second vmnet and set it’s ip address in the same network as the host. that’s what I use.
  4. Enable RDP connections on the guest (I only use windows guests)
  5. Create a batch file with this command. add your guest machines:
Читайте также:  Mount point для linux

vmrun start D:\VM\MySuperVM1\vm1.vmx nogui vmrun start D:\VM\MySuperVM2\vm2.vmx nogui

save the file to startmyvms.cmd

create another batch file and add your vms

vmrun stop D:\VM\MySuperVM1\vm1.vmx nogui vmrun stop D:\VM\MySuperVM2\vm2.vmx nogui

save the file to stopmyvms.cmd

  1. Open Mremote go to tools => External tools Add external tool => filename will be the startmyvms.cmd file Add external tool => filename will be the stopmyvms.cmd file So to start working with your vms:
  2. Create you connections to your VMs in mremote

Now to work with your vm 1. You open mremote 2. You go to tools => external tools 3. You click the startmyvms tool when you’re done 1. You go to tools => external tools 2. You click the stopmyvms external tool

you could add the vmrun start on the connection setting => external tool before connection and add the vmrun stop in the connection settings => external tool after

Источник

Copy/paste and drag&drop not working in VMware machine with Ubuntu

Suddenly copy/paste stopped working from/to Windows 8 host computer to/from ubuntu virtual machine. Ubuntu restart did not help. I tried command:

sudo apt-get install open-vm-tools 

But got report I have newest version. Guest Isolation settings are enabled. What could be the scenario of fixing this problem?

Note that this is a known issue — there’s an issued with shared files not working in a Linux VM, and it seems similar components of that don’t work with VMware at this time.

I noticed this problem has to do with me using a different window manager. VM shared clipboard works fine using gdm3, but when I switched to DWM shared desktop no longer worked

9 Answers 9

I had the same problem and found that this can be fixed by executing the following commands:

  1. sudo apt-get autoremove open-vm-tools
  2. Install VMware Tools by following the usual method ( Virtual Machine —> Reinstall VMWare Tools )
  3. Reboot the VM
  4. sudo apt-get install open-vm-tools-desktop
  5. Reboot the VM, after the reboot copy/paste and drag/drop will work!

I found I didn’t need to install VMware Tools. Doing an apt-get of open-vm-tools, then open-vm-tools-desktop, and then restarting worked for me.

I tried the approach suggested by solution101 above, but it didn’t work for me. This is how I solved the problem:

  1. Open Terminal
  2. sudo apt install open-vm-tools-desktop
  3. restart the guest operating system

This seems to have fixed the copy-and-paste issue for me.

This is copied verbatim from a vmware community forum:

  1. Go into VM / Settings / Options / Guest Isolation
  2. UNCHECK bothcheckboxes (Enable drag and drop, Enable copy and paste) and click OK.
  3. Shut down the guest, and shut down VMware Workstation
  4. Reboot the host computer
  5. Run VMware Workstation but do not launch the guest yet.
  6. Go into VM / Settings / Options / Guest Isolation for the guest, and
  7. CHECK both checkboxes
  8. Power On the guest.

@AlaaM. Perhaps they have removed the feature? I no longer run VMWare, but instead am using KVM/QEMU for virtual machines.

Читайте также:  Grant permission for user linux

The best and working solution is restarting your VMWare application (Workstation, Fusion, etc.), not the VM itself. (provided, of course, that you have installed the VMWare tools already.)

In my case I also needed to restart the VMWare Workstation Server service (vmware-hostd.exe process). Just restarting VMWare application was not enough.

In my case, somehow the guest start-up job running the VMware User Agent was removed from my xfce session autostart. You need to run /usr/bin/vmware-user-suid-wrapper at login

Same with KDE 5.25. It worked fine in KDE 5.24, but now this needs to be manually run at startup it seems. Unfortunately just running it via KDE’s autostart doesn’t seem to fix the issue.

running /usr/bin/vmware-user-suid-wrapper worked for me after trying @Charles Green (worked for me before but not this time)

You can’t uncheck the checkboxes while the VM is running; they are disabled. If you do this when the VM is not running, there is no effect (VMWare Workstation 12 Pro).

I can see how old this post is, but I noticed something relevant; it wasn’t even Ubuntu. Apparently «Shared folders» must be enabled prior to installing open-vm-tools — also had open-vm-tools-desktop already installed and nothing worked. Reinstalling both packages does the job, seemingly when shared folder were enabled; this works instantly. With apt-get :

sudo apt-get install open-vm-tools open-vm-tools-desktop --reinstall 
sudo dnf reinstall open-vm-tools open-vm-tools-desktop 

I’d assume that when enabling «shared folder» before the OS install, it should work out of the box.

Источник

Enabling copy/paste on an Ubuntu VM on VMware Workstation

This is a bit of a miscellaneous post. I’ve had some trouble making my copy/paste work on a Ubuntu VM and hopefully it will help someone.

Installing VMware tools

First, make sure you have VMware tools installed.

sudo service vmware-tools status 

If it’s not installed, then first make sure you don’t have the open-vm-tools installed.

sudo service open-vm-tools status 

If you do have it installed, uninstall it.

sudo apt-get remove open-vm-tools sudo apt-get remove --auto-remove open-vm-tools sudo apt-get purge open-vm-tools sudo apt-get purge --auto-remove open-vm-tools sudo reboot 

Then, after your computer reboots, you can install the VMware tools. If you didn’t have open-vm-tools, you can skip to this step.

Click on Virtual Machine > Install / Update / Reinstall VMware Tools. Extract the VMware Tools tar to the Desktop and follow the below commands.

cd Desktop/vmware-tools-distrib Run this command to install VMware Tools: sudo ./vmware-install.pl 

Follow the prompts to install. I picked the defaults.

Reboot your computer and copy/paste should work with the default window manager.

i3

If you use i3 as a window manager, go to the i3 config at ~/.config/i3/config and add the following line at the end. (This assumes you already had an i3 configuration file created).

exec --no-startup-id vmware-user 

Источник

Оцените статью
Adblock
detector