Pagefile on immutable disk?

Discussions about using Windows guests in VirtualBox.
Post Reply
poulbak
Posts: 33
Joined: 9. Feb 2010, 22:52
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly Windows 7

Pagefile on immutable disk?

Post by poulbak »

I am thinking of making a more effective use of disks regarding pagefile.
Currently I simply have it as 'C:\pagefile.sys' inside the vdi. This means that whenever I create a snapshot, that file takes up a lot of space, which is basically garbage (and will even be backed up too).

On the host I have moved pagefile to D: drive - physical disk 2. This has at least 2 advantages: Speed, I/O operations on C: drive are not slowed down when used - and it won't be backed up, saving space.

I would like a similar thing on my VM, here I was also hoping to save a lot of space.
However I have never tried it and I can't find anything on theses forums regarding this issue.

Is 'Immutable' the right way to go - will it work or are there other ways? Ideally I want a small vdi file that I can 'write to' and which is then reverted back when closing the vm.
Anyone tried this?
Poul Bak
------------------------------------------------------
2011: The year of hardware acceleration
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Pagefile on immutable disk?

Post by vbox4me2 »

This will work fine, but not all VBox versions will trow away the immu-diff file on restart. You might have to script it if your version doesn't.
poulbak
Posts: 33
Joined: 9. Feb 2010, 22:52
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly Windows 7

Re: Pagefile on immutable disk?

Post by poulbak »

Forgot to mention: VBox is 4.0.4 (newest).
Are you saying that the changes are thrown at restart or when closing down? I'm of course thinking of the backup issue (saving space).
Poul Bak
------------------------------------------------------
2011: The year of hardware acceleration
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Pagefile on immutable disk?

Post by vbox4me2 »

Thats the 64k question, some versions trow them away at VM restart, others at VBox restart and some not at all. In either way at least a swap-vdi can be excluded from backup.
Post Reply