skip to main |
skip to sidebar
LDOMS: Getting started
- Verify if LDOM is already installed
- if not, install LDOM using the following command
- Verify that primary domain exist
- Check if the primary domain have the required services
- ldm ldm list-services primary
- If services are not available in primary domain, add these services. Add a virtual disk server, virutal console concentrator and virutal switch to the primary domain. These virtual services must be created to use the control domain as a service domain and to create virtual devices for other domains.
- Create a virtual disk server to allow importing virtual disks into a logical domain
- ldm add-vds primary-vds0 primary
- Export physical disks as virtual disks . Later these disks can be assigned to guest domain
- ldm add-vdsdev /dev/rdsk/c3t0d1s2 c3t0d1s2@primary-vds0
- Verify that virtual disks has been added to virtual disk server by checking the VDS section of the following output
- Add a virtual console concentrator
- ldm add-vcc port-range=5000-5100 primary-vcc0 primary
- Find the primary network interface (dladm show-phys) and add a virtual switch associated with primary network card. Virtual switch service enables networking between virtual network (vnet) devices in logical domains. The following command creates vritual switch named primary-vsw0 on net0 interface in the primary domain
- ldm add-vsw net-dev=net0 primary-vsw0 primary
- Verify that vsw0 device is created by issue dlam show-phys command
- # dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet unknown 0 unknown igb1
net4 Ethernet up 10 full usbecm2
net3 Ethernet unknown 0 unknown igb3
net0 Ethernet up 1000 full igb0
net2 Ethernet unknown 0 unknown igb2
net6 Ethernet up 1000 full vsw0
- Also , verify that switch is created over on net0 interface
- VSW
NAME MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw0 00:14:4f:fb:3f:ea net0 0 switch@0 1 1 1500 on
- Verify the services have been created by using the list-services command
- ldm list-services primary
- Remove some resources from primary domain so it can be allocated to guest domains. Configure the control domain with 32 virutal CPUs and 16GB of memory
- # ldm start-reconf primary
- # ldm set-vcpu 32 primary
- # ldm set-memory 16G primary
- # ldm set-crypto 4 primary
- Save the configuration and reboot the system
- ldm add-config initial
- ldm list-config
- init 6
- Enable the virtual network terminal server daemon to provide access to the virtual console to each logical domain
- svcadm enable vntsd
- svcs vntsd
- Create the guest domain ldom1 from the control domain. Assign 48 VCPUs and 24G of memory to it.
- # ldm create ldom1
- # ldm set-vcpu 48 ldom1
- # ldm set-memory 24G ldom1
- # ldm set-crypto 6 ldom1
- Assign the disk to your domain
- ldm add-vdisk pdisk c3t0d1s2@primary-vds0 ldom1
- Set auto-boot? and boot-device variables for the guest domain
- ldm set-variable auto-boot\?=true ldom1
- ldm set-variable boot-device=pdisk ldom1
- Assign vnet to the domain
- ldm add-vnet vnet1 primary-vsw0 ldom1
Just wanted you to know this was extremely helpful
ReplyDelete