Skip to content

Running Arch in Hyper-V

I run Arch on all my computers. After a year in a windows shop, I've just about gone crazy. Linux in a VM is the best I can do right now at work, so I run Arch in Hyper-V.

I like a tiling wm, this is the largest reason why using Windows at work is so painful, so I use Xorg. Hyper-V is sluggish in the GUI department, so I use VNC, tigervnc and a vnc viewer on the host to access.

My question is, is there a better way? Can I squeeze more out of the machine? Host has 8-cores and 32gb ram.

Its usable, but I'd like the bliss of shoving tiling, with all it's picom glory, down the throats of my coworkers. Tips and tricks much appreciated.

2 points14 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 67% up
Kind
Text
ID
gre2lu

Author

14
posts
243
comments
2
media
View profile

14 comments

You can try using Hyper-Vs "Enhanced Session", which uses xrdp with a special config (vsock). You connect via vmconnect.

Setup can be done using Microsoft's Github page: https://github.com/microsoft/linux-vm-tools

Edit: wording

3 points

Yes, I initially tried this and following the arch wiki for Hyper-V, I must have missed something in my configuration because it didn't work for me. But it was late and I was tired, so I should try again. Also had just configured VNC so perhaps there was a conflict.

2 points

I can't comment much on Hyper-V, but I believe the solution you're looking for is related to RemoteFX. I tend to have grade performance on VMware regarding graphics accelerations, as well as Virtual Box.

2 points

Ooh, thanks! I was unaware of RemoteFX. Will give it a proper go.

1 points

You can try VirtualBox too, if you have a recent Windows version (I think 1803+) and can enable the "hypervisor platform" feature, it will work with Hyper-V as the hypervisor.
There's also various RDP servers for Linux, although I haven't had the best of luck getting them to work properly.

2 points

How's the GUI performance? With Hyper-V as the hypervisor, I'd imagine there's no difference between just using Hyper-V directly.

1 points

If you can go the other way and run Windows in a vm you might get more preformance with qemu as the hypervisor

1 points

That's the dream. But not quite there yet with my freedom at work.

2 points

WSL2 that might get released this week with the 20H1 update suppose to have a Wayland compositor so I guess you should be able to run Sway in Windows 10 as it can run as a nested Wayland compositor.

1 points

No, the Wayland compositor is on the roadmap. Definitely not in the current WSL2. Probably not for quite some time.

1 points
unknown author

you could get bunch of Rasperri pi and set them up with external hard drives connected to your router at your home. Then you would have Arch farm that you could ssh / vnc into from anywhere

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.