-
Notifications
You must be signed in to change notification settings - Fork 4
Images
An image represents a category of virtual machine or disk. You can create an image by uploading an OVA or VMDK file to the system's shared image store. You can also create an image by capturing an instance of a powered-off VM or unattached disk. The system administrator typically provisions the system with a variety of images to share across all tenants.
Tenants can also create images that are not shared with other tenants. An image does not include any information about the resources the virtual machine or disk consumes. Before you can use a VM or disk image, a system administrator must create one or more flavors of the right kind.
For instructions on how to upload and enable the Kubernetes image, see Creating a Kubernetes Cluster.
Here's how to create an image:
photon image create <image_filename> -n <image_name> -i <image_type>
You can verify the image was created properly by examining the output of the following command:
photon image list
One way to create a new image is by uploading an OVA file. In the following command, replace replicationType with ON_DEMAND
or EAGER
.
photon image create local-path-to-OVA -n name -i replicationType
Here's an example:
photon image create /tmp/ubuntu14-04.ova -n ubuntu1404 -i ON_DEMAND
When Photon Controller uploads an image, it returns an ID for it. You can append it to the photon image show
command to display information about the image; example:
photon image show 96cd7af4-f1d0-45ea-8ed1-e18bef6c05ca
Here's an example of how you can create an image from a powered-off VM. First, stop the VM from which you want to create an image:
photon vm stop 96cd7af4-f1d0-45ea-8ed1-e18bef6c05ca
And then create the image:
photon vm create-image 96cd7af4-f1d0-45ea-8ed1-e18bef6c05ca
-n image-1 -r ON_DEMAND
You can delete an image if you belong to a security group that gives you permission to do so.
Here's the command:
photon image delete ID
Example:
photon image delete 96cd7af4-f1d0-45ea-8ed1-e18bef6c05ca
- Home
- Installation Guide
- Download Photon Controller
- Release Notes
- User Guide
- Installation and Setup
- Administration and Operations
- Command-Line Cheat Sheet
- Overview of Commands
- Authenticating Multitenant Users and Groups
- Authorization Model
- Connecting to the Load Balancer and Logging In
- Tenants, Quotas, and Projects
- Creating Tenants, Projects, and Quotas
- Working with Tenants
- Creating a Project
- Uploading Images
- Creating Images
- Replicating Images in Datastores
- Creating Flavors
- Working with Virtual Machines
- Using a Photon OS VM
- Creating a Network
- Performing Host Maintenance
- Working with ESXi Hosts
- Configuring Your Own Load Balancer
- Troubleshooting
- Deploying Clusters
- Integration
- API
- Information for Developers
- References
- Legal