How to install Visual Studio Community on Windows 10 inside VirtualBox 6?

Discussions about using Windows guests in VirtualBox.
Post Reply
rodrigoguariento
Posts: 1
Joined: 19. Apr 2019, 13:47

How to install Visual Studio Community on Windows 10 inside VirtualBox 6?

Post by rodrigoguariento »

I've downloaded Visual Studio (Community) Installer, and in a real machine with Ubuntu 18.04LTS with VirtualBox 6, and inside a Windows 10 Enterprise, I got the message when I've tried to install Visual Studio Community 2019: "this product is not compatible with this version of windows. try updating windows first." but, I ended up updating Windows right now, no more updates. This Windows is clean, I end up installed it. Suggestions? In a real machine with the same Windows 10 installs normal.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to install Visual Studio Community on Windows 10 inside VirtualBox 6?

Post by mpack »

We are not in a position to tell you what Visual Studio is complaining about, perhaps a Visual Studio support forum would be a better place to ask that.

That said, ISTM the most likely reason would be attempting to run a 64bit installer in a 32bit guest OS. From there I'd assume that you installed a 32bit guest OS because you couldn't see how to install a 64bit one, in which case the following FAQ would apply: FAQ: I have a 64bit host, but can't install 64bit guests.
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How to install Visual Studio Community on Windows 10 inside VirtualBox 6?

Post by BillG »

Since Visual Studio on a host prevents VirtualBox from running, I would guess that it requires hardware virtualization. It won't get that in a vm running under VirtualBox.
Bill
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to install Visual Studio Community on Windows 10 inside VirtualBox 6?

Post by socratis »

BillG wrote:It won't get that in a vm running under VirtualBox.
Slight correction... in theory it could work if you have 1) an AMD CPU and 2) VirtualBox > 6.0.0. See "Nested virtualization: Success stories (and failures)".

I will amend the first post (and maybe modify the title) to not simply mention "Nested Virtualization", but to include cases where the guest needs VT-x/AMD-V, such as these...
 Edit: Linked thread is not called "Nested virtualization, VT-x/AMD-V in the guest: Success stories (and failures)" 
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to install Visual Studio Community on Windows 10 inside VirtualBox 6?

Post by mpack »

BillG wrote:Since Visual Studio on a host prevents VirtualBox from running, I would guess that it requires hardware virtualization. It won't get that in a vm running under VirtualBox.
Would that stop it installing? Surely it would just cause a debug option to be lost? I'd expect a warning dialog perhaps (if that install package was selected), with an option to continue.
Post Reply