Author Topic: Virtual Machine or Dual Boot?  (Read 3931 times)

0 Members and 1 Guest are viewing this topic.

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Virtual Machine or Dual Boot?
« on: May 03, 2020, 11:20:50 pm »
I was given an HP ZBook G3 laptop for free. The machine was decommissioned and has HD removed but it has 16 GB RAM. It has 2 slots for PCIe M.2 SSDs and another one for 2.5" HDD. I'll get an M.2 drive (most likely a 500 GB Samsung EVO 970) and maybe later a bigger 2.5" HD.

I am planning to install Ubuntu and Windows 10. Some software I need runs only on Windows, so I don't have a choice. Usage between the operating systems will be pretty much balanced (maybe 60% Windows, 40% Linux)

How do you guys configure your dual OS computers? Should I go with dual boot or virtual machine? Dual boot will be faster but VM is more convenient to switch. If I decide to use VM would it be better (re. performance ) to install Windows 10 and run Linux as VM or vice versa?
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #1 on: May 03, 2020, 11:33:08 pm »
First consideration is whether the software you want to run will work adequately under virtualization. I suspect windows applications are more likely to be picky about that than Linux applications, but it depends a lot on the specific software.  You may just have to try it and see.  If you have software that talks to specific USB hardware that may be a deal breaker.
 

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #2 on: May 03, 2020, 11:57:00 pm »
First consideration is whether the software you want to run will work adequately under virtualization. I suspect windows applications are more likely to be picky about that than Linux applications, but it depends a lot on the specific software.  You may just have to try it and see.  If you have software that talks to specific USB hardware that may be a deal breaker.

You are right. I completely forgot about USB and drivers for nonstandard/special hardware.

I used Linux just for development (mainly in c and c++) and run it as a VM on Windows without problems but didn't run any special USB drivers under it.
 

Offline bill_c

  • Regular Contributor
  • *
  • Posts: 130
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #3 on: May 04, 2020, 01:32:24 am »
I run windowz as guest OS on several machines and never had problems with any USB devices.  I did have problems trying to use a special PCI card but was too lazy to see if it was possible to solve. Many games don't like virtual graphics.
If you only spend large chunks of time on an OS before switching to the other, then dual boot. if you switch between them often during testing stuff then VM is better but guest will be slightly slower. You can drag and drop files between host and guest, may not be as easy with dual boot.
 

Offline greenpossum

  • Frequent Contributor
  • **
  • Posts: 408
  • Country: au
Re: Virtual Machine or Dual Boot?
« Reply #4 on: May 04, 2020, 01:44:40 am »
I run Windows XP in a VM to drive a TL866 programmer using USB forwarding. Works a treat. Yes I know about the TL866 CLI tools. Have also forwarded things like WiFi dongles and upgraded the firmware of a DVD drive on the host using a Windows guest.
 

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #5 on: May 04, 2020, 01:48:40 am »
I run windowz as guest OS on several machines and never had problems with any USB devices.  I did have problems trying to use a special PCI card but was too lazy to see if it was possible to solve. Many games don't like virtual graphics.
If you only spend large chunks of time on an OS before switching to the other, then dual boot. if you switch between them often during testing stuff then VM is better but guest will be slightly slower. You can drag and drop files between host and guest, may not be as easy with dual boot.

I forgot to mention that I don't play computer games.

The problem is even if I spend considerable amount of time in one OS, I need to access the second one quite often - even for the short period of time. It can become very annoying with dual boot. The other option is to have two separate systems (I have enough computers lying around) but then I need to use a KVM switch. When I looked at them a while ago, they didn't support higher resolution graphics (4K)
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9019
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Virtual Machine or Dual Boot?
« Reply #6 on: May 04, 2020, 01:58:33 am »
The other option is to have two separate systems (I have enough computers lying around) but then I need to use a KVM switch. When I looked at them a while ago, they didn't support higher resolution graphics (4K)
4K HDMI switches are very common, as are USB switches. It shouldn't be too difficult to link the two together.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline themadhippy

  • Super Contributor
  • ***
  • Posts: 2583
  • Country: gb
Re: Virtual Machine or Dual Boot?
« Reply #7 on: May 04, 2020, 02:32:59 am »
Do both,its what ive done,although i cant recall the last time i actually booted windows,even the virtual machine is getting used less as wine gets better
Quote
You can drag and drop files between host and guest, may not be as easy with dual boot..
set up a separate partition on the hard drive and make it available  to  the  operating systems and  virtual machines
 

