Is it possible to run SikuliX on a host computer and have the script interact with virtual machine? - virtual-machine

Currently running Windows 10 (native) and VMware Workstation 12 Player. I am running various LTS releases of Ubuntu in VMware.
I am wondering if there is way for me to run SikuliX on my main OS, Windows 10, and have the script interact with a virtual machine, running an Ubuntu OS, that I have open.
The quickstart documentation on the download site isn't very specific about the limitations of SikuliX on this topic. It simply says that you can't run it on a headless system (which VMware is not), and you need to have a monitor - the only problem is that I have no idea if SikuliX considers VMware to be a legitimate monitor or not.
I am aware of the fact that you can install Sikulix on the virtual machine itself, but this is not preferable as I would have to possibly reconfigure my VM settings to allocate more memory OR just deal with running the script at a slower pace.
Any help would be greatly appreciated.

The answer is yes, if you run SikuliX on a native host, it is possible to interact with the the interface of the virtual machine the same as running SikuliX on the virtual machine itself.
Now that I think about it, I should have probably tested this out before posting the question, but hey, if anyone has the same question as I do, now you know.

Related

How to run a discontinued videogame on a Windows XP virtual machine?

My friend and I have downloaded some discountinued videogames from Old Games Download - Retrogaming and Abandonware (which I warmly recommend to any CD-ROM aficionado!). We managed to run two of them after downloading them, mounting their .ISO file and installing them on a Windows 10 machine. The process was fairly smooth.
We are struggling to run the other two. They’re only compatible with Windows XP, so we created a virtual box with XP as the OS, but still no luck. We can’t get the virtual box to connect to Wi-Fi in any way, even after following several tutorials found online. We have tried mounting the games’s ISOs in the following ways:
Using Virtual Clone Drive
Using WinCDEmu
Using Win XP Virtual CD Control Panel
And we think we have managed to actually mount the ISO and install the programme on the virtual machine, but the game won’t start anyway. When we try to run it, this window opens:
Monsters & Co CDROM initial window, with title, play button, exit button
But when we click ‘play’ nothing happens. We have checked the “Insert Guest Addition CD Image” setting that triggers Autoplay and it seems to be up and running. What can we try next?
VirtualBox access internet by connecting to your real machine (the host machine) as if it was a router of some kind. There is no need to make the virtual machine (guest machine) use your wifi adapter directly to get internet connection, just add a virtual network adapter to your guest machine and VirtualBox takes care of everything else (but make sure you have checked the appropriated options during installation process so drivers are installed in your host machine).
Now, the game not launching is hard to say, as we don't have any message or other info about what is causing the falling. Yet, this is a 3D game and VirtualBox is not good enough to hand this kind of computation.

open vm tools fails to customize guest

I am trying to deploy a cent-os 7 VM on a vcenetr from pyvmomi python library and then before powering on the VM I am trying to setup static IP and DNS for the VM.
VM creation goes fine , but guest customization fails, givimg following error:
**Customization of the guest operating system 'rhel6_64Guest' is not sup
ported in this configuration. Microsoft Vista (TM) and Linux guests with Logical
Volume Manager are supported only for recent ESX host and VMware Tools versions
. Refer to vCenter documentation for supported configurations."
faultCause =
faultMessage = (vmodl.LocalizableMessage) []
uncustomizableGuestOS = 'rhel6_64Guest'
Now this customization problem goes away if the VM is just rebooted once. After that we can do the guest customization.
But this reboot takes around 30 seconds of time and for our case , we need to get VMs up and running faster than this time.
Any body who faces similar problem and has some context on it will be very helpful.
Also I don't understand how rebooting the VM solves this problem.
Please share your thoughts even if you don't have exact solutions .
On further Investigation I found that open-vm-tools does not work until the VM is powered on atleast once.
When Machine is powered on , the HOST system detects the open-vm-tools running on guest OS , and from there on open-vm-tools works.
So open-vm-tools can not be used for initial provisioning as it will just not work at the start up.
Cloud-init is the alternative solution which should be used for initial provisioning.

How can I open the desktop GUI on my virtual machine in Bluemix?

I am running a virtual machine in Bluemix and want to open the OS's desktop GUI. How do I do this? Thanks for your help.
I've edited your question to what I think you're asking: How can I open the desktop GUI on my virtual machine in Bluemix?
Assuming I understand the question correctly:
To open the desktop GUI on a remote virtual machine, use Virtual Network Computing (VNC). This solution is not specific to Bluemix; it'll work with a VM running on any platform, as long as the VM is running an OS that supports VNC.
To use VNC, you need to have a VNC server running in your VM's OS. You will then run a VNC client (a.k.a. viewer) on your computer to display the VM's desktop. The specific instructions depend on the OS running in the VM and on your computer.
For example, assuming your VM is running Ubuntu v14.04, these resources explain what to do (and a search will find other resources):
"How to Install and Configure VNC on Ubuntu 14.04" -- Installs XFCE4 as the VNC server
"How To Install And Configure VNC On Ubuntu 14.04" -- Also installs XFCE4.
"How to Install VNC Server on Ubuntu 14.04 LTS" -- Installs TightVNC as the VNC server
For a VNC client, I actually connect to remote VMs via a local VM running Ubutu 14.04, so I use Vinagre (a.k.a. the Remote Desktop Viewer app). Options listed by other authors include TightVNC, RealVNC, or UltraVNC.
Good luck and thanks for using Bluemix.
From what I understand, you need some remote desktop tool to get to the UI of the OS of your virtual machine. Some tools available: http://www.techradar.com/us/news/software/applications/7-of-the-best-linux-remote-desktop-clients-716346

VMware player gives Virtualization is incompatible with long mode on this platform

We've physical machine on which several virtual machines are installed using vm player. Now we are trying to install tool on one of these virtual machines, the tool require vm player, so we installed vmplayer 4.0.0 on the virtual machine. But the vmplayer gives error while installing tool like "Virtualization is incompatible with long mode on this platform. Without long mode support the virtual machine will not be able to run 64 bit code.
The visualization option on the physical machine is already enabled.
Any help on this.
I managed to get long mode working in Vmware by uninstalling Virtual PC.
No nesting or something, it simply started working.
I don't think it's possible with VMWare Player on the host since the VT is not virtualized.
According to http://www.virtuallyghetto.com/2011/07/how-to-enable-support-for-nested-64bit.html?m=1
you could do it with VMWare vSphere 5

One click virtual machine demo?

I want to give a demo for my customers use virtual machine, but I don't want the customer to install the virtual machine software, can I make a demo which bundle the virtual machine software and my virtual machine, then just a click to run the virtual machine. It will be cool. is there any tool can do that?
I'm not aware of a virtual machine that doesn't need to be installed. If using Windows, the Microsoft Virtual PC is a relatively compact, free, quick-to-install option for a VM.
One other option would be to install an OS and your demo onto a USB flash drive. As long as the computer used can boot from USB (which is pretty common in newer computers), then you can have complete control over the OS in this fashion.
EDIT: Sun VirtualBox is free VM software. You do have to install it, but I've found that it works well, plus it's free.
You could try using Portable VirtualBox as per this forum thread. I have not tried it myself but it seems like some people have had luck with it.