Virtualization and running/switching between Windows & Linux

Status
Not open for further replies.

Drizzt321

Ars Legatus Legionis
34,959
Subscriptor++
So, with the coming of Ryzen and moar cores, I'm coming to think I want to move away from Windows except for gaming/Lightroom type work. I want to experiment a little, I've got an extra laptop with nothing on it at the moment (i5 4300U, has VT support) and want to see how it works. So that'd be emulated/shared iGPU and shared everything. I'm fine with that, I know performance will suffer somewhat and gaming isn't a goal for this round so no GPU passthrough.

So basically, what I'd kinda like to be able to do is switch between Windows10 & Linux Desktop sorta like how you can have multiple desktop workspaces. Just OSes. And without running one inside the other such as with Virtual Box.

That said, I'm looking at Xen Project or Xen Server (currently), and the main difference between them seems to be Xen Server already has a dom0 linux base as part of it's install, while Xen Project you choose your own linux base and boot into Xen using that as dom0. That's my impression at least, besides the whole paid support thing you can get.

I've done some reading and searching, I think what I want is possible, but are there other alternatives? I know of VMWare, but can it reasonably support on a single machine this kind of thing? I suppose it's _sorta_ VDI, but isn't really because it's still local.
 

molo

Ars Legatus Legionis
14,786
You can't get the "different OS like virtual desktops" thing. It doesn't work that way.

You can install a *hypervisor* on the notebook,and then run Windows and Linux as VMs under that hypervisor. But then the notebook is running *the hypervisor*. That's what is going to display on the screen. The desktops of the Linux and Windows install aren't going to be directly available. You can use ssh/VNC/RDP/whatever to connect to the VMs, but you won't get them to display on the notebook itself.

So, you're back to running VirtualBox, honestly. Run Linux in a VirtualBox VM, under Windows. Because, honestly, you're going to come running back to Windows pretty quickly. Linux as a desktop OS is only *okay*. It lacks software, obviously, but it lacks a lot of other nice things, too. Windows is a better desktop OS than Linux in nearly every way that matters.
 

Paladin

Ars Legatus Legionis
33,855
Subscriptor
With modern hardware and software, I would just dual boot if you really feel like you need to switch. Boot times are small now and virtually everything I use has great session restore capabilities etc, so a reboot is no big deal.

Personally, I will stick with Windows on my own machines where I want to game and do general use stuff. Linux is coming closer as a desktop environment but if I have to buy a Windows license at any point anyway, why not just use it?

I use Linux on servers all the time anyway so I don't really need to fiddle with it on my desktop.
 

Drizzt321

Ars Legatus Legionis
34,959
Subscriptor++
For Linux I was planning on mostly using it as development and general environment.

I get what you're saying, the hypervisor is the one that'd control the output, so if I want to view anything I need a dom0 with a full X/Desktop environment and use something like a VNC viewer or similar then. I see. I suppose if I have GPU passthrough (and then USB passthrough) I probably could get it into a configuration where a domU guest is outputting like I expect to the different monitors, and then using something like Synergy have the 1 mouse & keyboard across both. Maybe I'll play with that for a few days to see if I can get it to work like that just for the hell of it.

But with a dual boot I actually have to spend the 1 minute to wait for the system to start back up :p
 

Drizzt321

Ars Legatus Legionis
34,959
Subscriptor++
Well, the laptop thing was just because it's spare hardware ATM, so why not experiment with things a bit. Although I do intend to install and use it soon. Still debating on Windows only, or dual boot, or VirtualBox Linux. *sigh* Decisions, decisions...

But I think I will try do play with Xen and GPU passthrough and such as I described above whenever I change systems.

Thinking about it, I probably will do that when I do redo my NAS, still keep FreeBSD as my dom0 for ZFS storage, and things like a linux domU or two for specific things. Such as CrashPlan which only has a Linux client, because it's been flaky (crashing now and then) on the FreeBSD linux-compat. And maybe try out some docker things and such for my personal development/edification.
 

Drizzt321

Ars Legatus Legionis
34,959
Subscriptor++
Just use the built in Windows 10 Hyper-V, it's the closest thing you're really going to get.

You know, never even considered that. I know of Hyper-V, heard a few good things here and there about it's more recent versions, but didn't even think of trying to run anything inside of that. There's even officially supported *nix as VMs and best practices. Interesting, thanks.

https://technet.microsoft.com/en-us...eebsd-virtual-machines-for-hyper-v-on-windows
 
Well, I'm coming from occasional Virtual Box usage, so just something different for me to learn :)

You could go all in and build a Linux machine with KVM and passtrough a dedicated GPU to a Windows VM and get near ( 95% ) hardware speeds of a bare metal Windows installation. You could even buy a SteamLink and hang this off your TV so you could game on the TV. This works a treat over wired ethernet.
 

RojBlake

Ars Legatus Legionis
48,129
Subscriptor
I know of VMWare, but can it reasonably support on a single machine this kind of thing? I suppose it's _sorta_ VDI, but isn't really because it's still local.
If you really want to have separate Windows and Linux environments on the same machine, running equally independently, then a hypervisor will do that for you, sure. Starting with a totally blank disk, you could install ESXi (which is free) on the laptop, create two VMs and then just use the built-in console to access them both. That'd work fine if you don't care about graphical performance too much.

But to be honest, I agree with the others that you're better off just installing Win10 and running Linux in a regular VM (through Virtual Box or VMware Workstation, or something). Going the hypervisor route doesn't seem like it actually solves any problems you're currently having.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
I know of VMWare, but can it reasonably support on a single machine this kind of thing? I suppose it's _sorta_ VDI, but isn't really because it's still local.
If you really want to have separate Windows and Linux environments on the same machine, running equally independently, then a hypervisor will do that for you, sure. Starting with a totally blank disk, you could install ESXi (which is free) on the laptop, create two VMs and then just use the built-in console to access them both. That'd work fine if you don't care about graphical performance too much.

But to be honest, I agree with the others that you're better off just installing Win10 and running Linux in a regular VM (through Virtual Box or VMware Workstation, or something). Going the hypervisor route doesn't seem like it actually solves any problems you're currently having.

You'd have to access them from a different system though. ESXi has no local console itself.
 

hawkbox

Ars Legatus Legionis
13,914
Subscriptor
You'd have to access them from a different system though. ESXi has no local console itself.
Is that version dependent? I'm running ESXi 5.5 and 6.0 and both have the local console if I connect directly to them.

By local console I mean you can't plug a monitor into it and manage vSphere. You need to use the vi client on older versions or the web client on newer versions. It requires a different system (or an autoboot VM) to be able to really do anything useful.
 

RojBlake

Ars Legatus Legionis
48,129
Subscriptor
You'd have to access them from a different system though. ESXi has no local console itself.
Is that version dependent? I'm running ESXi 5.5 and 6.0 and both have the local console if I connect directly to them.
By local console I mean you can't plug a monitor into it and manage vSphere. You need to use the vi client on older versions or the web client on newer versions. It requires a different system (or an autoboot VM) to be able to really do anything useful.
Apologies. I inferred "access them" to mean "access the VMs", which you can do via right-click -> Open Console in the VI client.

I didn't think we were talking about ESXi itself. Since this would be a physical machine in a non-enterprise environment, it's assumed that one would be hooking up a monitor and keyboard to get to the DCUI, right? (And then there's SSH, although obviously that's not a direct replacement for the DCUI.)
 
Status
Not open for further replies.