# AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: Fedora Virtualization Guide\n" "POT-Creation-Date: 2011-03-02T01:07:52\n" "PO-Revision-Date: 2011-08-21 11:21+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: Chinese (Hong Kong) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh_HK\n" "Plural-Forms: nplurals=1; plural=0\n" #. Tag: title #, no-c-format msgid "Directory-based storage pools" msgstr "" #. Tag: para #, no-c-format msgid "" "This section covers storing virtualized guests in a directory on the host." msgstr "" #. Tag: para #, no-c-format msgid "" "Directory-based storage pools can be created with virt-" "manager or the virsh command line tools." msgstr "" #. Tag: title #, no-c-format msgid "Creating a directory-based storage pool with virt-manager" msgstr "" #. Tag: title #, no-c-format msgid "Create the local directory" msgstr "" #. Tag: title #, no-c-format msgid "Optional: Create a new directory for the storage pool" msgstr "" #. Tag: para #, no-c-format msgid "" "Create the directory on the host for the storage pool. An existing directory" " can be used if permissions and SELinux are configured correctly. This " "example uses a directory named /guest_images." msgstr "" #. Tag: screen #, no-c-format msgid "# mkdir /guest_images\n" msgstr "" #. Tag: title #, no-c-format msgid "Set directory ownership" msgstr "" #. Tag: para #, no-c-format msgid "" "Change the user and group ownership of the directory. The directory must be " "owned by the root user." msgstr "" #. Tag: screen #, no-c-format msgid "# chown root:root /guest_images" msgstr "" #. Tag: title #, no-c-format msgid "Set directory permissions" msgstr "" #. Tag: para #, no-c-format msgid "Change the file permissions of the directory." msgstr "" #. Tag: screen #, no-c-format msgid "# chmod 700 /guest_images" msgstr "" #. Tag: title #, no-c-format msgid "Verify the changes" msgstr "" #. Tag: para #, no-c-format msgid "" "Verify the permissions were modified. The output shows a correctly " "configured empty directory." msgstr "" #. Tag: screen #, no-c-format msgid "" "# ls -la /guest_images\n" "total 8\n" "drwx------. 2 root root 4096 May 28 13:57 .\n" "dr-xr-xr-x. 26 root root 4096 May 28 13:57 ..\n" msgstr "" #. Tag: title #, no-c-format msgid "Configure SELinux file contexts" msgstr "" #. Tag: para #, no-c-format msgid "Configure the correct SELinux context for the new directory." msgstr "" #. Tag: screen #, no-c-format msgid "# semanage fcontext -a -t virt_image_t /guest_images\n" msgstr "" #. Tag: title #, no-c-format msgid "Open the storage pool settings" msgstr "" #. Tag: para #, no-c-format msgid "" "In the virt-manager graphical interface, select the host " "from the main window." msgstr "" #. Tag: para #, no-c-format msgid "" "Open the Edit menu and select Host " "Details" msgstr "" #. Tag: para #, no-c-format msgid "" "Click on the Storage tab of the Host " "Details window." msgstr "" #. Tag: title #, no-c-format msgid "Create the new storage pool" msgstr "" #. Tag: title #, no-c-format msgid "Add a new pool (part 1)" msgstr "" #. Tag: para #, no-c-format msgid "" "Press the + button (the add pool button). The " "Add a New Storage Pool wizard appears." msgstr "" #. Tag: para #, no-c-format msgid "" "Choose a Name for the storage pool. This example uses" " the name guest_images_dir. Change the " "Type to dir: Filesystem Directory." msgstr "" #. Tag: para #, no-c-format msgid "Press the Forward button to continue." msgstr "" #. Tag: title #, no-c-format msgid "Add a new pool (part 2)" msgstr "" #. Tag: para #, no-c-format msgid "" "Change the Target Path field. This example uses " "/guest_images." msgstr "" #. Tag: para #, no-c-format msgid "" "Verify the details and press the Finish button to " "create the storage pool." msgstr "" #. Tag: title #, no-c-format msgid "Verify the new storage pool" msgstr "" #. Tag: para #, no-c-format msgid "" "The new storage pool appears in the storage list on the left after a few " "seconds. Verify the size is reported as expected, 36.41 GB " "Free in this example. Verify the State " "field reports the new storage pool as Active." msgstr "" #. Tag: para #, no-c-format msgid "" "Select the storage pool and set the Autostart " "checkbox to start the storage device with the libvirtd service." msgstr "" #. Tag: para #, no-c-format msgid "" "The storage pool is now created, close the Host Details" " window." msgstr "" #. Tag: title #, no-c-format msgid "Creating a directory-based storage pools with virsh" msgstr "" #. Tag: title #, no-c-format msgid "Create the storage pool definition" msgstr "" #. Tag: para #, no-c-format msgid "" "Use the virsh pool-define-as command to define a new " "storage pool. There are two options required for creating directory-based " "storage pools:" msgstr "" #. Tag: para #, no-c-format msgid "The name of the storage pool." msgstr "" #. Tag: para #, no-c-format msgid "" "This example uses the name guest_images_dir. All " "further virsh commands used in this example use this " "name." msgstr "" #. Tag: para #, no-c-format msgid "" "The path to a file system directory for storing " "virtualized guest image files. If this directory does not exist, " "virsh will create it further on in the process." msgstr "" #. Tag: para #, no-c-format msgid "" "This example uses the /guest_images directory." msgstr "" #. Tag: screen #, no-c-format msgid "" " # virsh pool-define-as guest_images_dir dir - - - - \"/guest_images\"\n" "Pool guest_images_dir defined" msgstr "" #. Tag: title #, no-c-format msgid "Verify the storage pool is listed" msgstr "" #. Tag: para #, no-c-format msgid "" "Verify the storage pool object is created correctly and the state reports as" " inactive." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-list --all\n" "Name State Autostart \n" "-----------------------------------------\n" "default active yes \n" "guest_images_dir inactive no " msgstr "" #. Tag: para #, no-c-format msgid "" "Use the virsh pool-build command to guild the directory-" "based storage pool. virsh pool-build sets the required " "permissions and SELinux settings for the directory and creates the directory" " if it does not exist." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-build guest_images_dir\n" "Pool guest_images_dir built\n" "# ls -la /guest_images\n" "total 8\n" "drwx------. 2 root root 4096 May 30 02:44 .\n" "dr-xr-xr-x. 26 root root 4096 May 30 02:44 ..\n" "# virsh pool-list --all\n" "Name State Autostart \n" "-----------------------------------------\n" "default active yes \n" "guest_images_dir inactive no" msgstr "" #. Tag: title #, no-c-format msgid "Start the storage pool" msgstr "" #. Tag: para #, no-c-format msgid "" "Use the virsh command pool-start for this. pool-" "start enables a directory storage pool, allowing it to be used for" " volumes and guests." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-start guest_images_disk\n" "Pool guest_images_disk started\n" "# virsh pool-list --all\n" "Name State Autostart \n" "-----------------------------------------\n" "default active yes \n" "guest_images_disk active no \n" msgstr "" #. Tag: title #, no-c-format msgid "Turn on autostart" msgstr "" #. Tag: para #, no-c-format msgid "" "Turn on autostart for the storage pool. Autostart " "configures the libvirtd service to" " start the storage pool when the service starts." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-autostart guest_images_dir\n" "Pool guest_images_dir marked as autostarted\n" "# virsh pool-list --all\n" "Name State Autostart \n" "-----------------------------------------\n" "default active yes \n" "guest_images_dir active yes \n" msgstr "" #. Tag: title #, no-c-format msgid "Verify the storage pool configuration" msgstr "" #. Tag: para #, no-c-format msgid "" "Verify the storage pool was created correctly, the sizes reported correctly," " and the state reports as running." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-info guest_images_dir\n" "Name: guest_images_dir\n" "UUID: 779081bf-7a82-107b-2874-a19a9c51d24c\n" "State: running\n" "Capacity: 49.22 GB\n" "Allocation: 12.80 GB\n" "Available: 36.41 GB\n" "\n" "# ls -al /guest_images\n" "total 8\n" "drwx------. 2 root root 4096 May 30 02:44 .\n" "dr-xr-xr-x. 26 root root 4096 May 30 02:44 ..\n" "#\n" msgstr "" #. Tag: para #, no-c-format msgid "A directory-based storage pool is now available." msgstr ""