Check out my first novel, midnight's simulacra!

4000 Linux VT Solutions

From dankwiki
Revision as of 13:59, 19 January 2009 by Dank (talk | contribs) (→‎VT Hardware)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Holy god there's way too many ways to run a fake computer inside a real computer running Linux in the top ring. The most important thing is to learn tun/tap devices and bridges, since the builtin networking sucks in everything I've tried; tun/tap can back any reasonable choice. Just listing them off the top of my head:

  • KVM/Qemu - I dig KVM. Always have. It slapped an open kernel module between cheap COTS VT hardware and the open, feature-rich qemu frontend, fixed and stabilized aforementioned frontend, and has been pretty awesome for years.
    • If you have VT, use kvm. Otherwise, qemu's closed-source hoopajoop module can provide a bit better performance than unaccelerated kvm/qemu. You'll want to set up a large tmpfs FIXME import from researchwiki...
    • There's GUIs for these, but they're uglier than they're worth.
  • Xen - A juggernaut -- the Oracle to these 4000 solutions' fractured MySQL and postfreshSQL communities. I've ignored it almost completely, largely out of spite and contrarianism.
  • lguest - I know of this primarily due to following Rusty Russell's blog.
  • OpenVZ - No clue
  • VMWare - It exists, sure. Why are you running closed source? Utterly uninteresting.

There's also the virt* kernel modules:

[recombinator](0) $ find /lib/modules/ -iname \*virt\* -type f
/lib/modules/2.6.28.1/kernel/drivers/virtio/virtio_pci.ko
/lib/modules/2.6.28.1/kernel/drivers/virtio/virtio_ring.ko
/lib/modules/2.6.28.1/kernel/drivers/virtio/virtio.ko
/lib/modules/2.6.28.1/kernel/drivers/virtio/virtio_balloon.ko
/lib/modules/2.6.28.1/kernel/drivers/char/virtio_console.ko
/lib/modules/2.6.28.1/kernel/drivers/net/virtio_net.ko
/lib/modules/2.6.28.1/kernel/drivers/block/virtio_blk.ko
[recombinator](0) $ 

These seem to be drivers geared towards the exposed virtualized devices, or perhaps towards accelerating those devices, who knows FIXME?

VT Hardware

Without AMD's Pacifica extensions or Intel's VMX, VT is pretty unpleasant on x86 no matter what memory you throw at it. The reasons for this are elaborate and deeply, deeply boring to anyone who doesn't already know them.

This applies to Intel and AMD's virtualization technologies as added to the x86 instruction set, under Linux, unless otherwise stated. Check /proc/cpuinfo or use x86info(1) etc to look for the VT capability flags as extracted from cpuid data. Intel machines will show vmx like so:

[recombinator](0) $ grep flags /proc/cpuinfo | sort -u
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm
constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx est
tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow
[recombinator](0) $ 

If stymied in your search for expected VT, inspect your BIOS to ensure it hasn't been disabled there.

I just need a VPS mang!

I have chartered a 1and1 Linux VPS since 2009-01-01, and find it pretty damn reasonable.