Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Virutal machines...

Virutal machines...

Scheduled Pinned Locked Moved The Lounge
c++cssdockertoolsperformance
25 Posts 16 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Andy Brummer

    The windows world is pretty far behind on that front. With Linux there is vagrant[^] to make managing virtual machines much easier. I'm just starting to get up to speed on it. For application deployment, there is docker[^], where you can virtualize just the files and apis for a specific application. I haven't started looking into it, just reading up on it right now. It looks like vagrant added support for windows guest oses with the latest version. https://www.vagrantup.com/blog/feature-preview-vagrant-1-6-windows.html[^]

    Curvature of the Mind now with 3D

    C Offline
    C Offline
    charlieg
    wrote on last edited by
    #13

    very interesting stuff.

    Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

    1 Reply Last reply
    0
    • A Andy Brummer

      The windows world is pretty far behind on that front. With Linux there is vagrant[^] to make managing virtual machines much easier. I'm just starting to get up to speed on it. For application deployment, there is docker[^], where you can virtualize just the files and apis for a specific application. I haven't started looking into it, just reading up on it right now. It looks like vagrant added support for windows guest oses with the latest version. https://www.vagrantup.com/blog/feature-preview-vagrant-1-6-windows.html[^]

      Curvature of the Mind now with 3D

      B Offline
      B Offline
      Brisingr Aerowing
      wrote on last edited by
      #14

      Vagrant runs on Windows as well (I have it installed, just haven't worked with it yet.) It looks quite cool, and is written in Ruby.

      What do you get when you cross a joke with a rhetorical question? --- The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

      D 1 Reply Last reply
      0
      • B Brisingr Aerowing

        Vagrant runs on Windows as well (I have it installed, just haven't worked with it yet.) It looks quite cool, and is written in Ruby.

        What do you get when you cross a joke with a rhetorical question? --- The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #15

        I used a vagrant setup by a coworker to create an Unbuntu VM to host a rails project I worked on earlier in the year. Other than some startup snafus (mostly caused by a default changing between when my coworker learned it and I installed it for that project) it worked great. Much easier than my trying to config a VM by hand would've been.

        Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

        1 Reply Last reply
        0
        • C charlieg

          Not that I have anything else to do this morning, I installed When on Virtual Box, was unhappy with it and tried again with VM Workstation. Much better performance, mouse less sluggish. But it caused me to think about the wonders and possibilities of using VMs to protect onself from catastrophe. I'm a consultant, and I image my main working laptop drive weekly. I cannot afford the time to re-install all of my software. But playing with VMs this weekend - suggests just using a VM to begin with, keep all work in container files and let the native OS just be a very limited native OS. How many of you follow this approach? The performance seems acceptable, especially on my Xp VM. I use Win 7 Pro 64bit day to day. Thought I might have to re-install everything into the new VM, but no, vmware provides a nifty utility to just pull it in to the new container.

          Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

          S Offline
          S Offline
          Simon ORiordan from UK
          wrote on last edited by
          #16

          It's a very good approach. I use a virtual machine for Linux building, with the mass of environment variables set up months ago. It lives on a Windows 7 machine and enables me to exploit limited resources(KVM switches and desk space being rare and costly)with a couple of clicks. It also allows me to tweak the build environment without breaking any other projects I have on the go. And of course, imaging the the master file makes it disaster proof.

          1 Reply Last reply
          0
          • M Marc Clifton

            charlieg wrote:

            How many of you follow this approach? The performance seems acceptable, especially on my Xp VM.

            I tried this a couple years ago and found the mouse and keyboard delay to be just a tad too noticeable and thus rather annoying. I haven't tried it since I upgraded my machine to an 8 core 16GB all SSD system, except that I have to run Ubuntu in a VM (using Oracle's Virtual Box.) There's still the "mouse just isn't snappy enough" but then again, I detest the UI that Ubuntu comes with. Whoever thought that a window's scrollbar should be hidden, requiring precise hovering over just those few pixels on the edge of the window so that the scrollbar pops up, and then it's this ridiculous slider thing, well, that person should be banned from UI design. But I digress -- I do indeed completely agree with your point, but whenever I've set one up, I seem to never use it, mainly due to lack of discipline. And then I get into the scenario of, oh, I need a custom control, let's download the code from this article, nope, not quite what I had in mind, let's try this one, etc., or even worse, doing that with third party software, and I'm not disciplined enough to do it on the main OS, so I end up polluting the VM instead. Of course, I could have saved an image before trying a bunch of options, but again, that's a discipline. I figure I might try this again and, having failed at this a couple times and learned valuable lessons regarding the care and feeding of one's VM, put those lessons into practice. Discipline! I should try VMWare again as well. The Virtual Box / Ubuntu combination pisses me off because copy and paste between main OS and Ubuntu doesn't work on one VM I use, but does on the other (probably because one is 64 bit Ubuntu and other is 32 bit Ubuntu) but copy and paste is essential because of klunky the tools are in Ubuntu. That said, the other thing that I find really helpful is the ability to network into the VM from the main OS -- I would definitely recommend that, either mapping a drive to the VM (for Windows VM's) or WinSCP'ing into the OS (for *nix OS's, PuTTY is also your friend in that case.) It's a huge timesaver to have your VM open but be able to access files from your main OS. And lastly, put everything valuable under source control, which is a great way to sync between the main and VM OS's. Which of course requires a private repository for private stuff. Options like DropBox, GDrive, etc., suck IMO

            I Offline
            I Offline
            irneb
            wrote on last edited by
            #17

            Marc Clifton wrote:

            Whoever thought that a window's scrollbar should be hidden, requiring precise hovering over just those few pixels on the edge of the window so that the scrollbar pops up, and then it's this ridiculous slider thing, well, that person should be banned from UI design.

            +1 ... that's one of the reasons I prefer other desktops over Ubuntu's Unity ... and thus use Kubuntu instead (i.e. KDE desktop pre-packaged into Ubuntu without any Unity / Gnome stuff). As for the sluggish mouse ... don't know ... wasn't that way for me: Kubuntu 64 host OS, VirtualBox with Wen 64 as client OS. Mouse worked seamlessly - just unfortunate that VB's drivers hasn't been updated for Wen (yet), thus 3d programs were less than acceptable while they work reasonably in a client W7 (not great but not causing hair pulling).

            M 1 Reply Last reply
            0
            • C charlieg

              Not that I have anything else to do this morning, I installed When on Virtual Box, was unhappy with it and tried again with VM Workstation. Much better performance, mouse less sluggish. But it caused me to think about the wonders and possibilities of using VMs to protect onself from catastrophe. I'm a consultant, and I image my main working laptop drive weekly. I cannot afford the time to re-install all of my software. But playing with VMs this weekend - suggests just using a VM to begin with, keep all work in container files and let the native OS just be a very limited native OS. How many of you follow this approach? The performance seems acceptable, especially on my Xp VM. I use Win 7 Pro 64bit day to day. Thought I might have to re-install everything into the new VM, but no, vmware provides a nifty utility to just pull it in to the new container.

              Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

              Y Offline
              Y Offline
              Yvan Rodrigues
              wrote on last edited by
              #18

              I too have been doing this. I was frustrated that I would have to reload my PC every six months or so. I tried a VM as my main dev machine about a year ago, and the experiment failed. It was way too slow. I decided to try again a couple of months ago. The main difference this time is that I am using a dedicated SSD drive for my virtual machines. My host system is a 3-year old i7 with 16GB running Windows 8 Pro. It has all of my portable apps for email, browsers, etc., but almost nothing installed. I have my main dev VM that includes every conceivable version of VS (I work on a lot of legacy projects), Ghostdoc, resharper and all the other goodies. It uses Hyper-V. Projects that are big, require isolation or another OS get their own VM. Currently I have a legacy project that is running in a VirtualBox VM with Windows Server 2002 and Visual C++ 6.0. My comments so far * Sometimes there is a little lag, but with the VMs on an SSD it is tolerable * I'm sure I can use multiple monitors with VMs, but I haven't tried. Sometimes it would help. * When using Hyper-V, connect to the client through RDP, not the Hyper-V application. It's more responsive, and you can cut/paste files between VM and host or even between VMs. * VirtualBox lets me cut and paste text, but not files. * VirtualBox has more modes. e.g. Seamless mode is pretty cool. * In a pinch when I needed to run a second copy of a VirtualBox VM on another host, it worked on my i5 mini-Mac without problems * Xamarin works fine inside a VM * You CANNOT run the Windows Phone emulator (which is a Hyper-V VM) inside a VM. (Learned the hard way) * I'd like to try FreeBSD (my preferred OS) as the host, haven't tried yet. * OSX will run inside a VM, not for the faint of heart * Another recent project required interfacing with a PciE Digital I/O board, which can't be accessed from VM.

              Yvan Rodrigues, C.Tech. Red Cell Innovation Inc.

              1 Reply Last reply
              0
              • C charlieg

                Not that I have anything else to do this morning, I installed When on Virtual Box, was unhappy with it and tried again with VM Workstation. Much better performance, mouse less sluggish. But it caused me to think about the wonders and possibilities of using VMs to protect onself from catastrophe. I'm a consultant, and I image my main working laptop drive weekly. I cannot afford the time to re-install all of my software. But playing with VMs this weekend - suggests just using a VM to begin with, keep all work in container files and let the native OS just be a very limited native OS. How many of you follow this approach? The performance seems acceptable, especially on my Xp VM. I use Win 7 Pro 64bit day to day. Thought I might have to re-install everything into the new VM, but no, vmware provides a nifty utility to just pull it in to the new container.

                Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                R Offline
                R Offline
                RefugeeFromSlashDot
                wrote on last edited by
                #19

                I work for a consulting firm and when I can do development on my employer's laptop rather than using a client provided device, I always spin up a VM and install any required software. I often have to use client-specific VPN software, and running it in a VPN keeps it off my employer's machine. It also makes clean up easy after I complete a project.

                1 Reply Last reply
                0
                • C charlieg

                  Not that I have anything else to do this morning, I installed When on Virtual Box, was unhappy with it and tried again with VM Workstation. Much better performance, mouse less sluggish. But it caused me to think about the wonders and possibilities of using VMs to protect onself from catastrophe. I'm a consultant, and I image my main working laptop drive weekly. I cannot afford the time to re-install all of my software. But playing with VMs this weekend - suggests just using a VM to begin with, keep all work in container files and let the native OS just be a very limited native OS. How many of you follow this approach? The performance seems acceptable, especially on my Xp VM. I use Win 7 Pro 64bit day to day. Thought I might have to re-install everything into the new VM, but no, vmware provides a nifty utility to just pull it in to the new container.

                  Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                  M Offline
                  M Offline
                  madprogrammi
                  wrote on last edited by
                  #20

                  I use a few virtual machines as well. Nothing fancy, just a few for other systems running under my Arch x86_64 host. I found it's also possible to clone the VMs to a raw image, then dd them to a real external drive to run on real hardware. For Windows, you'd do something along the lines of

                  VBoxManager --format raw

                  Don't know what you'd do to copy that to a physical drive :D not a big Windows fan.

                  Whoever created the Undo button is a genius.

                  1 Reply Last reply
                  0
                  • I irneb

                    Marc Clifton wrote:

                    Whoever thought that a window's scrollbar should be hidden, requiring precise hovering over just those few pixels on the edge of the window so that the scrollbar pops up, and then it's this ridiculous slider thing, well, that person should be banned from UI design.

                    +1 ... that's one of the reasons I prefer other desktops over Ubuntu's Unity ... and thus use Kubuntu instead (i.e. KDE desktop pre-packaged into Ubuntu without any Unity / Gnome stuff). As for the sluggish mouse ... don't know ... wasn't that way for me: Kubuntu 64 host OS, VirtualBox with Wen 64 as client OS. Mouse worked seamlessly - just unfortunate that VB's drivers hasn't been updated for Wen (yet), thus 3d programs were less than acceptable while they work reasonably in a client W7 (not great but not causing hair pulling).

                    M Offline
                    M Offline
                    Marc Clifton
                    wrote on last edited by
                    #21

                    irneb wrote:

                    and thus use Kubuntu instead

                    Thanks! I'll take a look at that. Marc

                    Imperative to Functional Programming Succinctly Higher Order Programming

                    I 1 Reply Last reply
                    0
                    • M Marc Clifton

                      irneb wrote:

                      and thus use Kubuntu instead

                      Thanks! I'll take a look at that. Marc

                      Imperative to Functional Programming Succinctly Higher Order Programming

                      I Offline
                      I Offline
                      irneb
                      wrote on last edited by
                      #22

                      Just to advise: I like KDE not because of its looks but more because it's so damned customizable. Actually it looks like what W8 should've been as an upgrade of W7's UI. If that one's not for you, there are various other desktops available for Ubuntu. From Gnome 2 or 3, through Lxde (like a very light weight XP) or Xfce (light-weight OSX lookalike if you customize it a bit) through to several others: http://www.howtogeek.com/163154/linux-users-have-a-choice-8-linux-desktop-environments/[^] You also don't need to uninstall Ubuntu to try out another desktop. You can install a new desktop from the Software Centre and then should have an option in the login screen. I just don't like wasting several megs of my SSD on something I'll never use.

                      M 1 Reply Last reply
                      0
                      • I irneb

                        Just to advise: I like KDE not because of its looks but more because it's so damned customizable. Actually it looks like what W8 should've been as an upgrade of W7's UI. If that one's not for you, there are various other desktops available for Ubuntu. From Gnome 2 or 3, through Lxde (like a very light weight XP) or Xfce (light-weight OSX lookalike if you customize it a bit) through to several others: http://www.howtogeek.com/163154/linux-users-have-a-choice-8-linux-desktop-environments/[^] You also don't need to uninstall Ubuntu to try out another desktop. You can install a new desktop from the Software Centre and then should have an option in the login screen. I just don't like wasting several megs of my SSD on something I'll never use.

                        M Offline
                        M Offline
                        Marc Clifton
                        wrote on last edited by
                        #23

                        irneb wrote:

                        You can install a new desktop from the Software Centre and then should have an option in the login screen.

                        Ah, wonderful. I was wondering about that, did a little research already and didn't really want to create a new VM. I've used Lxde with the Beaglebone, it's definitely really nice to have different desktop choices, it's something I wish Windows provided. Marc

                        Imperative to Functional Programming Succinctly Higher Order Programming

                        1 Reply Last reply
                        0
                        • C charlieg

                          Not that I have anything else to do this morning, I installed When on Virtual Box, was unhappy with it and tried again with VM Workstation. Much better performance, mouse less sluggish. But it caused me to think about the wonders and possibilities of using VMs to protect onself from catastrophe. I'm a consultant, and I image my main working laptop drive weekly. I cannot afford the time to re-install all of my software. But playing with VMs this weekend - suggests just using a VM to begin with, keep all work in container files and let the native OS just be a very limited native OS. How many of you follow this approach? The performance seems acceptable, especially on my Xp VM. I use Win 7 Pro 64bit day to day. Thought I might have to re-install everything into the new VM, but no, vmware provides a nifty utility to just pull it in to the new container.

                          Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                          P Offline
                          P Offline
                          Peter Adam
                          wrote on last edited by
                          #24

                          To keep your image running, virtualize just the HDD[^].

                          1 Reply Last reply
                          0
                          • C charlieg

                            Not that I have anything else to do this morning, I installed When on Virtual Box, was unhappy with it and tried again with VM Workstation. Much better performance, mouse less sluggish. But it caused me to think about the wonders and possibilities of using VMs to protect onself from catastrophe. I'm a consultant, and I image my main working laptop drive weekly. I cannot afford the time to re-install all of my software. But playing with VMs this weekend - suggests just using a VM to begin with, keep all work in container files and let the native OS just be a very limited native OS. How many of you follow this approach? The performance seems acceptable, especially on my Xp VM. I use Win 7 Pro 64bit day to day. Thought I might have to re-install everything into the new VM, but no, vmware provides a nifty utility to just pull it in to the new container.

                            Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

                            M Offline
                            M Offline
                            Member 3934551
                            wrote on last edited by
                            #25

                            Give KVM a try. At least that's what the "big boys" use in their data centers. In *buntu, apt-get install virt-manager and add your old machines to it. You will find that, with the virtio drivers and raw disk images, no cache and native threads, and a bit more ram, windows will run faster in the VM than on bare metal. This is because the kvm hypervisor does a good job on caching hot disk chunks in spare ram automagically. However you loose on the desktop integration side. As for backwards compatibility, there are other goodies you can find in the linux world. My uncle for example has to run some visualFox 6 and FoxPRO 2 ( good ol' msdos) apps and the hardware he was using is dying out. Windows 7 and up, completely ripped out the COM/OLE 16 bit compatibility layer thus making it impossible to just purchase hardware with a win sticker and run your tools. We ended up using DosBox and wine on a linux box with the old Microsoft OLE/COMs extracted from a windows 98 CD. It runs perfectly. As to why they still use it, well, one can not simply upgrade a county's retirement fund software to the latest and greatest :)) http://virt-manager.org/[^]

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups