Slashdot Mirror


Reasonable Hardware For Home VM Experimentation?

cayenne8 writes "I want to experiment at home with setting up multiple VMs and installing sofware such as Oracle's RAC. While I'm most interested at this time with trying things with Linux and Xen, I'd also like to experiment with things such as VMWare and other applications (Yes, even maybe a windows 'box' in a VM). My main question is, what to try to get for hardware? While I have some money to spend, I don't want to, or need to, be laying out serious bread on server room class hardware. Are there some used boxes, say on eBay to look for? Are there any good solutions for new consumer level hardware that would be strong enough from someone like Dell? I'd be interested in maybe getting some bare bones boxes from NewEgg or TigerDirect even. What kind of box(es) would I need? Would a quad core type processor in one box be enough? Are there cheap blade servers out there I could get and wire up? Is there a relatively cheap shared disk setup I could buy or put together? I'd like to have something big and strong enough to do at least a 3 node Oracle RAC for an example, running ASM, and OCFS."

25 of 272 comments (clear)

  1. 8 core Mac Pro by MacColossus · · Score: 5, Funny

    Xeon based, easy access to multiple drive bays, dual gigabit ethernet, etc. Runs linux, Windows, Mac OS X

    1. Re:8 core Mac Pro by jackharrer · · Score: 4, Informative

      I hope you're joking... That's waaaay too expensive.

      I can run up to 4 VM on my laptop (Lenovo T60) with 3GB a and Core 2 Duo 2GHz without any problems. Often I need to work on 3 machines (design one + cluster for testing) and it works really well together. Problem is that disk subsystem sucks, so I suggest you invest in some RAID, but processor or memory wise it's enough. If you run Linux, you can run more of them as they use less memory and processor usage is also nicer. Just stay away from GUI as X uses abysmal amount of processing power in remote VM for anything more that 800x600.

      You don't really need anything very expensive - most of commodity hardware nowadays runs VMWare Server easily. It's also free so even sweeter. Just choose processor that supports virtualisation, as that speeds up everything a lot.

      --

      "an experienced, industrious, ambitious, and often, quite often, picturesque liar" - Mark Twain
    2. Re:8 core Mac Pro by Anonymous Coward · · Score: 4, Interesting

      I often run 3 or 4 on my laptop at the same time with no problem.
      1 is a web server (linux) for dev testing.
      1 is a photo album server (winxp) for sharing my pics with friends and family.
      1 is a VM (winxp) I dedicate for downloading stuff off the net (BT, IRC).
      1 is a VM for browsing sites and connecting to work. This one erases everything when I shut it down, in case I get any crap-ware from browsing.

      The only thing preventing me from running more would be that my laptop only handles 3GB of memory and 4 VMs plus my host applications get close to reaching that limit. And swapping sucks.

    3. Re:8 core Mac Pro by TheKidWho · · Score: 4, Funny

      Wow... Your computing experience sounds like a real pain in the ass.

    4. Re:8 core Mac Pro by crazybit · · Score: 3, Interesting

      that's because it was a PowerPC box, try doing that with the new core2 Apple boxes.

      --
      - Human knowledge belongs to the world
  2. How about... by Anonymous Coward · · Score: 5, Funny

    ...something like this?

  3. Great question! by BadAnalogyGuy · · Score: 5, Funny

    I ran into this same situation and found the best cost/performance setup was a Beowulf cluster of netbooks.

    You get the cumulative power of those Atom processors and have a huge memory pool to run the VMs within.

  4. Just about any Dual core and up. by AltGrendel · · Score: 4, Informative

    Just check the BIOS to make sure that you can set the MB for virtualization.

    --
    The simple truth is that interstellar distances will not fit into the human imagination

    - Douglas Adams

  5. need special hardware? by TinBromide · · Score: 5, Informative

    I ran my first virtual machine on an athlon 2200+ with 768 megs of ram. If it can run windows 7, you can run a VM or 3 (Depending on how heavy you want to get). Essentially take your computer, subtract the cycles and ram required to run the OS and background programs, that's the hardware you have left over to run the os. If the guest OS was compatible with your original hardware, chances are it'll work just fine in the OS.

    --
    Is it sad that I am more likely to recognize you and your posts by your sig than your name or UID?
  6. Dell XPS Studio by drsmithy · · Score: 5, Interesting

    Dell currently have the Studio XPS (2.66Ghz Core i7, 3G RAM, 500G HDD) going for US$800 - for a basic home virtualisation server, it's hard to go past, especially if you spend another US$80 or so to bump the RAM up to 9GB. I can't imagine you could build it yourself for a whole lot less (depending on how you value your time, of course).

    (Damn, sometimes I wish I lived in the US. Stuff is just so bloody cheap there.)

  7. Memory by David+Gerard · · Score: 5, Informative

    64-bit Linux host and as absolutely much memory as you can possibly install.

    --
    http://rocknerd.co.uk
  8. Depends how many VMS your running. by Deleriux · · Score: 5, Informative

    I personally use qemu-kvm and im quite happy with it. Thats running on a dual core machine with 2G of ram (probably not enough ram though!).

    For the KVM stuff you need have chips which support Intels VT or AMDS AMD-V so your processor is the most important aspect. A quad core would probably be suitable too if you can buy that.

    For just experimentation usage its a fantastic alternative to VMWare (I personally got sick of having to recompile the module every time my Kernel got updated).

    On my box myself i've had about 6 CentOS VMs running at once but frankly there were not doing much most of the time. Ultimately its going to boil down to how much load you inflict on VMS underneath, my experience with it has not been very load heavy so I could probably stretch to 9vms on my hardware which is probably on the lower end of the consumer range these days.

    The most important bits are your CPU and RAM. If your after something low spec you can do dual core 2g ram but you could easily beef that up to quad core 8G RAM to give you something you can throw more at.

    Oh and Qemu without KVM is painstakingly slow - I wouldn't suggest it at all.

  9. What I use. by palegray.net · · Score: 3, Informative

    My VM server rig is decidedly low-end compared to many I've seen, but it certainly gets the job done. I custom built the box, mostly from components bought on NewEgg; it has a dual-core AMD64 chip (soon to be upgraded to a quad-core), 3 GB RAM, and about 500 GB total drive space between two IDE (yeah, I know, will upgrade to SATA at some point) drives.

    The machine runs Ubuntu Server with VMWare Server 2. I can easily run several Debian and Ubuntu VPS nodes on it under light load, and I use it for experimentation with virutal LANs and dedicated purpose VMs. I periodically power up a Windows Server 2003 VM, which uses a lot more resources, but it's still fine for testing purposes.

  10. Lots of deals on eBay by rackserverdeals · · Score: 5, Informative

    You can find lots of used servers on eBay that you can mess around with. Sun's v20z servers are pretty cheap and have a decent amount of power.

    A lot of the stuff I've run across is rack mounted and keep in mind that rack mounted servers are loud in most cases. So it may not be the best thing to play around with in your home or office.

    You don't really need any special CPU to mess around with virtualization, you won't get "full" virtualization but I don't think that will stop you. For more info check out, this page.

    I'm currently running a number vm's in my desktop using Sun'x VirtualBox (xVM) whatever they're calling it now. Even within some of the solaris VM's I'm running solaris containers so I'm doing virtualization upon virtualization and my processor doesn't have Virtualization technology support.

    If you want to do full virtualization look for server class CPUs. Xeons and Opterons. Using Newegg's power search there is an option to filter by CPU's that support virtualization technology.

    If you're primary focus is Oracle RAC, you may want to look at Oracle VM which is Xen based.

    --
    Dual Opteron < $600
  11. Used or scrapped server-class machine by roc97007 · · Score: 4, Interesting

    You can run virtual instances on practically anything. I use VMWare Workstation on an older AMD Athlon 3200+ (the machine on which I'm typing this) and get acceptable performance if I only have one instance booted at a time. You're not going to be playing video-intensive games on the instance, but it'll work find

    I maintain a few websites (my blog, a gallery, couple other things) on an old server class machine in the garage. Companies often scrap servers after the 3 year warranty expires, or they've finished depreciating (depending on individual business rules) and they're often fast enough to make reasonable virtual servers. Often you can pick them up at a scrap sale or surplus store, or, if your company has an IT department, get permission to snag a machine that's about to be scrapped.

    I recently brought up VMWare's free bare-metal hypervisor ESXi and was surprised at how easy it was to set up and create instances. VMWare has a free Physical-to-Virtual converter you might want to experiment with. It works great with Windows, but is kinda hit-and-miss with Linux.

    --
    Oliver's law of assumed responsibility: If you're seen fixing it, you will be blamed for breaking it.
  12. Do your homework before purchasing White Box HW by cthornhill · · Score: 3, Informative

    I strongly advise you to do your homework before spending money on non-server class hardware (or before selecting a server for that matter). VMWare runs on a lot of hardware, but it also fails badly on a lot of consumer grade motherboards. There are some list (White Box Hardware Lists such as http://ultimatewhitebox.com/) you can check. After spending some time on name server HW and on White Box gear, I can tell you that the name server gear is a lot more compatible, easier to work with, and worth the money (if you have it). If you are doing casual stuff and don't mind the considerable pain you will have to go through to get patches and select disks systems and other components, consumer gear will let you play a bit. As for doing anything serious with more than one VM on a box - not likely. Xen is a commitment, as is VMWare or any other VM system. It is going to eat the box if you do anything other than dabble in it, and you are going to spend some real money if you intend to do much with VMWare (think $3K - $5K to get very serious). Running a VM is easy. Running multiple servers, backups, external disk systems, etc. is real work and costs real money for all the extra stuff you will need. If you stick to Linux you can save a bunch, but if you intend to do any real work with MS Servers, you are going to need several licenses, and iSCSI targets, back up tools, etc...You won't actually learn too much before you go to that level that you can't learn with VMWare Workstation (a great product but not anything like a production server environment). You can get you feet wet for nothing but time with most of these tools, but you can't get real, in depth experience with what it takes to run a production cluster, replication, remote storage, live replication, and all the rest of the things you need for real production unless you actually set up a production like system - that means real servers (White Box or name brand) and lots of hardware. You won't be able to see much with less than 8 cores, and 16GB plus some local RAID and iSCSI network targets. You can get started, but if you are going to spend money, I really think you should start to buy gear that is going to build towards a real server environment or you should stick to home systems and maybe run VMWare Workstation or some other stand alone VM just to play with it. VM Mode Linux (not very popular today) or some Xen sets for personal use would give you some understanding of VM concepts, but not a lot of basis for real production issues (at least they did not for me and I was a pretty heavy development user). Production VM deployments have a lot of issues that all take real in depth study, and lots of resources (iron) to get right. On the other hand, you can get a Supermicro, a Dell, or HP server with dual Xenon quad cores for less than $4000 with some nice disk. Get 4 or 5 containers under a VM and set up a replication to another server and a remote iSCSI disk and then you have enough to start to actually do real learning on. Of course the license fees will be way more than the hardware costs, if you are using MS tools and VMWare. ESXi is OK but unless you are going to go deep and do it all the hard way (hack the OS) you can't do a lot with the free version. With Xen, if all you want is to run a couple versions of Linux, just get a quad core box and have some fun...it doesn't really give you much production knowledge, but you will have some interesting test you can try. What I am really saying is - with only 4 cores you can do some useful things to support development,and you might make a nice personal server for you private web sites, but you don't have enough iron to experience the real issues of production VM management. If you are going past what a developer does (or a tester) and looking at a operations type environment you will need 8 to 16 cores on multiple boxes. This is a lot more than a home user typically wants to spend. IMO you also can't really expect to be really good on more than one system unless you do it day in a

    1. Re:Do your homework before purchasing White Box HW by rackserverdeals · · Score: 5, Funny

      and if you're not careful, VMWare apparently makes the Enter key inoperable :)

      --
      Dual Opteron < $600
  13. Much better solution by codepunk · · Score: 4, Informative

    Amazon EC2 is what I use for stuff like this, both windows and linux boxes everything available at a single push of a button. I
    also use it alot for development, fire up a machine load and go.

    --


    Got Code?
  14. Two machines by digitalhermit · · Score: 4, Informative

    You can do Oracle with just a single machine running multiple VMs; however, if you really want to get serious, you should consider building two physical machines. One each machine, create a virtual or two with 1-2G of RAM. for the shared disk, use DRBD volumes between the two.

    My test RAC cluster has two AMD X2 64-bit systems with two gigabit NICs each. CompUSA has a similar machine for about $212 on sale this week. Newegg prices are similar. You'll need to add a couple extra Gig NIC and some more storage. Still should cost under $400 each.

    On each physical system I used CentOS 5.2 with Xen. I created LVMs on the physical machines as the root volumes. Also carved out a separate volume to back the shared volume. Then I carved out a xen virtual machine on each with 1.5G each. I put the DRBD network on one pair of NICs. The other pair was used for the network and heartbeat (virtual ethernet devices).

  15. Re:Reccomend a Quad Core CPU by MeanMF · · Score: 4, Informative

    Choosing the "dual processor" option in a VM isn't necessarily a good idea, especially if you have a lot of VMs running. It means that whenever the VM needs physical CPU time, it has to wait until two cores free up. And when it does get CPU time, it will always use two cores, even if it's not doing anything with the second one. So if there is a lot of competition for CPU, or if you're running a dual-processor VM on a dual-core host, it can actually cause things to run much slower than if all of the VMs were set to single-processor.

  16. Don't bother with 'server' hardware by Minwee · · Score: 3, Insightful

    The difference between 'server class' hardware and you beige box PC is that the more expensive 'server' is a lot more reliable and has extra remote access and hardware monitoring features. That's about it. If all you want is to run virtual machines in a test environment, just get a desktop with a hefty CPU and a whole whack of RAM and you're set. A good 'gaming' machine without the video card would be fine. You don't need to spend extra for a 'server'.

  17. Re:Reccomend a Quad Core CPU by Anonymous Coward · · Score: 3, Interesting

    Not necessarily. Look up "relaxed co-scheduling." It's been in there since around 2006. (Another reason why VMware outperforms the others.)

  18. You just need enough RAM by marynya · · Score: 3, Informative

    The main requirement is enough RAM for two operating systems plus some extra for the virtualization system. The CPU is less important. I run Windows XP Pro as a virtual system on a Linux host with VMware Workstation 6. It is a 5-year-old Athlon 3000+ box with 1 GB of RAM. I allocate 512 MB to Windows, which is about the minimum for XP. Current Linux distributions need at least 256 MB and VMware is something of a memory hog itself so 1 GB is about the minimum RAM for this setup. Windows is perhaps just a smidgen slower than it would be if running natively on the same hardware but the difference is minimal. It does not have much effect on the speed of Linux apps running simultaneously. Things bog down fast if you try to run more than one virtual system simultaneously but VMware is good at using multiple processors for this. I did some work which involved running up to 6 instances of FreeBSD simultaneously on an 8-core Xeon system with 4 GB RAM. Up to 6 it did not slow down much. Over 6 it got sludgy. Have fun! Mike

  19. My hints by kosmosik · · Score: 4, Informative

    Well you don't clearly state what you wish to accomplish nor how much money you have so it is hard to answer. But maybe such setup will be OK.

    Build yourself custom PCs.

    Storage server:
    - good and big enclosure which can fit large ammount of drives
    - moderate 64bit AMD processor (really any - you will not be doing any serious processing on storage server)
    - any ammount of RAM (really 1 or 2 gigs will be enough)
    - mobo with good SATA AHCI support (for RAID) and NIC (any - for management) onboard
    - one 1Gb PCI-* NIC with two ports
    - 6x SATA2 NCQ HDD (any size you need) dedicated for working in RAID - software based (dmraid) RAID1+0 array configuration

    Virtualization servers (2 or more):
    - you need the virtualization servers to have the same config
    - any decent enclosure you can get
    - the fastest 64bit AMD processor you can get preferably tri or quad core (it will do the processing for guests) with VT extensions
    - as much RAM as you can get/fit into the machine
    - mobo with VT support, one (any - for management) NIC onboard
    - one 1Gb PCI-* NIC with two ports
    - one moderate SATA disk for local storage (you will be using it just to boot the hypervisor) or disk-on-chip module

    Network switch and cables:
    - any managed 1Gb switch with VLAN and EtherChannel support, HP are quite good and not as expensive as Cisco
    - good CAT6 FTP patchcords

    General notes for hardware:
    - make sure all of the PC hardware is *well* supported by Linux since you will be using Linux :)
    - if you can get better (quality wise) components, good enclosures, power supplies, drives etc. - since it is a semi server setup you don't like it to fail for some stupid reason

    Network setup:
    - make two VLANS - one for storage, other for management
    - plug onboard NICs into management VLAN
    - plug HBA NICs into storage VLAN
    - configure ports for EtherChannel and use bonding on your machines for greater throughput

    Software used:
    - for storage server just use Linux
    - for virtualization servers use Citrix XenServer5 (it is free, has nice management options, supports shared storage and live motion) or vanilla Xen on Linux, don't bother with VMWare Server, VMware ESX and Microsoft solutions are expensive

    Storage server setup:
    - install any Linux distro you like (CentOS would not be a bad choice)
    - use 64bit version
    - use dmraid for RAID and LVM for volume management
    - share your storage via iSCSI (iSCSI Enterprise Target is in my opinion best choice)

    Virtualization servers setup:
    - install XenServer5 (or any distro with Xen - CentOS won't be bad)
    - use interface bonding
    - dont use local storage for VMs - use storage network instead

    Well here it is. Quite powerfull and cheap virtualization solution for you.

  20. Parent++; you basically don't need specia hardware by arete · · Score: 3, Interesting

    Basically, as long as each virtual node isn't doing any WORK, you don't need any special hardware. And even if they are doing some work, but just not a lot. We have 5 Linux Xen VMs in production on a 1600Mhz Celeron with 768MB of RAM, works fine, no problems.

    The CPU is almost irrelevant - you'll need whatever CPU you'd need to do all the things you're doing, plus some overhead, but it's not like it falls apart.

    RAM is the only critical thing. You need at least 96 MB for the host and 24MB for each additional live Xen VM, as I recall (That's probably not precisely right) But you'll naturally be swapping a ton if you do that. A more reasonable VM has 128M - 256MB of RAM itself, so you need that for each active VM. But again, that's only for each one running at a time.

    Or if you are going to swap a bunch, get better disks :)

    In any case, I definitely wouldn't climb the price curve of equipment to do this; don't buy anything on the bleeding edge - look at arstechnica and just max the RAM on a value box - or maybe upgrade the MB to something that takes more RAM.

    Used, commodity computer equipment is usually not price effective compared to the cheap end of what's still available new. But pay attention to the price point where it's cheaper to get (and power, while they're on) TWO value boxes than to pump up the one box you've been thinking of higher.

    --
    Looking for freelance Actionscript (Flash/Flex) or ColdFusion work and/or freelance developers. Email me, put Slashdot