Recommended Posts

why would you do that and what VM you use?

Well, mainly because:

 

I run OS X as my main OS, but also because SQL Server installs so much crap that I didn't want to clutter Windows with it.

 

So even when I was running Windows as my main OS, I used it in a VM. 

 

 

The VM OS is Windows Server 2012 R2. I used to use VMWare, but I've recently switched to Parallels.

  • 7 months later...

If you install into a VM you don't need to worry about what happens in your system, when you aren't using it you can file it away and turn it off. If you install it locally it is much more convenient (assuming you have it set to automatically start with windows). However what you could also do is install the server itself in a VM and install the management tools locally and happy connect when the VM is up.

 

If you go the VM route you should try and install on an OS that will as closely match your intended production environment as that will help reduce funkiness you might experience when you push it live - although to be fair once SQL Server is up running it is pretty damn reliable and easy to work with.

 

Personally I run multiple versions of SQL Server locally for development since it is more convenient for me and I don't have to worry about performance.

We run over a hundred different instances of SQL Server, in production, on VMware virtual machines. Even for big applications such as data warehousing with databases that are approaching a couple hundred gigabytes in size. 

 

SQL Server virtualises just fine.

would it be best to install sql server 2012 on a virtual machine or on local for practice and training purposes?

Training? I would Install a localhost devserver which includes phpmyadmin and mysql for learning sql. This way creating databases in easy for those sql queries.

 

Also maybe a bit easier method would be installing microsoft access...     Sometimes things might be a little bit different from mysql etc but for simple sql training purposes it will be more then adequate.

would it be best to install sql server 2012 on a virtual machine or on local for practice and training purposes?

