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 15 added 3 lines
I first had a look at the [http://openvz.org] site, but concluded that running a recent Ubuntu server is not a "default route".\\
Since my hardware also
At line 20 added 2 lines
vbox clonehd ?
At line 24 added 2 lines
vbox modifyhd resize ?...
At line 28 added 2 lines
vrde stuff with extension packs....
At line 32 added 2 lines
VBoxHeadless...
At line 36 added 2 lines
2 is minimal required...
At line 40 added 2 lines
stats , NATing, live migration ?
At line 171 added 5 lines
%%small
{{{
%%(background-color : #d3ee03 )
}}}
%%
At line 157 removed one line
At line 294 added one line
!! Backing up the VM
At line 276 removed 3 lines
! Backing up the VM
At line 341 changed one line
And we should also change the vrdeport to prevent conflicts with the other VM :
!! Resizing HD
At line 343 removed 67 lines
%%(background-color : #d3ee03 )VBoxManage modifyvm Ubuntu2 --vrdeport=2338 %%
Listing what's on the file system shows :
%%small
{{{
metskem@gneisenau ~ $ find /home/metskem/VirtualBox\ VMs/
/home/metskem/VirtualBox VMs/
/home/metskem/VirtualBox VMs/Ubuntu2
/home/metskem/VirtualBox VMs/Ubuntu2/Ubuntu2.vbox
/home/metskem/VirtualBox VMs/Ubuntu2/Ubuntu2.vbox-prev
/home/metskem/VirtualBox VMs/Ubuntu2/Ubuntu2Disk.vdi
/home/metskem/VirtualBox VMs/Ubuntu2/Logs
/home/metskem/VirtualBox VMs/Ubuntu2/Logs/VBox.log.2
/home/metskem/VirtualBox VMs/Ubuntu2/Logs/VBox.log
/home/metskem/VirtualBox VMs/Ubuntu2/Logs/VBox.log.1
/home/metskem/VirtualBox VMs/Ubuntu2/Snapshots
/home/metskem/VirtualBox VMs/Ubuntu2/Snapshots/{f2164651-5e1f-41a1-91e4-b29a6ca48786}.vdi
/home/metskem/VirtualBox VMs/Ubuntu2/Snapshots/{07ea6270-23e6-450a-8c7a-2f00821967fb}.vdi
/home/metskem/VirtualBox VMs/Ubuntu2/Snapshots/2012-01-02T17-59-06-647401000Z.sav
/home/metskem/VirtualBox VMs/Ubuntu3
/home/metskem/VirtualBox VMs/Ubuntu3/Ubuntu3
/home/metskem/VirtualBox VMs/Ubuntu3/Ubuntu3/Ubuntu3.vbox
/home/metskem/VirtualBox VMs/Ubuntu3/Ubuntu3/Ubuntu2Disk.vdi
/home/metskem/VirtualBox VMs/Ubuntu3/Ubuntu3/Logs
/home/metskem/VirtualBox VMs/Ubuntu3/Ubuntu3/Logs/VBox.log
/home/metskem/VirtualBox VMs/Ubuntu3/Ubuntu3/Snapshots
/home/metskem/VirtualBox VMs/Ubuntu3/Ubuntu3/Snapshots/2012-01-02T17-59-06-647401000Z.sav
}}}
%%
So, it's not a good idea to name the vdi after the VM it is attached to.
Also, you may see that the network of the cloned VM is not coming up , in that case you have to "rename" the NIC by editing /etc/network/interfaces (etho ==> eth1)
! Resizing HD
The {{modifyhd}} subcommand allows you to resize a harddisk :\\
%%(background-color : #d3ee03 )VBoxManage modifyhd f1533722-250b-4bdc-8736-964bc6cbcfd7 --compact --resize 10000 %%
%%small
{{{
metskem@gneisenau ~ $ VBoxManage modifyhd f1533722-250b-4bdc-8736-964bc6cbcfd7 --compact --resize 10000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
}}}
%%
After starting the VM and logging in, you can see the size of the disk has increased:\\
%%small
{{{
root@ubuntu:~# fdisk -l
Disk /dev/sda: 15.7 GB, 15728640000 bytes
255 heads, 63 sectors/track, 1912 cylinders, total 30720000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008fd7a
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 499711 248832 83 Linux
/dev/sda2 501758 10237951 4868097 5 Extended
/dev/sda5 501760 10237951 4868096 8e Linux LVM
........
}}}
%%
At line 413 removed one line
Teleporting (Live Migration) cannot be used since this requires shared storage (which I don't have).
At line 416 changed 22 lines
%%small
{{{
VBoxManage createvm --name Ubuntu2 --ostype Linux --register
VBoxManage showvminfo Ubuntu2
VBoxManage unregistervm Ubuntu2 --delete
VBoxManage modifyvm Ubuntu2 --memory=256 --hwvirtex=off --hwvirtexexcl=off --vtxvpid=off --boot1=dvd --boot2=disk --boot3=none --nic1=bridged --bridgeadapter1=wlan0 --nicpromisc1=allow-all --vrde=on --vrdeport=13389
VBoxManage storagectl Ubuntu2 --name='IDE Controller' --add=ide --controller=PIIX4 --bootable=on
VBoxManage storagectl Ubuntu2 --name='SATA Controller' --add=sata --controller=IntelAhci --bootable=on
VBoxManage storageattach Ubuntu2 --storagectl='IDE Controller' --port=1 --device=1 --type=dvddrive --medium=/home/metskem/iso/ubuntu-11.10-server-i386.iso
VBoxManage list dvds
VBoxManage createhd --filename '/home/metskem/VirtualBox VMs/Ubuntu2/Ubuntu2Disk.vdi' --size=5000
VBoxManage storageattach Ubuntu2 --storagectl='SATA Controller' --port=1 --device=0 --type=hdd --medium='/home/metskem/VirtualBox VMs/Ubuntu2/Ubuntu2Disk.vdi'
VBoxManage startvm Ubuntu2 --type=headless
VBoxManage modifyvm Ubuntu2 --boot1=disk --boot2=dvd --boot3=none
VBoxManage snapshot Ubuntu2 take snapshot1 --pause
VBoxManage list --long runningvms
VBoxManage clonevm Ubuntu2 --options keepdisknames --name Ubuntu3 --basefolder '/home/metskem/VirtualBox VMs/Ubuntu3' --register
VBoxManage modifyvm Ubuntu2 --vrdeport=2338
VBoxManage modifyhd f1533722-250b-4bdc-8736-964bc6cbcfd7 --compact --resize 10000
}}}
%%
<summarize all handy VBoxManage cmds here........>