Offline profanum429

  • Regular Contributor
  • *
  • Posts: 56
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #8 on: May 04, 2020, 02:46:55 am »
I run Windows 10 as my main OS on my desktop and OS X on my Macbook; I have a common Windows 10 VM that I have on both machines; I like to keep my development segregated from the primary OS; no real reason other than I like the containerization it provides. I've only had some hiccups before with some USB stuff (mainly things like a ULINKpro tracing JTAG programmer in an old version of Vmware. These days everything seems to work just fine, including pretty demanding stuff like streaming trace with a SEGGER J-Trace Pro. I also keep a Linux VM around that runs anything I need to do on that; never had any issues with it.

PCI cards would be a different issue, but USB stuff seems to work pretty well for me. For PCI stuff you might be looking at running Linux and doing PCI passthrough (VFIO stuff). I've played around with it, basically giving my graphics card to the VM and you do get basically native performance in a VM, it's pretty neat.

This is all through Vmware Workstation in Windows and Fusion on OS X.
 

Offline Rick Law

  • Super Contributor
  • ***
  • Posts: 3442
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #9 on: May 04, 2020, 02:54:14 am »
Personally, I think dual boot and VM are entirely different animal.

In dual boot, you are running the exact target system without any layers in between the OS and the hardware.  A dual-booted OS should have absolutely no difference with the uni-booted counter part.

Whereas, a VM is an application on your physical machine to emulate a different machine.  The VM application creates and manages this pretend machine to run another OS on this machine.  Anything your VM residing "client" OS needs, it asks the pretend machine that is your application and your application in turn gives it to your VM residing "client" OS.  So, your VM application is the added layer, the middle man.  A well designed/implemented VM of course will have no ill side effect for its clients and the client doesn't need to know it is running on a pretend machine.  But we here all know that nothing is perfect, so some side effect will exist - at the very least, it will be slower.  You client OS is but one of the many other applications that your host machine may be running.

In that manner, I don't think they are even choices on the same par.  One merely allow you to select what to start: start A or start B.  The other is A pretending to be B, or pretending to be C, while at the same time still doing whatever A is doing.

That said, from what I recall reading, almost all Intel CPU these days use some form of micro-code.  So, the CPU we see is really itself a virtual machine...  Just like people.  You never know if they are for real...
 

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #10 on: May 04, 2020, 03:36:58 am »

4K HDMI switches are very common, as are USB switches. It shouldn't be too difficult to link the two together.

Indeed. When I looked a while ago, 4K @60Hz switches were not available or were very expensive. I just did a quick search, they are now available for roughly $100. Any recommendations?
 

Offline Masa

  • Contributor
  • Posts: 20
  • Country: fi
Re: Virtual Machine or Dual Boot?
« Reply #11 on: May 04, 2020, 03:46:19 am »
I run windowz as guest OS on several machines and never had problems with any USB devices.  I did have problems trying to use a special PCI card but was too lazy to see if it was possible to solve. Many games don't like virtual graphics.
If you only spend large chunks of time on an OS before switching to the other, then dual boot. if you switch between them often during testing stuff then VM is better but guest will be slightly slower. You can drag and drop files between host and guest, may not be as easy with dual boot.

I forgot to mention that I don't play computer games.

The problem is even if I spend considerable amount of time in one OS, I need to access the second one quite often - even for the short period of time. It can become very annoying with dual boot. The other option is to have two separate systems (I have enough computers lying around) but then I need to use a KVM switch. When I looked at them a while ago, they didn't support higher resolution graphics (4K)

Remote desktop is one option with multiple computers.  ;)

In that case, the other computer just needs a network connection.
 
The following users thanked this post: Someone

Offline Masa

  • Contributor
  • Posts: 20
  • Country: fi
Re: Virtual Machine or Dual Boot?
« Reply #12 on: May 04, 2020, 04:03:53 am »
Personally, I think dual boot and VM are entirely different animal.

In dual boot, you are running the exact target system without any layers in between the OS and the hardware.  A dual-booted OS should have absolutely no difference with the uni-booted counter part.

Whereas, a VM is an application on your physical machine to emulate a different machine.  The VM application creates and manages this pretend machine to run another OS on this machine.  Anything your VM residing "client" OS needs, it asks the pretend machine that is your application and your application in turn gives it to your VM residing "client" OS.  So, your VM application is the added layer, the middle man.  A well designed/implemented VM of course will have no ill side effect for its clients and the client doesn't need to know it is running on a pretend machine.  But we here all know that nothing is perfect, so some side effect will exist - at the very least, it will be slower.  You client OS is but one of the many other applications that your host machine may be running.

In that manner, I don't think they are even choices on the same par.  One merely allow you to select what to start: start A or start B.  The other is A pretending to be B, or pretending to be C, while at the same time still doing whatever A is doing.

That said, from what I recall reading, almost all Intel CPU these days use some form of micro-code.  So, the CPU we see is really itself a virtual machine...  Just like people.  You never know if they are for real...

Actually VM's are much more powerful nowadays than pure software virtualization in the past, because there is hardware support for it in the modern processors.  ;)

https://en.wikipedia.org/wiki/X86_virtualization
https://en.wikipedia.org/wiki/Hardware-assisted_virtualization
« Last Edit: May 04, 2020, 04:06:44 am by Masa »
 

Offline 0culus

  • Super Contributor
  • ***
  • Posts: 3032
  • Country: us
  • Electronics, RF, and TEA Hobbyist
Re: Virtual Machine or Dual Boot?
« Reply #13 on: May 04, 2020, 04:49:30 am »
I'd give virtualization a try. I daily drive Macs (and my work desktop is a trashcan Mac Pro), but I use Vmware Fusion (macOS equivalent of Workstation on the PC side) both at home (it's really not that expensive) and at work (paid for by work) and I love it. I can have multiple different Linux machines configured for different things and on reasonably modern hardware they run very well. Snapshots are super useful too...if you blow something up you can just go back to your last snapshot. Or rebuild the VM. A heck of a lot easier than fiddling around with a dual boot setup where Windows decided to destroy the Linux partition (happened to me).

Vmware is also a *lot* more reliable for USB and such in my experience vs. Virtualbox. Case in point, trying to get Vivado to communicate with my FPGA boards when I was doing my MS was...impossible. It worked out of the box with Fusion (incidentally this frustration is what pushed me to forking over for Vmware). And with VM guest integration properly set up, it's seamless with no rebooting.
 

Offline 0db

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: zm
Re: Virtual Machine or Dual Boot?
« Reply #14 on: May 04, 2020, 10:04:36 am »
I'd give virtualization a try. I daily drive Macs (and my work desktop is a trashcan Mac Pro), but I use Vmware Fusion (macOS equivalent of Workstation on the PC side) both at home (it's really not that expensive) and at work (paid for by work) and I love it. I can have multiple different Linux machines configured for different things and on reasonably modern hardware they run very well. Snapshots are super useful too...if you blow something up you can just go back to your last snapshot. Or rebuild the VM. A heck of a lot easier than fiddling around with a dual boot setup where Windows decided to destroy the Linux partition (happened to me).

Vmware is also a *lot* more reliable for USB and such in my experience vs. Virtualbox. Case in point, trying to get Vivado to communicate with my FPGA boards when I was doing my MS was...impossible. It worked out of the box with Fusion (incidentally this frustration is what pushed me to forking over for Vmware). And with VM guest integration properly set up, it's seamless with no rebooting.

Just bought a Mac, that's what I am going to try. Thanks for the feedback.
 

Online Bicurico

  • Super Contributor
  • ***
  • Posts: 1714
  • Country: pt
    • VMA's Satellite Blog
Re: Virtual Machine or Dual Boot?
« Reply #15 on: May 04, 2020, 10:22:53 am »
Hi,

First off, congratulations for such a great free laptop!

The HP Z-Series are workstations which are normally meant for commercial CAD/CAM/CAE applications using Windows.

In my opinion these machines were NOT designed to run Linux and you won't take full advantage of its capabilities under this OS. I don't know what graphics board is fitted, but it might be an nVidia Quadro. I doubt it will work with full 3D accelartion on Linux, but then again, are there any 3D applications on Linux in the first place?

I would definetly install Windows as the single OS and then use Linux within VirtualBox. This will give you access to whatever applications you want to run on Linux, while not giving you all the dual-boot pain and risks (it is easy to screw up Grub and not so easy to get rid of it).

You can pass USB devices to virtual machines with pretty good support, even USB-3.0 devices work mostly.

And you won't have to struggle with uncommon drivers for Linux.