Depressingly simple - simply install the OS that it needs in a VM, then install the software.  Not only are VMware and Oracle VirtualBox options, so is Hyper-V - in fact, that is one of the biggest uses FOR Hyper-V in testing-lab situations - it can be the basis for an entire virtual network - given enough CPU, you can literally simulate an entire soup-to-nuts AD-based domain on a single physical PC.  (Given the level of skill of the administrator, there are three Hyper-V-based hosting options for the VMs - Microsoft Hyper-V Server, Windows 8+, or Server 2012R2.  CPU required - Core i5 or better (any generation), with i7 preferred.  RAM required - 16 GB (32 GB or more preferred).  Local storage - 2 TB (4 TB or greater preferred).  (Those are the hosting server requirements - administrator-box requirements are, naturally, a lot less.

 

The CPU requirement - This is so the VMs themselves don't bog down.  SQL is compute-intensive (that is any version, and from anybody); it's why I refuse to suggest anything less than a quad-core for any PC hosting SQL.  Further, Microsoft SQL Server 2012 and later explicitly supports HTT (a feature of Core i7) - if you can afford it, apply it.

 

RAM requirements - Virtualization eats memory like M&Ms - therefore, fill a virtualization box up if possible.

Without a question, absurd for practice.  If he is just talking about queries and what not the VM route is too much as well.

It's like a sandbox on steroids, which depending on how it's setup might be worth it (I used to use difference images for VMs for classwork, could run 6 VMs side by side with less than 1GB of on-disk footprint)

From Microsoft. http://blogs.technet.com/b/andrew/archive/2010/11/23/sql-server-performance-in-a-virtual-world.aspx

No virtual machine will ever work as fast as a physical so your question is a bit pointless.

Erm, that's not what the article says. 80% is an assumption and the author states 95% is more likely. In addition, the article was written in 2010, and is assuming 2008R2 as your hypervisor. Like everything else in life, performance of virtualized SQL depends on a slew of factors. For example, I run SCCM 2007 with a dedicated SQL VM. The SQL VM is running on an external SSD attached via USB 3.0. My customers dedicated SQL box is running on a DL580 rack server with 16 cores, 32GB of RAM, partitioned indexes, RAID 1+0, etc. I can run a simple query for all Windows updates on both servers. To emulate my customer, I have the same categories and classifications selected. On my laptop VM, the query completes in 6 seconds to return about 80000 rows. On the production server, it takes about 30 seconds for the same result set. Disk I/O is clearly the bottleneck in this scenario. For CPU intensive tasks, the server would beat my little VM for sure.

 

On a side note, if you want to make setting up a virtual lab easy, check out the hydration kit by Johan Arwidmark. His Deployment Research blog is fantastic.

Dude I work for a private cloud hosting company and we set up SQL on a daily basis. 8k rows is nothing for SQL. If you want the performance then you go for physical. Anyway this is a different conversation.

I said 80000, not 8K. The OP's original question was about the viability of virtualized SQL for training and practice. My point is that it's entirely feasible. There are several configuration items that can be tweaked to tease out more performance, but for a lab environment none of those are really necessary.

  • 2 weeks later...
  • 3 weeks later...

For database intensive servers you need to ask yourself if it is production or development. 

 

If it's production, it is recommended you don't run it off of a VM unless the drive you are running it on is dedicated purely to that database. So if you have multiple users read/writing data at the same time, you don't need to worry about another server operation slowing down database read/writes. (this is of course for big applications that have a lot of database interaction).

 

If you are just learning/developing, then by all means use a VM. It's quick, easy, and you won't notice any real usability concerns. 

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • well you can add a GPU for around $500, that's still around the price of Steam Machine but overall significantly better in performance.
    • Fresh CachyOS install with Niri - I guess it's a little orange, but I'm working on it
    • FastStone Image Viewer 8.5 by Razvan Serea FastStone Image Viewer is a fast, stable, user-friendly image browser, converter and editor. It has a nice array of features that include image viewing, management, comparison, red-eye removal, emailing, resizing, cropping, retouching and color adjustments. Its innovative but intuitive full-screen mode provides quick access to EXIF information, thumbnail browser and major functionalities via hidden toolbars that pop up when your mouse touches the four edges of the screen. Other features include a high quality magnifier and a musical slideshow with 150+ transitional effects, as well as lossless JPEG transitions, drop shadow effects, image annotation, scanner support, histogram and much more. It supports all major graphic formats (BMP, JPEG, JPEG 2000, animated GIF, PNG, PCX, PSD, EPS, TIFF, WMF, ICO and TGA) and popular digital camera RAW formats (CRW, CR2, NEF, PEF, RAF, MRW, ORF, SRF, ARW, SR2, RW2 and DNG). FastStone Image Viewer features: Image browser and viewer with a familiar Windows Explorer-like user interface Support for many popular image formats and PDF viewing True Full Screen viewer with convenient image zoom support and unique fly-out menu panels Crystal-clear and customizable one-click image magnifier Powerful image editing tools: Resize/resample, rotate/flip, crop, sharpen/blur, adjust lighting/colors/curves/levels etc. Eleven re-sampling algorithms to choose from when resizing images Image color effects: gray scale, sepia, negative, Red/Green/Blue adjustment Image special effects: drop shadow, framing, bump map, sketch, oil painting, lens Draw texts, lines, highlights, rectangles, ovals and callout objects on images Clone Stamp and Healing Brush Superior red-eye effect removal/reduction with completely natural looking end result Multi-level Undo/Redo capability Single click to switch between best fit and actual size mode Image management, including file tagging, rating and drag-and-drop to copy/move/re-arrange files Histogram display with color counter feature Compare images side-by-side (up to 4 at a time) to easily cull those forgettable shots Image EXIF metadata support (plus comment editing for JPEGs) Configurable batch processing to convert/rename large or small collections of images Slideshow with 150+ transition effects and music support (MP3, WMA, WAV...) Create efficient image attachments for emailing to family and friends Print images with full page-layout control Create fully configurable contact sheets Create memorable artistic image montages from your family photos for personalized desktop wallpapers (Wallpaper Anywhere) Acquire images from scanners. Support batch scanning to PDF, TIFF, JPEG and PNG Versatile screen capture capability Powerful Save As interface to compare image quality and control generated file size Run favorite external editors with one keystroke from within Image Viewer Offer portable version of the program which can be run from a removable storage device Configurable mouse wheel support Support themes (bright, gray and dark) Support dual-monitor configurations Support touch interface (tap, swipe, pinch) Support dual instances Play video and audio files (Third party codecs may be required for old versions of Windows) And much more... FastStone Image Viewer 8.5 changelog: Added support for SVG format Added Start importing automatically and Handle duplicate file names automatically options to the Import Photos and Videos tool WebP files can now be rotated and saved with a single click Enhanced dark theme support in the PDF viewer Fixed a bug where some links in PDF files were not clickable Other improvements and bug fixes Download: FastStone Image Viewer 8.5 | Portable | ~15.0 MB (Freeware) View: FastStone Image Viewer Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Rookie
      DaviKar went up a rank
      Rookie
    • Dedicated
      HidekoYamamoto94 earned a badge
      Dedicated
    • One Month Later
      timbobit earned a badge
      One Month Later
    • One Month Later
      nates earned a badge
      One Month Later
    • Week One Done
      Almohandis earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      461
    2. 2
      +Edouard
      160
    3. 3
      PsYcHoKiLLa
      110
    4. 4
      Michael Scrip
      85
    5. 5
      Steven P.
      69
  • Tell a friend

    Love Neowin? Tell a friend!