Re: Running Windows inside vmm/vmd VM.

2019-11-23 Thread Dave Voutila
On Sat, Nov 23, 2019 at 12:18 AM Jordan Geoghegan  wrote:
>
> However the timekeeping situation for my Linux VMs is bleak. On both
> Void and Alpine, no clocks are even detected. In the dmesg it complains
> about the TSC clock source being unstable. Ultimately, we're left with
> only jiffies as a clock source option:

Anecdotally, I've found distros using Linux kernels in the 4.9-4.14
range do ok in letting you force tsc even if it says it's unstable.
Newer kernels often have a myriad of issues booting. (Might not be
kernel related so much as just all the other stuff that changes around
it.)

If you experience either slight, chronic drift or drift related to the
OpenBSD host suspending/resuming after long periods of time, I wrote a
Linux kernel driver that mimics OpenBSD's vmmci(4) that may help:
https://github.com/voutilad/virtio_vmmci

The driver listens for notifications from vmd about clock drift events
and use kernel api calls to adjust as needed, properly triggering
anything scheduled. An added nicety is it'll also listen for
shutdown/reboot events as well and try to cleanly reboot or halt the
system via whatever init system the Linux guest uses, meaning services
should have a chance to stop themselves.

-Dave



Re: Running Windows inside vmm/vmd VM.

2019-11-22 Thread Jordan Geoghegan



On 2019-11-22 19:53, Jes wrote:

On Fri Nov 22, 2019 at 9:04 PM Dumitru Moldovan wrote:

  Supported guest operating systems are currently limited to OpenBSD and
  Linux. As there is no VGA support yet, the guest OS must support serial
  console.

Speaking of this, does anyone here have any experience running Linux VMs
on vmm/vmd? I threw Alpine/Debian installs together recently and
they seemed to work well. Looking for anyone with longer-term experience
as I'm interested in setting up a VPS hosting service on vmm/vmd, and
would appreciate any advice or anecdotes.

I have some Alpine and Void Linux installs running on vmm. They work 
well, with some caveats.


You may have issues with your VMs clocks. OpenBSD guests in vmm are now 
able to use the pvclock driver, which has greatly improved time keeping 
on my VMs, although I still do have some erratic clock jumping, but at 
least it's not so bad that ntpd can't keep up with it.


However the timekeeping situation for my Linux VMs is bleak. On both 
Void and Alpine, no clocks are even detected. In the dmesg it complains 
about the TSC clock source being unstable. Ultimately, we're left with 
only jiffies as a clock source option:


void$ cat 
/sys/devices/system/clocksource/clocksource0/available_clocksource

refined-jiffies jiffies

As a result, my clocks run at about one third of real time.

I've tried the Linux VM's on both an old Xeon machine as well as a 
modern Ryzen machine, and the clock situation seems to be equally bad on 
both of them.


...

Clock issues aside, I've found Linux guests to get better networking 
throughput on vmm than OpenBSD guests.


A few results from benchmarking Alpine vs Void vs OBSD, with iperf3:

(vmm host is older xeon rig, iperf3 tester is ryzen desktop)

Alpine got this result:

[ ID] Interval   Transfer Bitrate
[  5]   0.00-10.00  sec   511 MBytes   429 Mbits/sec  sender
[  5]   0.00-8.60   sec   511 MBytes   499 Mbits/sec  
receiver


Void Linux Got this result:

[ ID] Interval   Transfer Bitrate
[  5]   0.00-10.00  sec   611 MBytes   512 Mbits/sec  sender
[  5]   0.00-7.00   sec   610 MBytes   732 Mbits/sec  
receiver


And OpenBSD got this result:

[ ID] Interval   Transfer Bitrate
[  5]   0.00-10.00  sec   299 MBytes   251 Mbits/sec  sender
[  5]   0.00-10.19  sec   299 MBytes   246 Mbits/sec  
receiver


Because folks always freak out when tcpbench is forgotten about, I 
tested tcpbench as well between the two machines running OpenBSD:


Peak Mbps:  231.240 Avg Mbps:  204.423

I know that was some very unscientific testing, but hey, you asked for 
anecdotes.


Cheers,

Jordan



Re: Running Windows inside vmm/vmd VM.

2019-11-22 Thread Jes
On Fri Nov 22, 2019 at 9:04 PM Dumitru Moldovan wrote:
>  Supported guest operating systems are currently limited to OpenBSD and
>  Linux. As there is no VGA support yet, the guest OS must support serial
>  console.

Speaking of this, does anyone here have any experience running Linux VMs
on vmm/vmd? I threw Alpine/Debian installs together recently and
they seemed to work well. Looking for anyone with longer-term experience
as I'm interested in setting up a VPS hosting service on vmm/vmd, and
would appreciate any advice or anecdotes.



Re: Running Windows inside vmm/vmd VM.

2019-11-22 Thread Dumitru Moldovan

On Fri, Nov 22, 2019 at 07:42:39PM +0100, Karel Gardas wrote:


not sure what's current status of vmm/vmd hence asking. Has anybody
succeed with running Windows 10/Server 2019 inside the vmm/vmd VM?



From https://www.openbsd.org/faq/faq16.html#Introduction:


Supported guest operating systems are currently limited to OpenBSD and
Linux. As there is no VGA support yet, the guest OS must support serial
console.



Running Windows inside vmm/vmd VM.

2019-11-22 Thread Karel Gardas



Hello,

not sure what's current status of vmm/vmd hence asking. Has anybody 
succeed with running Windows 10/Server 2019 inside the vmm/vmd VM?


Thanks!
Karel