|Skip Navigation Links|
|Exit Print View|
|Oracle VM Server for SPARC 2.1 Administration Guide Oracle VM Server for SPARC|
The following virtual device services must be created to use the control domain as a service domain and to create virtual devices for other domains:
vcc – Virtual console concentrator service
vds – Virtual disk server
vsw – Virtual switch service
For example, the following command would add a virtual console concentrator service (primary-vcc0) with a port range from 5000 to 5100 to the control domain (primary).
primary# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
For example, the following command adds a virtual disk server (primary-vds0) to the control domain (primary).
primary# ldm add-vds primary-vds0 primary
Assign a GLDv3-compliant network adapter to the virtual switch if each of the logical domains needs to communicate outside the box through the virtual switch.
For example, the following command would add a virtual switch service (primary-vsw0) on network adapter driver nxge0 to the control domain (primary).
primary# ldm add-vsw net-dev=nxge0 primary-vsw0 primary
This command automatically allocates a MAC address to the virtual switch. You can specify your own MAC address as an option to the ldm add-vsw command. However, in that case, it is your responsibility to ensure that the MAC address specified does not conflict with an already existing MAC address.
If the virtual switch being added replaces the underlying physical adapter as the primary network interface, it must be assigned the MAC address of the physical adapter, so that the Dynamic Host Configuration Protocol (DHCP) server assigns the domain the same IP address. See Enabling Networking Between the Control/Service Domain and Other Domains.
primary# ldm add-vsw mac-addr=2:04:4f:fb:9f:0d net-dev=nxge0 primary-vsw0 primary
Your output should look similar to the following.
primary# ldm list-services primary VDS NAME VOLUME OPTIONS DEVICE primary-vds0 VCC NAME PORT-RANGE primary-vcc0 5000-5100 VSW NAME MAC NET-DEV DEVICE MODE primary-vsw0 02:04:4f:fb:9f:0d nxge0 switch@0 prog,promisc