• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Tossing a VM between machines

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Tossing a VM between machines

    I was thinking that if you had your dev-PC running as a VM, you could simply throw this single VM file between your desktop and laptop when you have to travel rather than muck about with SVN, Dropbox, yada yada.

    Is this feasible - is a VM image a single entirely self-contained file?
    Are there even any tools to sync a VM image between multiple machines so you don't have to copy the whole multi-Gb file each time?
    Originally posted by MaryPoppins
    I'd still not breastfeed a nazi
    Originally posted by vetran
    Urine is quite nourishing

    #2
    This is what I do )

    Its not quite a single file as I use Virtualbox so its a *.vmdk file (The "Hard Drive") and a *.vbox (The "System"), you could try and really be clever and install the vmdk into Dropbox or another such application and then you don't have to worry about having to transfer it etc.
    Originally posted by Stevie Wonder Boy
    I can't see any way to do it can you please advise?

    I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

    Comment


      #3
      I'm pretty sure you can make the VM a portable file but I think if you used Dropbox to sync it, it would upload the entire file every time you did anything inside the VM. You want to sync the files inside the VM, not the actual VM file.

      I think...

      Comment


        #4
        WSMS

        Virtualbox has an export function that allows this but I'm assuming you could just as easily have a VM on two different machines that use the same virtual harddisk.

        Just to add, certainly WinXP is happy to use the same license for both copies of the same machine

        Comment


          #5
          Originally posted by Bunk View Post
          I'm pretty sure you can make the VM a portable file but I think if you used Dropbox to sync it, it would upload the entire file every time you did anything inside the VM. You want to sync the files inside the VM, not the actual VM file.

          I think...
          I wouldn't say portable, but you can export the *.vmdk and *.vbox as one *.ova file, but its a one hit thing so not sure how much time you would have if you are regularly swapping between machines.

          I use what Bunk's suggest of syncing the files within the VM with Dropbox
          Originally posted by Stevie Wonder Boy
          I can't see any way to do it can you please advise?

          I want my account deleted and all of my information removed, I want to invoke my right to be forgotten.

          Comment


            #6
            With VirtualBox I just copy the complete subdirectory for the machine, so that I get the snapshots (if any) and logs

            Here's a typical subdirectory

            Code:
            ls -lh Ubuntu-LTS/
            total 9541848
            drwx------  5 test  staff   170B 21 Jan 16:48 Logs
            drwx------  3 test  staff   102B 21 Jan 17:02 Snapshots
            -rw-------  1 test  staff   9.7K 21 Jan 17:03 Ubuntu-LTS.vbox
            -rw-------  1 test  staff   9.7K 21 Jan 17:03 Ubuntu-LTS.vbox-prev
            -rw-------  1 test  staff   4.5G 21 Jan 17:02 Ubuntu-LTS.vdi
            Then:
            1. Fire up VirtualBox, but don't start the VM yet.
            2. Instead go into Settings for that VM, and VirtualBox will automagically work out if things like the network need changing for the new environment, and apply necessary changes.
            3. Start the VM
            Last edited by Sysman; 6 February 2013, 16:45.
            Behold the warranty -- the bold print giveth and the fine print taketh away.

            Comment


              #7
              Originally posted by SimonMac View Post
              I wouldn't say portable, but you can export the *.vmdk and *.vbox as one *.ova file, but its a one hit thing so not sure how much time you would have if you are regularly swapping between machines.
              It's been a while since I bothered with .ova files because I found creating them incredibly slow and they didn't always work.
              Behold the warranty -- the bold print giveth and the fine print taketh away.

              Comment


                #8
                Maybe I misunderstand when you guys talk about syncing the contents. The 'contents' of the VM would not just be things like programming code, but all the installed apps on a typical developer machine. If I got a new laptop, my thinking was this could save having to do any setup other than dumping the VM (or it's HD image) on it and installing the VM client. It could even include the running state of applications if I hibernate/suspend the VM?

                Work would still be saved into SVN or other backup solutions, this is more like cloning the whole setup than something I'd do every morning.
                Originally posted by MaryPoppins
                I'd still not breastfeed a nazi
                Originally posted by vetran
                Urine is quite nourishing

                Comment


                  #9
                  I even wondered if one could simply keep the VM on a portable USB drive, then use it on any PC you wanted... but is that impractical with USB2?
                  Originally posted by MaryPoppins
                  I'd still not breastfeed a nazi
                  Originally posted by vetran
                  Urine is quite nourishing

                  Comment


                    #10
                    Originally posted by d000hg View Post
                    I even wondered if one could simply keep the VM on a portable USB drive, then use it on any PC you wanted... but is that impractical with USB2?
                    Completely practical, especially if you have an SSD in there. I actually bought my first SSD for exactly this purpose, though I also bought an eSATA express card the VMs ran fine over USB2. The only minor annoyance is that you won't have TRIM support.
                    While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

                    Comment

                    Working...
                    X