[Level 3] Clone multi-server on VirtualBox guest by ZFS clone.

How to save your disk space while you need multi VirtualBox guest?
You can use ZFS clone to clone ZFS filesystem.
But while you import the vdi, you willgot an error message with duplicated disk uuid.
So you need to modify the disk uuid by command VBoxManage.
The complete steps as the following:

1. create zfs pool for VirtualBox VDI.
# zpool create vdiPool c1t0d0s0; # default folder is /vdiPool

2. create zfs filesystem for Source VDI.
# zfs create vdiPool/vdiSource; # default folder is /vdiPool/vdiSource

3. create VirtualBox guest, and create vdi on /vdiPool/vdiSource/OpenSolaris.vdi

4. clone vdi source
# zfs snapshot vdiPool/vdiSource@installed
# zfs clone vdiPool/vdiSource@installed vdiPool/vdiTarget1

# VBoxManage internalcommands setvdiuuid /vdiPool/vdiTarget1/OpenSolaris.vdi


Wish this helps.

regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python