And no, I have nothing against Linux - I used it myself when needed. But why take a laptop designed to run Windows based commercial CAD/CAM/CAE applications and run it with native Linux?

Regards,
Vitor

Offline Rick Law

  • Super Contributor
  • ***
  • Posts: 3442
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #16 on: May 04, 2020, 07:43:02 pm »
Personally, I think dual boot and VM are entirely different animal.

In dual boot, you are running the exact target system without any layers in between the OS and the hardware.  A dual-booted OS should have absolutely no difference with the uni-booted counter part.

Whereas, a VM is an application on your physical machine to emulate a different machine.  The VM application creates and manages this pretend machine to run another OS on this machine.  Anything your VM residing "client" OS needs, it asks the pretend machine that is your application and your application in turn gives it to your VM residing "client" OS.  So, your VM application is the added layer, the middle man.  A well designed/implemented VM of course will have no ill side effect for its clients and the client doesn't need to know it is running on a pretend machine.  But we here all know that nothing is perfect, so some side effect will exist - at the very least, it will be slower.  You client OS is but one of the many other applications that your host machine may be running.

In that manner, I don't think they are even choices on the same par.  One merely allow you to select what to start: start A or start B.  The other is A pretending to be B, or pretending to be C, while at the same time still doing whatever A is doing.

That said, from what I recall reading, almost all Intel CPU these days use some form of micro-code.  So, the CPU we see is really itself a virtual machine...  Just like people.  You never know if they are for real...

Actually VM's are much more powerful nowadays than pure software virtualization in the past, because there is hardware support for it in the modern processors.  ;)

https://en.wikipedia.org/wiki/X86_virtualization
https://en.wikipedia.org/wiki/Hardware-assisted_virtualization

I understand that VM technology has improved.  CICS partitioning is over 1/2 century old, so improvement with the virtualization concept is to be expected.  It is not like running Double DOS anymore.  I agree.

Hypervisor types hardware-driven virtualization is not exactly new either - around decade old now.  But regardless of age, it is still at least two extra layers (your OS, your VM app) between the hardware and the OS.  Present-day processing speed may make the extra processing delay less visible, but additional layers will always introduce additional uncertainty.  More you add, more to fail -- that, in my opinion, is facts of life and can't be avoided.

If one is using production software, one can reasonably expect that everything would work.  If one is developing software, one can never be sure where odd failures came from.  So adding a layer in between merely adds more potential points of failure to track down.
« Last Edit: May 04, 2020, 07:45:05 pm by Rick Law »
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9019
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Virtual Machine or Dual Boot?
« Reply #17 on: May 05, 2020, 01:01:23 am »
Indeed. When I looked a while ago, 4K @60Hz switches were not available or were very expensive. I just did a quick search, they are now available for roughly $100. Any recommendations?
Just search "4k hdmi switch" and there are lots of cheaper switches out there, some around $20. Read the reviews to get an idea of which ones are good.
I don't know what graphics board is fitted, but it might be an nVidia Quadro. I doubt it will work with full 3D accelartion on Linux, but then again, are there any 3D applications on Linux in the first place?
Nvidia works great on Linux if you install the official driver. The open source "Nouveau" driver is better used for GPUs that are no longer supported by the latest driver.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4039
  • Country: nz
Re: Virtual Machine or Dual Boot?
« Reply #18 on: May 05, 2020, 02:18:23 am »
It depends what you're doing on each OS.

I use Linux and MacOS as my main OSes (on different machines) and run a Windows VM only to deal with people who want to collaborate on MS Office documents and wacky corporate software and/or web sites that work only with IE. VirtualBox is perfectly fine for that and in fact I've been fine so far running Windows 7 in it.
 

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #19 on: May 05, 2020, 02:46:36 am »

The HP Z-Series are workstations which are normally meant for commercial CAD/CAM/CAE applications using Windows.

In my opinion these machines were NOT designed to run Linux and you won't take full advantage of its capabilities under this OS. I don't know what graphics board is fitted, but it might be an nVidia Quadro. I doubt it will work with full 3D accelartion on Linux, but then again, are there any 3D applications on Linux in the first place?

It has an Nvidia video card but I don't know which one yet. It needs some disassembly to access  it and I was lazy :). I don't have have M.2 SSD yet, delivery is in about 10 days for the model I want.  Maybe I'll grab sth else.Most likely I will not run any apps on Linux that will need 3D acceleration. Most of my CAD stuff is under Windows (Orcad, Spice, FPGA,...)

