Quick and easy way to setup Guest Logical Domains using ZFS clone.

добавлено: 20 окт 08
просмотров: 1315
комментов: 0


Автор: Roman Ivanov

Question: I want to install more than one guest domain. Is there any way to speedup process.

Answer: Yes, sure.

This instruction can be used as supplimental to «Run your first Logical Domain in 10 minutes» as well as a separate guide.

  1. First setup the Control Domain and install the First Guest Domain ldg1. Use ZFS volume (In example, data/demo/ldg1) as back end drive for the system drive of guest domain. You can install Solaris either through a Network Install or by mounting a DVD or ISO file.

  2. Log in to the First guest domain Console and do 'sys-unconfig' in the domain.

  3. # sys-unconfig
    This program will unconfigure your system.  It will cause it
    to revert to a "blank" system - it will not have a name or know
    about other systems or networks.
    This program will also halt the system.
    Do you want to continue (y/n) ? y
  4. Wait for the system to come down and answer h — halt.

  5.  svc.startd: The system is down. 
     syncing file systems... done 
     Program terminated 
      r)eboot, o)k prompt, h)alt?  h

  6. From Control domain verify that guest domain ldg1 is stopped.

  7.  # ldm ls 
     primary active -n-cv SP 4 4G 0.5% 1h 30m 
     ldg1 bound ----- 5000 14 1984M 
  8. Unbind domain

  9.  # ldm unbind ldg1 
  10. Create a ZFS snapshot of the First Guest Domain's disk image:

  11. # zfs snapshot data/demo/ldg1@install
  12. Bind and Start domain back

  13. # ldm bind ldg1 
    # ldm start ldg1

  14. Clone the snapshot using the name ldg2 as the target volume

  15. # zfs clone data/demo/ldg1@install data/demo/ldg2
  16. Setup 2 nd Guest domain by using newly created ZFS clone data/demo/ldg2 as back-end to system disk.

  17. Repeat steps 8 and 9 for each next domain.


Необходимо войти на сайт, чтобы оставлять комментарии