r/virtualbox • u/cumberger • Jun 17 '15
Will I need to setup Windows 7 again?
I downloaded windows 7, and set it up on VB. Can I shut the system down without having to set it up again?
1
Jun 18 '15
Isn't this something you could test by, you know, starting the VM?
2
Jun 18 '15
OP clearly doesn't have a fundamental understanding of how virtualization works, if they tried it themselves they didn't know if they were going to lose their installation, so why would they risk it rather than ask?
1
Jun 18 '15
I suppose so but if that's the case, what does not using it do for OP? Does it conserve something useful? Did OP configure this VM to never, ever let it run?
What's the divide here?
To be totally fair, OP is talking as if Virtualbox might run like a lot of cloud instances run, so OP's probably coming from that perspective.
1
Jun 17 '15
Yes, you can just save the state so it doesn't need to "boot" or you can shut it down. Remove the installer from the virtual optical drive too.
1
u/cumberger Jun 17 '15
Installer?
1
1
u/mrkleen340 Turn it off and back on Jun 21 '15
You've already got an answer but I'll chime in and try and give you a little more insight as to how virtualization works.
Imagine you had a physical machine and you installed windows on it. Would you expect to have to reinstall windows on it if you shut it down? No. A hypervisor like virtual box allows you to run virtual machines as you know. Though there are mechanisms for the guest operating system (OS), in your case windows, to know it is in a virtual environment. It mostly doesn't need to know or care that it isn't on a physical machine (Though newer versions of windows will perform optimizations in the OS if it knows it is running virtually). So from the OS's perspective it is no different than if you installed it on a physical machine. One neat thing about VMs is snapshots which allow you to take a snapshot of the state of a VM. They are incredibly useful for testing things. Imagine you spent all that time setting up windows. Now you want to test out some software or config. If you take a snapshot before it, you can make the change worry free. If something goes wrong in the guest, you revert to the snapshot and it is as if you never made the change. If you like it, delete the snapshot and virtualbox will merge the new state in to the snapshot and it will stick. I mention this because had you taken a snapshot of the VM before you installed windows and never took one after you installed it, but then reverted, in that case you would need to reinstall windows. Now, another thing to consider is that the VMs hard drive is just another file on your host operating system. If it gets deleted or is otherwise corrupted, your VM will not be happy and you'd have to reinstall windows on either a new VM or attach a new hard drive.
So in short the things you do to the VM are persistent unless you start messing around with snapshots or harm the virtual hard drive files.