Virtual Machine display in Mac - macos

I'm using ORACLE Virtualbox in my Mac, I get two problems when running a VM
The Display is shrunk, it doesn't occupy the complete screen even at Full Screen Mode.
When mouse is captured in the VM I'm unable to move it out of VM, when I'm not in Full Screen Mode.
I'm not sure why this happens

Related

Virtualbox: Maximize Window does not resize Guest Screen

Virtualbox 6.1.36 r152435, Host Win7, Guest Win7, Guest Addons installed, Guest graphics controller set to recommended VBoxSVGA. Host has two screens, each set to 1920x1200. Resizing the VM window does resize the guest screen, maximizing the VM window does not. It worked fine in Virtualbox 5. Tried to switch to VBoxVGA, did not help. What's wrong?
Update: Guest Resolution selection ends at 1400x1050. That explains why it can't switch to 1920x1200, but why the limit?
Reinstalled guest addons, switched to single VM monitor, resizing works after serveral reboots. Switching to two VM monitors breaks it again. Increasing VM graphics memory from 64 MB (indicated green in the settings screen!) to 128 MB finally resolved the issue.

Why does macOS handle screen resolution differently from Windows?

Apple iMac & MacBook lineup uses high-resolution display branded as "Retina Display" which by default, macOS will set the screen resolution below the native screen resolution. For example on the 13-inch Retina MacBook Pro, which comes with native resolution of 2560-by-1600, macOS will set the default resolution to 1280-by-800 with option to scaled to other screen resolution (1024-by-640, 1440-by-900, and 1680-by-1050) on Settings app.
However, on Windows (including the latest version) screen resolution are by default, set to the native screen resolution with "Scaling" function to increases the elements sizing. For example on a 15-inch laptop, which comes with a Full HD display, Windows will set the default resolution to the 1920-by-1080 with scaling set to 100% but recommended to 125%. Setting a higher scaling in turns result in certain elements displayed blurry.
Hence, why is this case?
An operating system can work without screens. You could for example start your computer (either running Windows, or MacOSX, or Linux), and run some application app (or app.exe on Windows) on that command line.
Now, imagine you type app (without the ENTER key) in some command window, unplug your screen, and type the ENTER key. You app has still started (and perhaps detected that no screen is available, only if that app is a GUI application opening a window by using some widget toolkit). If your app is not a GUI application but a command line one (eg cp which copy files) it can successfully execute.
In practice, your screen is today used by some display server. And your application don't show directly pixels on the screen: it interacts with your display server which generally is the only process accessing the screen (more precisely, your graphics card).
So you need to learn how to tune or configure your display server. And that of course is operating system and display server specific. On MacOSX and and Windows and on Linux they are very different (and Linux even has several ones, e.g. Xorg or Wayland). On MacOSX it is Quartz.

I cannot click capture button to capture virtual machine image

I cannot click Capture (2nd last button "캡처" in Korean) button in Azure portal.
All other virtual machines are same to this situation.
Yesterday, I captured image by clicking that button, but today I cannot click it.
Could you let me know why this happens and how I can solve this problem???
One more question!
this is error log
Provisioning failed. OS Provisioning for VM 'master0' did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image (with CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or prepare it properly for use as an image:
* Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/
* Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/. OSProvisioningTimedOut
I use a Linux machine
1.You need stop your VM firstly. Stop the VM by usgin Azure Portal.
2.Create your VM image on Azure Portal.
3.Create new VMs by using the image.
Also, you could use PowerShell to capture image, more information please refer to this link.

Child handles of vbox Windows using Delphi

I want to get all of children handle of Windows that its run in Virtual Box .
I want send a key from Host Windows(Main Windows) to notepad of Guest Windows.
I know that we can find child window by using EnumChildWindows in delphi but Virtual Box only retrieve QWidget class name.
can anyone help me access to all of handle of Guest Windows(its run in Virtual Box) from main windows using delphi ?
thank you.
I want to get all of children handle of Windows that its run in Virtual Box .
Sorry, but you cannot do that. Like AlexK said in comments, windows running within the guest OS simply do not exist within the host OS, so they cannot be accessed or enumerated by apps running in the host OS. The VM is running a completely separate guest OS and is simply rendering the display output of that OS on its own window running on the host OS.
I want send a key from Host Windows(Main Windows) to notepad of Guest Windows.
There is no way to do that directly.
When a user types a key on the physical keyboard or an on-screen keyboard within the host OS, the key is put into the input queue of the host OS and gets routed to the current focused window within the host OS. If that window happens to be the VM, then the VM places the key in the input queue of the guest OS and it gets routed to the current focused window within the guest OS.
An app running on the host OS can use SendInput() to simulate keyboard input in the host OS, and let it get routed accordingly.
If you need more control, you will have to run a separate app within the guest OS that is connected to your main app running on the host OS. The host app can then communicate with the guest app, and the guest app can act on guest windows as needed.
For example, the host app could ask the guest app to enumerate the guest windows and send that list back to the host app. The host app could detect the presence of Notepad and send the desired key(s) to the guest app, which could then send the key(s) to the Notepad window.
I know that we can find child window by using EnumChildWindows in delphi
Only for windows that are running in the same OS that the enumerating app is running in.
but Virtual Box only retrieve QWidget class name.
Because that is the window that is running within the host OS.

Cloudera VM Windows mouse only partially works

I am getting started with Cloudera Hadoop and downloaded the VMWare image from here. While the image itself works fine, my mouse does not.
I am running on a new MacBookAir, using VMWare for the Mac. I created the image using the uncompressed image file, but was unsure which OS to select in VMWare. I tried both Mac OS (which didn't even boot in the VM) and then Windows OS (which did boot).
The mouse behaves as follows in the VM. Right click works fine, i.e. context-menu appears. Left click does nothing. I have tried to use the 'mouse' system setting to fix this, but that doesn't change anything.
Suggestions?
I got it working - a couple of things. First I needed to re-create the VM using the correct OS (it is Linux - CentOS 5.8, and in my case 64-bit).
Next I needed to mount a CD drive (had to force shutdown and then re-start) via the Settings. After that I had to install the VMWare Tools via the newly mounted CD (from the original source media).
After that I had to do a cold restart one more time, then voila - mouse is working ok.

Resources