How to prevent Linux virtual machine to close/logout on VMWare? - linux

I'm trying to run a CentOS distribution on VMWare. Because the Linux is running calculations, i need this machine to never stop.
I've tried to run it in VMWare player, after 20 minutes of "innactivity", the session logout. I've tried to run it in VMWare Workstation, it does the same.
How do i manage the Linux or VMWare to prevent this logout ?
Thank you.

I had the same problem a while ago, if I can remember correctly, you need to do the following:
Shutdown the Virtual Machine.
Locate the Virtual Machine .vmx File.
Open The .vmx file in any text Editor.
Add This line: suspend.disabled = "TRUE"
Start the Virtual Machine again.
Hope this helps.

Related

Ubuntu Virtual Machine installation on Windows

I'm installing Ubuntu Linux on my Windows 10 host using VirtualBox. I arrived at this page after some steps. Should I go ahead and select the first option? Will it delete files on my Virtual Machine (Ubuntu), or the Host Machine (Windows 10)? Thanks in advance.
Don't worry. It won't delete your files from host OS. This erasing and subsequent installation happens on the virtual OS space that you would have allocated while creating the virtual hard disk.
Yes. The first clears only the VHD.
!! IF YOU INSTALL IT OUT OF YOU VM, DON'T CHOOSE THIS !!

Could not open virtual machine: The virtual machine appears to be in use

I am trying to open ubuntu in vmware workstation 12. But there is a error
Could not open virtual machine:
C:\Users\MANDEEP-THAKUR\Documents\Virtual Machines\Ubuntu 15.10\Ubuntu 15.10.vmx
The virtual machine appears to be in use.
here is the screenshot
when i delete the .lck extension folder from the vmware workstation folder and again starts the vmware workstation then there are again some errors those errors are showing below.
VMware Workstation cannot connect to the virtual machine.
Make sure you have rights to run the program, access all directories the program uses,
and access all directories for temporary files.
Failed to connect pipe to virtual machine: All pipe instances are busy.
here is the screenshot of this error..
please suggest me what to do.
Thanks
press Ctrl alt del, it opens the start manager... locate VM in service and end all process.. then open your VMware it up will work :)
you not only need to delete the lock file but also the .vmem file, close the VMware workstation wouldn't release the lock on the vmem file, you need to restart your PC first
you simply need to close all the processes of vmware workstation from the taskbar.
when you ended all the processes of vmware workstation from taskmanager then you can easily run the ubuntu again in vmware workstation.
You need to close VMware Workstation, on VM's folder find and delete any .lck or .lock files, open again the VMware Workstation and start the VM.
This might solve your problem
open task manager
go to background processes
stop the vmware-hostd.ext process.
restart vmware and you are good to go.

How to set up Virtualbox 1366x768 resolution for a Linux guest?

I have been trying maybe weeks now to figure out how to configure VirtualBox to have 1366x768 resolution on a linux guest, which is on a windows 8.1 host.
My configuration:
Windows 8.1 as host
Linuxmint 17.1 as guest (tried ubuntu and debian too but no luck)
Virtualbox 4.3.26 and its extension pack
Laptop is powerful with 16GB ram and 4GB Nvdia
My problem is that it doesn't matter what I used, nothing worked.
Please do not post the answers on most known websites, I tried them already.
Once your VM is started, you need to run the VBox Linux Guest Additions.
First try to run it from the VirtualBox window's menu:
Devices >> Insert guest Additions CD image...
and follow the instructions.
If that fails, open a terminal and go to the directory where you CD reader is mounted (/run/media/ on Fedora or /media/ on Ubuntu for example).
Then type command sudo ./VBoxLinuxAdditions.run
Complete instructions can be found on the VirtualBox user manual
Once Guest Additions are installed, reboot your virtual machine. You should be able to resize your screen to your heart's content.
I installed the new VirtualBox 5.0.0_BETA2 and it solved my all problems. Great product is getting ready! Cant wait the latest release. more than a PERFECT software. Now you can remove top bar and/or bottom bar easily. Show what you need.
If you are having problem like me with 1366x768 I recommend you to install latest versin of VB even if it is Beta!

open Teamviewer on a Debian machine via PuTTY on a Windows machine

hope everyone is doing well.
Got an issue I would like to pick the great brains in this forum about.
So, I have many Debian machines I often remote into using Teamviewer and a Windows machine, which works out great; however Teamviewer crashes for what appears to be no apparent reason. When such happens, normally I will PuTTY into the suspect Debian machine from a Windows 7 machine and issue the shutdown -r now command. When the debian computer reboots, so does Teamviewer and the suspect Debian machine is now visible in the "My computers" list on my Windows machine.
My question is this, why cant I just type teamviewer from the command line while PuTTYing into the Debian machine and have Teamviewer reopen on the Debian machine, making it visible in "My computers?" When I execute teamviewer command from PuTTY command line, I see the verbose output of teamviewer opening, but the machine never becomes visible in "My computers."
Now, I know it is possible to start Teamviewer remotely and have it show up back in 'My computers" list. I can do it via NoMachine; I simply connect to the suspect Debian machine and double click on the Teamviewer desktop launcher. However, NoMachine is very heavy and quite frankly, i just don't like it. I also know I can execute teamviewer via command line while sitting in front of the suspect Debian machine. PuTTY would be so much faster.
I have also tried VNC as well as X sessions. In both cases, i can open Teamviewer and it shows up in "My computers," but when I close the VNC of X, Teamviewer also closes and removes itself from "My computers."
Can someone help me figure out a way to restart Teamviewer via PuTTY please? Is there a way to open a desktop launcher via PuTTYs command line? Or is there a way to tell Teamviewer to execute in the suspect Debian machines active desktop session via PuTTYs command line?
Thanks all

auto reboot SLES11 SP1 as a VM

I have a SLES11 SP1 (64bit) Linux installed as a VM with VMWare Player. I was trying to configure this Linux host for auto reboot after panic. For that, I added "kernel.panic=10" to /etc/sysctl.conf. After reboot, when the host panic'ed, it did not reboot automatically. Does anybody has an idea ?
I tried installing SLES11 SP1 (64bit) on ESXi server as well, but same result. I could not get it to autoreboot after panic.
I tried same settings with another distro (ubuntu 64bit), but these settings worked in that case.
If there is some other setting I need to do, please do let me know.
Thanks
For ESXi installation, you can trigger automatic reboot of guest virtual machine as follows:
Goto Configuration section -> Virtual machine startup/shutdown, and there you can add the virtual machine for automatic startup by clicking on 'Properties' button, so that it reboots automatically. You can also define 'Startup delay' and 'Shutdown delay' for both 'Automatic startup' and 'Manual startup'.

Resources