This page (revision-18) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
18 23-Apr-2022 17:06 17 KB Harry Metske to previous restored previous version
17 23-Apr-2022 17:05 17 KB 24.55.37.52 to previous | to last
16 23-Apr-2022 17:05 17 KB Harry Metske to previous | to last typo
15 23-Apr-2022 17:05 17 KB Harry Metske to previous | to last
14 23-Apr-2022 17:05 17 KB Harry Metske to previous | to last
13 23-Apr-2022 17:05 15 KB Harry Metske to previous | to last
12 23-Apr-2022 17:05 16 KB Harry Metske to previous | to last
11 23-Apr-2022 17:05 15 KB Harry Metske to previous | to last
10 23-Apr-2022 17:05 13 KB Harry Metske to previous | to last
9 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
8 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
7 23-Apr-2022 17:05 10 KB Harry Metske to previous | to last
6 23-Apr-2022 17:05 8 KB Harry Metske to previous | to last
5 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
4 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
3 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
2 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
1 23-Apr-2022 17:05 1 KB Harry Metske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 296 added 62 lines
My first idea was to simply {{clonevm}} the VM, but you cannot clone a running VM, so you would first have to stop the VM in order to clone it, not what we want.\\
It appears that you can make a snapshot while the machine is running and {{clonevm}} that snapshot. So:\\
%%(background-color : #d3ee03 ) VBoxManage snapshot Ubuntu2 take snapshot1 %% \\
%%warning But here we run into a serious [VirtualBox bug|https://www.virtualbox.org/ticket/9255], and the running VM is now in a state {{ GURU MEDITATION }} %%
But an easy workaround is to use the (not explained) --pause parameter:\\
So after powering down the VM %%(background-color : #d3ee03 )( VBoxManage controlvm Ubuntu2 poweroff %% ), and starting it again, we : \\
%%(background-color : #d3ee03 ) VBoxManage snapshot Ubuntu2 take snapshot1 --pause %% \\
%%small
{{{
metskem@gneisenau ~ $ VBoxManage snapshot Ubuntu2 take snapshot1 --pause
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
}}}
%%
And you can see when you list the %%(background-color : #d3ee03 ) VM VBoxManage list --long runningvms %% :
%%small
{{{
metskem@gneisenau ~ $ VBoxManage list --long runningvms
Name: Ubuntu2
Guest OS: Other Linux
UUID: df6e7d7d-3e48-43f9-8358-126a89428fe3
Config file: /home/metskem/VirtualBox VMs/Ubuntu2/Ubuntu2.vbox
Snapshot folder: /home/metskem/VirtualBox VMs/Ubuntu2/Snapshots
Log folder: /home/metskem/VirtualBox VMs/Ubuntu2/Logs
Hardware UUID: df6e7d7d-3e48-43f9-8358-126a89428fe3
Memory size: 256MB
Page Fusion: off
VRAM size: 8MB
CPU exec cap: 100%
HPET: off
.......<cut>...........
Guest:
Configured memory balloon size: 0 MB
Snapshots:
Name: snapshot1 (UUID: 57ac3601-49b4-4d92-b9df-a8fba4035285) *
}}}
%%
Now we can take a clone of this snapshot :\\
%%(background-color : #d3ee03 )VBoxManage clonevm Ubuntu2 --options keepdisknames --name Ubuntu3 --basefolder '/home/metskem/VirtualBox VMs/Ubuntu3' --register %%
This takes a couple of minutes to complete :
%%small
{{{
metskem@gneisenau ~ $ VBoxManage clonevm Ubuntu2 --snapshot snapshot1 --options keepdisknames --name Ubuntu3 --basefolder '/home/metskem/VirtualBox VMs/Ubuntu3' --register
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Machine has been successfully cloned as "Ubuntu3"
}}}
%%