question

JevonDavis-1810 avatar image
0 Votes"
JevonDavis-1810 asked JevonDavis-1810 commented

Slow Performance of Oracle Virtual Box within Azure Windows 10 VM

Hello,

I currently have a Oracle Virtual Box Setup with Azure on a windows 10 Machine. It works and everything but I realized the performance isn't the best. So currently I am using a D4s_v3 series VM for this but setting up a Kali image with Virtual Box is pretty slow. For eg. it will take 10 minutes to get to the Kali login screen vs it taking less than two minutes on my Windows 10 host machine.

Does it matter the series that is used or is this just an expected performance drawback of Nested Virtualization within Azure?

azure-virtual-machineswindows-10-hyperv
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndreasBaumgarten avatar image
2 Votes"
AndreasBaumgarten answered JevonDavis-1810 commented

Hi @JevonDavis-1810 ,

let's take it like this: "Nested Virtualization in addition with a combination of different virtualization solutions doesn't speed things up" ;-)

The advantage in Azure is: Resizing a virtual machine for testing is easy, fast and doesn't cost that much.
I would just resize the Azure VM at least to the double and do some tests.
After the tests are done decreasing the size of the VM is easy as well.

Also it might be interesting to find the real cause for the lag of performance. It's the Azure VM (CPU, RAM, Disk) or maybe it's related to the Oracle Virtual Box as a nested virtualization.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Andreas, currently it's D4s_v3 series with 4 cores plus 16GB of RAM. Are you recommending to change the series?

0 Votes 0 ·

Hi @JevonDavis-1810 ,

this depends on how much testing you want to do.
I would start with increasing the size in the same series.
But if you think the issue more related to the Dv3 series you can give the new Dv5 series a try as well: https://docs.microsoft.com/en-us/azure/virtual-machines/dv5-dsv5-series

A test matrix could look like this:
Test D4s_v3 -> to get the base line
Test D8s_v3
Test D4s_v5
Test D8s_v5

Beside just measure the time you should also take a look on the performance values of the VM (CPU, RAM, Disk).


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

0 Votes 0 ·

Okay, I'll do some additional tests and share my results

0 Votes 0 ·

@AndreasBaumgarten tried it, same result right across the board. Funny enough I remember something awhile back I believe on version 2004 the performance was good but since it upgraded it has become unstable. Not sure how it works on other images but it seems Kali Linux Oracle Virtual Box is unusable. Kali Linux isn't available in my region in the Azure Market Place so that's a bummer. Is there any alternative you could suggest to get it up and running in Azure in anyway?

0 Votes 0 ·

Hi @JevonDavis-1810 ,

have you tried a different hypervisor like Hyper-V for the nested virtualization?


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

1 Vote 1 ·

Yeah I have tried Hyper-V Manager but never liked it but guess I will have to go back to it. It always messes up my network settings in some way which prevent me from logging back into my VM. When it messes it up on my local windows 10 machine it's fine because I can reset the network adapter and it is all good but for some reason all the troubleshooting done in the Azure Portal doesn't yield the same result so I have to end up deleting the VM and starting from scratch. Do you have any other alternatives to Hyper-V Manager? If not I guess I would just have to work with it

0 Votes 0 ·