Document Information
Preface
Solaris Virtualization Product Overview
Part I Resource Management
1. Introduction to Solaris Resource Management
2. Projects and Tasks (Overview)
3. Administering Projects and Tasks
4. Extended Accounting (Overview)
5. Administering Extended Accounting (Tasks)
6. Resource Controls (Overview)
7. Administering Resource Controls (Tasks)
8. Fair Share Scheduler (Overview)
9. Administering the Fair Share Scheduler (Tasks)
10. Physical Memory Control Using the Resource Capping Daemon (Overview)
11. Administering the Resource Capping Daemon (Tasks)
12. Resource Pools (Overview)
13. Creating and Administering Resource Pools (Tasks)
14. Resource Management Configuration Example
15. Resource Control Functionality in the Solaris Management Console
Part II Zones
16. Introduction to Solaris Zones
17. Non-Global Zone Configuration (Overview)
18. Planning and Configuring Non-Global Zones (Tasks)
Planning and Configuring a Non-Global Zone (Task Map)
Evaluating the Current System Setup
Determine the Zone Host Name and Obtain the Network Address
File System Configuration
Creating, Revising, and Deleting Non-Global Zone Configurations (Task Map)
Configuring, Verifying, and Committing a Zone
How to Configure the Zone
How to Display the Configuration of a Non-Global Zone
Using the zonecfg Command to Modify a Zone Configuration
How to Modify a Resource Type in a Zone Configuration
How to Clear a Property Type in a Zone Configuration
How to Rename a Zone
How to Add a Dedicated Device to a Zone
How to Set zone.cpu-shares in the Global Zone
19. About Installing, Halting, Cloning, and Uninstalling Non-Global Zones (Overview)
20. Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)
21. Non-Global Zone Login (Overview)
22. Logging In to Non-Global Zones (Tasks)
23. Moving and Migrating Non-Global Zones (Tasks)
24. About Packages and Patches on a Solaris System With Zones Installed (Overview)
25. Adding and Removing Packages and Patches on a Solaris System With Zones Installed (Tasks)
26. Solaris Zones Administration (Overview)
27. Administering Solaris Zones (Tasks)
28. Troubleshooting Miscellaneous Solaris Zones Problems
Part III Branded Zones
29. About Branded Zones and the Linux Branded Zone
30. Planning the lx Branded Zone Configuration (Overview)
31. Configuring the lx Branded Zone (Tasks)
32. About Installing, Booting, Halting, Cloning, and Uninstalling lx Branded Zones (Overview)
33. Installing, Booting, Halting, Uninstalling and Cloning lx Branded Zones (Tasks)
34. Logging In to lx Branded Zones (Tasks)
35. Moving and Migrating lx Branded Zones (Tasks)
36. Administering and Running Applications in lx Branded Zones (Tasks)
Part IV Sun xVM
37. Sun xVM Hypervisor System Requirements
38. Booting and Running the Sun xVM Hypervisor
39. Xvnc
40. Using virt-install to Install a Domain
41. xVM System Administration
42. Troubleshooting Miscellaneous Sun xVM Problems
Glossary
Index
|
Using the zonecfg Command to Revert or Remove a Zone Configuration
Use the zonecfg command described in zonecfg(1M) to revert a zone's configuration or
to delete a zone configuration.
How to Revert a Zone ConfigurationWhile configuring a zone with the zonecfg utility, use the revert subcommand to
undo a resource setting made to the zone configuration. You must be the global administrator in the global zone to perform
this procedure.
- Become superuser, or assume the Primary Administrator role.
To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.
- While configuring a zone called tmp-zone, type info to view your configuration:
zonecfg:tmp-zone> info The net resource segment of the configuration displays as follows: .
.
.
fs:
dir: /tmp
special: swap
type: tmpfs
net:
address: 192.168.0.1
physical: eri0
device
match: /dev/pts/*
.
.
.
- Remove the net address:
zonecfg:tmp-zone> remove net address=192.168.0.1
- Verify that the net entry has been removed.
zonecfg:tmp-zone> info .
.
.
fs:
dir: /tmp
special: swap
type: tmpfs
device
match: /dev/pts/*
.
.
.
- Type revert.
zonecfg:tmp-zone> revert
- Answer yes to the following question:
Are you sure you want to revert (y/[n])? y
- Verify that the net address is once again present:
zonecfg:tmp-zone> info .
.
.
fs:
dir: /tmp
special: swap
type: tmpfs
net:
address: 192.168.0.1
physical: eri0
device
match: /dev/pts/*
.
.
.
How to Delete a Zone ConfigurationUse zonecfg with the delete subcommand to delete a zone configuration from the
system. You must be the global administrator in the global zone to perform
this procedure.
- Become superuser, or assume the Primary Administrator role.
To create the role and assign the role to a user, see
Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.
- Delete the zone configuration for the zone a-zone by using one of the
following two methods:
Use the -F option to force the action: global# zonecfg -z a-zone delete -F
Delete the zone interactively by answering yes to the system prompt: global# zonecfg -z a-zone delete
Are you sure you want to delete zone a-zone (y/[n])? y
|