Jump to content

Should I use dual boot or use a virtual machine?

geobasinas

I am building a PC for myself and I was wondering if I should dual boot Windows and Ubuntu or use Windows as my primary os and have an Ubuntu virtual machine ?

 

PS: I am not going to be playing any games soon but I like coding and programming so keep that in mind.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, geobasinas said:

I am building a PC for myself and I was wondering if I should dual boot Windows and Ubuntu or use Windows as my primary os and have an Ubuntu virtual machine ?

 

PS: I am not going to be playing any games soon but I like coding and programming so keep that in mind.

Dual boot should be just fine.

Intel® Core™ i7-12700 | GIGABYTE B660 AORUS MASTER DDR4 | Gigabyte Radeon™ RX 6650 XT Gaming OC | 32GB Corsair Vengeance® RGB Pro SL DDR4 | Samsung 990 Pro 1TB | WD Green 1.5TB | Windows 11 Pro | NZXT H510 Flow White
Sony MDR-V250 | GNT-500 | Logitech G610 Orion Brown | Logitech G402 | Samsung C27JG5 | ASUS ProArt PA238QR
iPhone 12 Mini (iOS 17.2.1) | iPhone XR (iOS 17.2.1) | iPad Mini (iOS 9.3.5) | KZ AZ09 Pro x KZ ZSN Pro X | Sennheiser HD450bt
Intel® Core™ i7-1265U | Kioxia KBG50ZNV512G | 16GB DDR4 | Windows 11 Enterprise | HP EliteBook 650 G9
Intel® Core™ i5-8520U | WD Blue M.2 250GB | 1TB Seagate FireCuda | 16GB DDR4 | Windows 11 Home | ASUS Vivobook 15 
Intel® Core™ i7-3520M | GT 630M | 16 GB Corsair Vengeance® DDR3 |
Samsung 850 EVO 250GB | macOS Catalina | Lenovo IdeaPad P580

Link to comment
Share on other sites

Link to post
Share on other sites

They have pros and cons. A dual boot will have more performance available to Ubuntu, the VM will be a lot more convenient, more reliable, and be more storage efficient. If you can do what you need to do within the constraints of a VM (no GPU acceleration or compute, limited memory and CPU access, etc.) I would aim for the VM. I'd only do a dual boot if you need to.

Link to comment
Share on other sites

Link to post
Share on other sites

If you dont know have a reason to use duel boot or dont know a specific reason why you would need duel boot and just want to experiment with coding/playing around with linux I'd suggest a VM. Its much easier to set up and it affords you the opportunity to switch distros very quickly if you find you want to try linux Mint for example or something similar. It's also lets you not really care about fucking around with certain files because you can just delete the VM and spin up a new one if you break something which is a bit more of a hassle if you're running duel boot. 

Link to comment
Share on other sites

Link to post
Share on other sites

Dual boot. VM performance sucks and the setup is complicated. You're not really escaping the grasp of Microsoft if you're using Ubuntu in a VM anyway.

Since you're building the PC, I highly recommend having each OS on its own drive because it'll make things 10x easier since your BIOS controls which OS to boot into, no fooling around with configuring boot loaders. 

lumpy chunks

 

Expand to help Bunny reach world domination

(\__/)
(='.'=) This is Bunny. Copy Bunny into your signature to
(")_(") help him on his way to world domination.

 -Rakshit Jain

Link to comment
Share on other sites

Link to post
Share on other sites

41 minutes ago, geobasinas said:

I am building a PC for myself and I was wondering if I should dual boot Windows and Ubuntu or use Windows as my primary os and have an Ubuntu virtual machine ?

 

PS: I am not going to be playing any games soon but I like coding and programming so keep that in mind.

Depends on your specs. If you have the means to do so, I'd virtualize Windows personally, but that's just me. It's more convenient not having to deal with bootloaders and partitioning, you control every aspect of Windows and can nuke it easily if something goes wrong, the privacy perks are there, and it's a good learning experience. 

 

However on weaker hardware, dual booting is more practical because since you're just booting into Windows bare metal it can take full advantage of the weaker hardware you might have. One thing to add is if you want to mess around with GPU passthrough tools and creating a VM for productivity or gaming, you're gonna need an IGPU for Linux. 

 

