what's the way to update a immutable vdI (virtualbox 3.0.8 )?
I have a VM for my guests for internet access where
i want to update the guest additions from 2.1.4 to 3.0.8
My first attempt (which was not working) was to
1. set the vdi's state to normal (vboxmanage modifyhd immutable.vdi --type normal)
2. start the VM
3. install the updates
4. shutdown the VM
5. set the vdi's state to immutable again (vboxmanage modifyhd immutable.vdi --type immutable)
6. start the VM again
Now the VM has the state before installing the updates
Is this a bug or did i made a mistake?
The second (working) attempt:
1. clone the vdi and make it normal (vboxmanage clonehd immutable.vdi temp.vdi --type normal)
2. register temp.vdi
2. attach temp.vdi to the VM
3. start the VM
3. install the updates
4. shutdown the VM
5. detach temp.vdi from the VM
6. unregister immutable.vdi and temp.vdi
7. delete immutable.vdi
8. rename temp.vdi to immutable.vdi.
9. register immutable.vdi
10. set the vdi's state to immutable (vboxmanage modifyhd immutable.vdi --type immutable)
11. attach immutable.vdi to the VM
12. start the VM again
Now it has the updates installed and is immutable again
But the detaching, attaching and registering stuff is is complex and clonehd takes a long time.
Is there a better solution
Thanks for your help, regards
Carsten