Difference between revisions of "Configuring the Host system, the Control Domain"

From Peter Pap's Technowiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 32: Line 32:
 
7. Create a virtual switch to allow the control domain to communicate to the LDOMs
 
7. Create a virtual switch to allow the control domain to communicate to the LDOMs
  
   ldm add-vsw net-dev=e1000g0 primary-vsw0 primary
+
   ldm add-vsw net-dev=e1000g0 inter-vnet-link=off primary-vsw0 primary
  
This means that all the LDOMs at this stage will be communicating with themselves and world via the same physical network port, e100g0.
+
This means that all the LDOMs at this stage will be communicating with themselves and world via the same physical network port, e1000g0.  I set '''inter-vnet-link''' to '''off''' so that all virtual machine traffic has to go through the virtual switch, which uses fewer resources.
  
 
8. View that the services have been created.
 
8. View that the services have been created.

Latest revision as of 06:16, 24 April 2012

1. Install Solaris 10 on your host system. You're a grown adult, so you decide on how you wan to partition it and what range of packages you want to install.

2. Download the Oracle VM Server for SPARC software from Oracle

3. Upload the software to your LDOM server, unpack and install

 unzip V24253-01.zip
 cd OVM_Server_SPARC-2_0/Install/
 ./install-ldm

You'll be asked if you want to configure the system now. I always prefer to do it manually later:

 Select an option for configuration:
 
 y) Yes, launch the Configuration Assistant after install
 n) No thanks, I will configure the system manually later
 
 Enter y or n [y]: n

4. Reboot

 shutdown -g0 -i6 -y

5. Create a virtual console concentrator to allow virtual console access to individual LDOMs

  ldm add-vcc port-range=5000-5100 primary-vcc0 primary

6. Create a virtual disk server (vds) to allow virtual disk to be imported into LDOMs

  ldm add-vds primary-vds0 primary

7. Create a virtual switch to allow the control domain to communicate to the LDOMs

  ldm add-vsw net-dev=e1000g0 inter-vnet-link=off primary-vsw0 primary

This means that all the LDOMs at this stage will be communicating with themselves and world via the same physical network port, e1000g0. I set inter-vnet-link to off so that all virtual machine traffic has to go through the virtual switch, which uses fewer resources.

8. View that the services have been created.

  ldm list-services

should look something like:

 VCC
     NAME             LDOM             PORT-RANGE
     primary-vcc0     primary          5000-5100
 
 VSW
     NAME             LDOM             MAC               NET-DEV   ID   DEVICE     LINKPROP   DEFAULT-VLAN-ID PVID VID                  MTU   MODE  
     primary-vsw0     primary          00:14:4f:fa:40:c8 e1000g0   0    switch@0              1               1                         1500        
 
 VDS
     NAME             LDOM             VOLUME         OPTIONS          MPGROUP        DEVICE
     primary-vds0     primary

9. List the crypto devices in the control domain

  ldm list -o crypto primary

Will look something like:

  # ldm list -o crypto primary
  NAME
  primary
  MAU
      ID     CPUSET
      0      (0, 1, 2, 3, 4, 5, 6, 7)
      1      (8, 9, 10, 11, 12, 13, 14, 15)
      2      (16, 17, 18, 19, 20, 21, 22, 23)
      3      (24, 25, 26, 27, 28, 29, 30, 31)
      4      (32, 33, 34, 35, 36, 37, 38, 39)
      5      (40, 41, 42, 43, 44, 45, 46, 47)
      6      (48, 49, 50, 51, 52, 53, 54, 55)
      7      (56, 57, 58, 59, 60, 61, 62, 63)

10. Assign a single crypto resource to the control domain

  ldm set-mau 1 primary

Will look like:

  # ldm list -o crypto primary
  NAME
  primary
  MAU
      ID     CPUSET
      0      (0, 1, 2, 3, 4, 5, 6, 7)

11. Assign virtual CPU's to the control domain

  ldm set-vcpu 8 primary

12. Initial a delayed reconfiguration on the control domain

  ldm start-reconf primary

13. Assign memory to the control domain

  ldm set-memory 2G primary

14. Add a ldom config to the service processor (SP)

  ldm add-config initial

Use

  ldm list-config

to check it worked

15. Reboot

  shutdown -g 0 -i 6 -y

16. Enable the virtual server network terminal server daemon, to allow access to virtual consoles

  svcadm enable vntsd

17. Create a ZFS RAID-Z pool to hold the LDOM disk images

 zpool create -f storage raidz c1t2d0 c1t3d0 c1t4d0 c1t5d0 c1t6d0 c1t7d0