Let me know what your system looks like and I can tell you if you should do either, I did a similar setup myself recently.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, geobasinas said:

I am building a PC for myself and I was wondering if I should dual boot Windows and Ubuntu or use Windows as my primary os and have an Ubuntu virtual machine ?

 

PS: I am not going to be playing any games soon but I like coding and programming so keep that in mind.

I'll bring another idea. WSL2

Windows Subsystem for Linux (WSL) allows you to install with a mouse click Ubuntu, and other distros. 

And you are ready to install your development tools and get started with your software development. Many popular IDEs also integrated with WSL, allowing you to run them natively on your OS, and interact with your projects stored in the WSL environment. With WSLg of Windows 11, you can even install your IDE in your Linux environment and run it from there ("g" in WSLg, stands for GUI support (this includes audio, and GPU acceleration (special WSL GPU drivers needs to be installed, see Nvidia/AMD/Intel website for the latest drivers. Yes, it does support TensorFlow and CUDA (in the case of Nvidia).

 

In the workspace, I see an increase in developers choosing that path over VM. Native installation of a Linux distro is less of an option as IT companies can't support this system properly. 

 

I invite you to read on WSL, it is cool technology that Microsoft has developed. It kick-ass, and Microsoft is actively improving it, and it is joy to use via Microsoft open sourced, new WIndows Terminal (included in Windows 11).

 

But essentially, just in the case you read things online)

  • WSL1: This is Windows doing a translation between Windows and Linux. It has limitations (can't do Docker, for example), but less demand on system resources. Great for those who mostly use Windows but want to toy with Linux.
  • WSL2 (default since recent Windows 10 versions and newer): Runs the Linux kernel and environment in Hyper-V and has out of the box integration with Windows. Can run Windows applications from, say, Ubuntu, and have ease of access of files, and networking.
  • WSLg is an extension to WSL2 adding, as mentioned: GUI support, audio support and GPU acceleration.

 

Typically, when "WSL" is referred, you can assume WSL2 on recent articles.

 

The cool thing with WSL is that you don't need to switch between environments, and you don't need to deal with a VM stuck in a VM world and break your head with folder sharing to pass data between OSs. In addition, running on Hyper-V, a Type 1 hypervisor, means you have far better performance running your Linux based programs. Virtual Box or VMWare are Type 2 hypervisors, and so sits on top of your current OS, and so is far away from the hardware, preventing in accessing most of hardware performance.

 

Have a look and try it out, is all I can say. You lose nothing.

 

  1. Install instructions (assuming Win11):
    Check those boxes, hit OK (components will be installed, system would need to restart to finish install):
    1906565904_Screenshot2022-07-03143141.png.8233188f17072642ecf2143f40e4acf5.png
     
  2. Update the kernel: Open Windows Terminal, (Commands Prompt or PowerShell environment, it doesn't matter for this), type and execute:
    😕> wsl --update
     
  3. Open Store, look for Ubuntu, pick it (you can pick the latest version as it comes out, or specific version, like 22.04 LTS), install it, and run it:
    image.thumb.png.1028c6d15a289a9f492fde0f788a073c.png
     
  4. Follow Ubuntu wizard and enjoy!

 

I can assure you it runs fine on a Core i7 930 with 6GB of RAM (personally tested it), so despite the CPU massive age and limited RAM, you can quickly see how it is less demanding on system resources over a VM.

 

Hope this helps.

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, GoodBytes said:

I'll bring another idea. WSL2

Windows Subsystem for Linux (WSL) allows you to install with a mouse click Ubuntu, and other distros. 

And you are ready to install your development tools and get started with your software development. Many popular IDEs also integrated with WSL, allowing you to run them natively on your OS, and interact with your projects stored in the WSL environment. With WSLg of Windows 11, you can even install your IDE in your Linux environment and run it from there ("g" in WSLg, stands for GUI support (this includes audio, and GPU acceleration (special WSL GPU drivers needs to be installed, see Nvidia/AMD/Intel website for the latest drivers. Yes, it does support TensorFlow and CUDA (in the case of Nvidia).

 

In the workspace, I see an increase in developers choosing that path over VM. Native installation of a Linux distro is less of an option as IT companies can't support this system properly. 

 

I invite you to read on WSL, it is cool technology that Microsoft has developed. It kick-ass, and Microsoft is actively improving it, and it is joy to use via Microsoft open sourced, new WIndows Terminal (included in Windows 11).

 

But essentially:

  • WSL1: This is Windows doing a translation. It has limitations on costs (can't do Docker, for example), but less demand on system resources. Great for those who mostly use Windows but want to toy with Linux.
  • WSL2 (default since recent Windows 10 versions and newer): Runs the Linux kernel and environment in Hyper-V and has out of the box integration with Windows. Can run Windows applications from, say, Ubuntu, and have ease of access of files, and networking.
  • WSLg is an extension to WSL2 adding, as mentioned: GUI support, audio support and GPU acceleration.

 

The cool thing with WSL is that you need to switch between environments, and you don't need to deal with a VM stuck in a VM world and break your head with folder sharing to pass data between OSs. In addition, running on Hyper-V, a Type 1 hypervisor, means you have far better performance running your Linux based programs. Virtual Box or VMWare are Type 2 hypervisors, and so sits on top of your current OS, and so is far away from the hardware, preventing in accessing most of hardware performance.

 

Have a look and try it out, is all I can say. You lose nothing.

 

  1. Install instructions (assuming Win11):
    Check those boxes, hit OK (components will be installed, system would need to restart to finish install):
    1906565904_Screenshot2022-07-03143141.png.8233188f17072642ecf2143f40e4acf5.png
     
  2. Update the kernel: Open Windows Terminal, under Commands Prompt or PowerShell (doesn't natter for this), type and execute:
    > wsl --update
     
  3. Open Store, look for Ubuntu, pick it (you can pick the latest version as it comes out, or specific version, like 22.04 LTS), install it, and run it:
    image.thumb.png.1028c6d15a289a9f492fde0f788a073c.png
     
  4. Follow Ubuntu wizard and enjoy!

 

I can assure you it runs fine on a Core i7 930 with 6GB of RAM (personally tested it), so despite the CPU massive age, and limited RAM, you can quickly see how it is less demanding on system resources over a VM.

 

Hope this helps.

Beat me to it, and I’m MUCH more detail then I was planning to provide. 

Rig: i7 13700k - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Assorted SATA SSD's for Photo Work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - XT45 X-Flow 420 + UT60 280 rads - - EK XRES RGB PWM - - Fractal Define S2 - - Acer Predator X34 -- Logitech G502 - - Logitech G710+ - - Logitech Z5500 - - LTT Deskpad

 

Headphones/amp/dac: Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/ Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x4 TB WD Red RAID Z2 - - Corsair 750D - - Corsair RM650i - - Dell H310 6Gbps SAS HBA - - Intel RES2SC240 SAS Expander - - TreuNAS + many other VM’s

 

iPhone 14 Pro - 2018 MacBook Air

Link to comment
Share on other sites

Link to post
Share on other sites

13 minutes ago, bluesummer said:

Depends on your specs. If you have the means to do so, I'd virtualize Windows personally, but that's just me. It's more convenient not having to deal with bootloaders and partitioning, you control every aspect of Windows and can nuke it easily if something goes wrong, the privacy perks are there, and it's a good learning experience. 

 

However on weaker hardware, dual booting is more practical because since you're just booting into Windows bare metal it can take full advantage of the weaker hardware you might have. One thing to add is if you want to mess around with GPU passthrough tools and creating a VM for productivity or gaming, you're gonna need an IGPU for Linux. 

 

Let me know what your system looks like and I can tell you if you should do either, I did a similar setup myself recently.

My machine has the following:

Asus ROG strix x570-e gaming

Ryzen 7 3700x

16gb ram

500gb mw nvme and 1tb normal  hdd

rtx 3060ti

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, geobasinas said:

My machine has the following:

Asus ROG strix x570-e gaming

Ryzen 7 3700x

16gb ram

500gb mw nvme and 1tb normal  hdd

rtx 3060ti

 

 

I'd say virtualize, should work pretty well based on your specs. 

 

Just make sure you give it the specs it needs, Ubuntu is pretty lightweight so don't be afraid to give the VM some extra power, Windows 10 is very resource hungry.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×