Quote
I would definetly install Windows as the single OS and then use Linux within VirtualBox. This will give you access to whatever applications you want to run on Linux, while not giving you all the dual-boot pain and risks (it is easy to screw up Grub and not so easy to get rid of it).

You can pass USB devices to virtual machines with pretty good support, even USB-3.0 devices work mostly.

And you won't have to struggle with uncommon drivers for Linux.


Regards,
Vitor



As you suggested, I'll probably start with Windows and run Linux under virtual machine. I have used Virtual Box but I don't have any experience with the free VMWare version (Workstation Player). Although I am not planning of buying VmWare Workstation Pro I quickly compared with the Player and I don't see that Player is missing anything crucial for basic use.

Which one has better support for special external hardware?



 

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #20 on: May 05, 2020, 02:56:15 am »
It depends what you're doing on each OS.

I use Linux and MacOS as my main OSes (on different machines) and run a Windows VM only to deal with people who want to collaborate on MS Office documents and wacky corporate software and/or web sites that work only with IE. VirtualBox is perfectly fine for that and in fact I've been fine so far running Windows 7 in it.

I run Orcad/ Xilinx tools/ Spice/ and some other stuff under windows. Also MS Office (I know, I could use something  under Linux but there are always some compatibility issues with Office, especially when working with other people). So most likely I'll be spending 50% - 60% time in Windows.

Any comparison VirtualBox vs VMWare Player?

 

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #21 on: May 05, 2020, 03:29:26 am »
Indeed. When I looked a while ago, 4K @60Hz switches were not available or were very expensive. I just did a quick search, they are now available for roughly $100. Any recommendations?
Just search "4k hdmi switch" and there are lots of cheaper switches out there, some around $20. Read the reviews to get an idea of which ones are good.

I did a very quick search - I need to do more research. I would rather not spend $100 if I don't have to. I'll probably start with Windows and run Linux in a VM.
 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 12862
Re: Virtual Machine or Dual Boot?
« Reply #22 on: May 05, 2020, 11:12:07 am »
This looks like its worth a look: https://www.makeuseof.com/tag/linux-desktop-windows-subsystem/ (GUI Linux X applications and even an X desktop under Windows Subsystem for Linux)

Even if it doesn't meet *ALL* your  Linux needs, it should be possible to keep selected Linux and windows applications and their data on other (OS specific) partitions, and dual boot between Win 10 + WSL, and Linux + WINE, sharing the applications and  data.
« Last Edit: May 05, 2020, 11:20:08 am by Ian.M »
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #23 on: May 05, 2020, 02:29:15 pm »
On my relatively high end desktop, I dual boot.  Yes, it would be a PITA if I had to do it often, but I don't.

On my laptop with Win 10, I have installed the Win10 version of Ubuntu with the bash shell.  It does not support a linux desktop but all of the command line stuff works.

https://itsfoss.com/install-bash-on-windows/

I have never even thought about drivers and such.  I just don't tend to have a lot of USB gadgets that I care to run under this shell.

So, I'm playing with Raspbian on a Raspberry Pi and it seems important to run the desktop from my iPad while I'm watching TV in the media room.  VNC works really well.  I get the full desktop and all that that implies.  I can open a shell, edit and compile code, whatever.  I can even pull up Chrome and wander the Internet.  VNC is very nice and it's really easy to implement.  Raspi-config to turn on VNC (might as well turn on SSH if it isn't already) and you're good to go.  Now download a VNC client for your remote platform and everything just works.

Not that it's particularly useful but I can make a VNC connection from my cell phone.  Somehow, the 27" monitor and real keyboard seems more workable.
« Last Edit: May 05, 2020, 02:38:49 pm by rstofer »
 

Offline Wuerstchenhund

  • Super Contributor
  • ***
  • Posts: 3088
  • Country: gb
  • Able to drop by occasionally only
Re: Virtual Machine or Dual Boot?
« Reply #24 on: May 09, 2020, 11:52:34 am »
Hi,

First off, congratulations for such a great free laptop!

The HP Z-Series are workstations which are normally meant for commercial CAD/CAM/CAE applications using Windows.

In my opinion these machines were NOT designed to run Linux and you won't take full advantage of its capabilities under this OS.

That's not true.

