0% found this document useful (0 votes)
72 views1 page

Res - Procedure

This document summarizes the steps taken to clone an existing Oracle VM Server for SPARC (OVM) virtual machine called gsol10 into a new VM called gsol11. It involves using oakcli commands to import a VM template, clone the VM, copy disk images, modify configuration files, start the cloned VM, rename associated zones and zone files, and restart the cloned VM.

Uploaded by

ovidiu0702
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views1 page

Res - Procedure

This document summarizes the steps taken to clone an existing Oracle VM Server for SPARC (OVM) virtual machine called gsol10 into a new VM called gsol11. It involves using oakcli commands to import a VM template, clone the VM, copy disk images, modify configuration files, start the cloned VM, rename associated zones and zone files, and restart the cloned VM.

Uploaded by

ovidiu0702
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

CREATE gsol11 from gsol10:

[root@oda11 ~]# oakcli import vmtemplate gsol_temp1 -files


/OVS/Repositories/delivery/DELIVERY/gsol.tar.gz -repo odarepo1
[root@oda11 ~]# oakcli clone vm gsol11 -vmtemplate gsol_temp1 -repo odarepo1
[root@oda11-dom0 gsol10]# cp
/OVS/Repositories/repo10/.ACFS/snaps/gsol10/VirtualMachines/gsol10/swap.img
/OVS/Repositories/odarepo1/VirtualMachines/gsol11/swap.img
[root@oda12-dom0 ~]# cp
/OVS/Repositories/repo10/.ACFS/snaps/oakvdk_ldata_gsol10/VirtualDisks/oakvdk_ldata_
gsol10 /OVS/Repositories/odarepo1/VirtualMachines/gsol11/ldata.img
## modify /OVS/Repositories/odarepo1/VirtualMachines/gsol11/vm.cfg to add swap.img
and ldata.img
## modify /OVS/Repositories/odarepo1/oakres.xml to add swap.img and ldata.img

[root@oda11 ~]# oakcli start vm gsol11


## Change /etc/hostname* on gsol11, pmb11 and report11
root@gsol10# zlogin pmb10 "init 5"
root@gsol10# zlogin report10 "init 5"
root@gsol10# zoneadm -z pmb10 detach
root@gsol10# zoneadm -z report10 detach
root@gsol10# zfs rename pool-ldata/pmb10 pool-ldata/pmb11
root@gsol10# zfs rename pool-ldata/pmb10_ldata pool-ldata/pmb11_ldata
root@gsol10# zfs rename pool-ldata/pmb10_lsav pool-ldata/pmb11_lsav
root@gsol10# zfs rename pool-ldata/report10 pool-ldata/report11
root@gsol10# zfs rename pool-ldata/report10_ldata pool-ldata/report11_ldata
root@gsol10# zfs rename pool-ldata/report10_lsav pool-ldata/report11_lsav
root@gsol10# zfs set mountpoint=/zones/pmb11 pool-ldata/pmb11
root@gsol10# zfs set mountpoint=/zones/report11 pool-ldata/report11
root@gsol10# zonecfg -z pmb10 export > pmb10.export
root@gsol10# zonecfg -z report10 export > report10.export
root@gsol10# vi pmb10.export ## replace pmb10 by pmb11
root@gsol10# vi report10.export ## replace report10 by report11
root@gsol10# zonecfg -z pmb10 delete
root@gsol10# zonecfg -z report10 delete
root@gsol10# zonecfg -z pmb11 -f pmb10.export
root@gsol10# zonecfg -z report11 -f report10.export
root@gsol10# zoneadm -z pmb11 attach -F
root@gsol10# zoneadm -z report11 attach -F
root@gsol10# zoneadm -z pmb11 boot
root@gsol10# zoneadm -z report11 boot
[root@oda11 ~]# oakcli stop vm gsol11
[root@oda11 ~]# oakcli start vm gsol11

You might also like