Both zBook G3 and zBook G3 Studio are certified for and fully supported under Red Hat Linux:

https://www8.hp.com/h20195/v2/getpdf.aspx/c04832209.pdf

https://www8.hp.com/h20195/v2/getpdf.aspx/c04832209.pdf

In fact, all the various HP z-Series workstations are certified for Red Hat Linux, and often also for SLED.

We have various zBook 15/17 G3 on RHEL and also SLED (even though the latter is unsupported).

Quote
I don't know what graphics board is fitted, but it might be an nVidia Quadro. I doubt it will work with full 3D accelartion on Linux, but then again, are there any 3D applications on Linux in the first place?

Most of our G3 zBooks come with the optional Quadro M2000M (15") or M4000M (17"), although we have a small number of 15"G3 which only have the standard intel HD graphics. The Nvidia ones work fine with the Nvidia drivers, provided the Nvidia is set to be the primary card (no swapping between intel and Nvidia) in the BIOS.

The intel graphics works out of the box through the open source drivers included in Linux.

Quote
I would definetly install Windows as the single OS and then use Linux within VirtualBox. This will give you access to whatever applications you want to run on Linux, while not giving you all the dual-boot pain and risks (it is easy to screw up Grub and not so easy to get rid of it).

I agree, I wouldn't bother dual booting. However, I would probably run Linux natively (my recommendation would be to stick with something reliable such as openSUSE) and run Windows inside KVM. But at the end of the day the host OS should be the one that will see most use.

Quote
And no, I have nothing against Linux - I used it myself when needed. But why take a laptop designed to run Windows based commercial CAD/CAM/CAE applications and run it with native Linux?

As I said, zBooks are not "designed to run Windows" (whatever that means, as Linux doesn't exactly require a completely different hardware architecture), and while you find them in CAD/CAM/CAE, z-Series workstations are actually predominant on other fields, like in the big movie studios. It's way more than a line aimed at CAD (which, in general, is actually, is pretty low on performance requirements) ;)
 

Offline TomS_

  • Frequent Contributor
  • **
  • Posts: 834
  • Country: gb
Re: Virtual Machine or Dual Boot?
« Reply #25 on: May 10, 2020, 09:02:01 am »
The problem is even if I spend considerable amount of time in one OS, I need to access the second one quite often - even for the short period of time. It can become very annoying with dual boot.

This is about the reason why I gave up on dual boot. It seems much more productive for me to run my secondary OS as a VM. Usually some flavor of Windows along side MacOS.

Usually I'm only using one or two applications in the other OS, perhaps along side applications running in the primary OS, and having access to both at the same time is worth what ever performance penalty there might be.
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5681
  • Country: au
Re: Virtual Machine or Dual Boot?
« Reply #26 on: May 11, 2020, 02:59:06 am »
For the most part, I prefer virtualisation. It makes backing up your core image and reverting back to a known clean version very simple.
 

Offline MatteoXTopic starter

  • Regular Contributor
  • *
  • Posts: 81
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #27 on: May 11, 2020, 03:33:19 am »
How much performance do you loose by running Linux under VM? I have some numerically pretty intensive stuff.

Any general preference between VirtualBox and free VMWare Player? Compatibility with special hardware, speed ...?
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4039
  • Country: nz
Re: Virtual Machine or Dual Boot?
« Reply #28 on: May 11, 2020, 04:22:59 am »
Computationally intensive shouldn't see any slowdown at all. What can be slower is I/O, especially graphics. Any hit on disk or network I/O is usually very small.
 

Online BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Virtual Machine or Dual Boot?
« Reply #29 on: May 11, 2020, 04:32:57 am »
Computationally intensive shouldn't see any slowdown at all. What can be slower is I/O, especially graphics. Any hit on disk or network I/O is usually very small.

Especially for graphics, in VM environment, the so called (cmiiw) IOMMU or GPU Pass through have been quite heavily exploited for years.

Just an example video out of so many out there, fyi, the video is dated back to 2017, he run Windows graphic heavy intensive game, under Linux host with almost at native speed.


Offline chriva

  • Regular Contributor
  • *
  • Posts: 102
  • Country: se
Re: Virtual Machine or Dual Boot?
« Reply #30 on: May 11, 2020, 04:36:20 am »
Computional performance is pretty much identical between a native os and a virtualized one these days.

USB devices have never given me a grief in vmware workstation and virtualbox has worked flawlessly for the last two years or so.
I'd try to run Linux as the Virtualized OS tho since modern versions of windows are quite dependand on 3d acceleration for the gui, something that on the other hand _IS_ very nerfed in virtual machines. Virtualbox in particular have very thrashy 3d support so go workstation if you really want Windows to be the virtual one.

GPU passthrough has iffy support at best so if you intend to do cuda/opencl or play games on either one of the OS's, that OS should be the primary one.


Lastly: Linux SUCKS for entertainment, lacks hardware decoding for most video formats and rarely has full support for the more advanced power saving features. Mostly because hw manufacturers are assholes so I'd really suggest you use Windows as the native one if you have any intention of using it for entertainment on the go.

Dualboot is just a waste of your time if you ask me so it's not even a question :)
 

Offline fourtytwo42

  • Super Contributor
  • ***
  • Posts: 1185
  • Country: gb
  • Interested in all things green/ECO NOT political
Re: Virtual Machine or Dual Boot?
« Reply #31 on: May 13, 2020, 07:27:22 pm »
Hmm maybe I look at this a different way, I transitioned to Lubuntu several years ago as my primary platform BUT I find WINE has many problems that means dual boot is still an unfortunate necessity, for example

Microsoft word does not run properly under wine, particularly at page boundaries it gets completely confused
Microsoft Excell also suffer annoyingly
LTspice simply does not work properly, quite a few calculations go awry
MPLAB 8x cannot access USB devices in fact USB support under wine generally for non-generic drivers is a fiasco

As an engineer I am sensitive to such things and for me dual boot remains a necessity, there are many other compatibility issues too numerous to mention

So my short answer to the OP is by all means use translators such as wine but retain a dual boot capability for all the important stuff the translators cannot handle.
 
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4039
  • Country: nz
Re: Virtual Machine or Dual Boot?
« Reply #32 on: May 14, 2020, 12:53:22 am »
Hmm maybe I look at this a different way, I transitioned to Lubuntu several years ago as my primary platform BUT I find WINE has many problems that means dual boot is still an unfortunate necessity, for example

A virtual machine, such as VirtualBox, is completely different to a mere API converter such as WINE.

WINE tries to provide API libraries which are compatible with code in Windows.
VirtualBox runs an actual copy of Windows, and emulates generic PC hardware, which is a much more well-defined and simpler task.
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9019
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Virtual Machine or Dual Boot?
« Reply #33 on: May 14, 2020, 03:48:56 am »
Lastly: Linux SUCKS for entertainment, lacks hardware decoding for most video formats and rarely has full support for the more advanced power saving features. Mostly because hw manufacturers are assholes so I'd really suggest you use Windows as the native one if you have any intention of using it for entertainment on the go.
Not true nowadays.
https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Comparison_tables

BTW, it's trivial to get bit perfect audio on Linux if you disable Pulseaudio.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline chriva

  • Regular Contributor
  • *
  • Posts: 102
  • Country: se
Re: Virtual Machine or Dual Boot?
« Reply #34 on: May 14, 2020, 09:31:44 am »
 I see many modern codecs that are not supported on that list...
 

Online NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9019
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Virtual Machine or Dual Boot?
« Reply #35 on: May 14, 2020, 11:44:15 pm »
I see many modern codecs that are not supported on that list...
Like what? I see MPEG 4 ("classic" and AVC/H.264), H.265/HEVC, VP8, VP9, and even VC-1 (WMV) in the list.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline jmelson

  • Super Contributor
  • ***
  • Posts: 2766
  • Country: us
Re: Virtual Machine or Dual Boot?
« Reply #36 on: May 15, 2020, 12:25:11 am »
First consideration is whether the software you want to run will work adequately under virtualization. I suspect windows applications are more likely to be picky about that than Linux applications, but it depends a lot on the specific software.  You may just have to try it and see.  If you have software that talks to specific USB hardware that may be a deal breaker.
I run Linux as my main OS.  I have used virtual Windows environments for many years, first with VMWare, now with VirtualBox.  These work very well, and allow me to switch back and forth, or even have programs from both environments on the desktop at the same time.

I run Protel 99SE for electronic CAD and a tax perparation program every year in the virtual envoronment.  They run fine, in fact even better than on real hardware.

The only program I have ever had a problem with was a Garmin program to download new GPS data to a GPS device.  It would not run on a virtual environment with a specific message to that effect.

Jon
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf