Import a VM From a Disk Image
Using the Virtual Machines page in the web console, administrators can import other preconfigured VM instances on the host system to Cockpit for management using the disk file image. The Cockpit virtual machine import process preserves all guest properties associated with the imported disk image.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- The Cockpit-machines add-on application must be installed in the web console and the Oracle Linux virtualization packages must be installed and enabled on the host system. For more information, see Install Cockpit-Machines and Enable Virtualization.
- The import VM instance must be shut down before importing it.
- A VM disk image with a compatible guest OS is required.
For more details, see Guest Operating System Requirements in the Oracle Linux: KVM User's Guide.
- All minimum KVM system requirements must be met on the Cockpit host system. For more information, see System Requirements and Recommendationsin the Oracle Linux: KVM User's Guide.
Steps
Using the Cockpit web console, follow these steps to import a host VM disk image to Cockpit for management.
- In the Cockpit navigation pane, click Virtual machines.
The Virtual machines page appears.
- In the Virtual machines page, click Import
VM.
The Import a virtual machine dialog appears.
- In the Import a virtual machine dialog, perform the following:
- Specify the applicable properties:
Name In the Name text box, enter a unique name for the imported VM guest image. Connection Click either the System or User session radio button. For more details about these options, click the question mark icon (next to the Connection property title). Disk Image In the Disk Image list box, specify the host file path to the disk image. Operating system In the Operating system list box, select the disk image OS name. Memory Choose to accept the default memory size provided or change the memory size property as needed. - Click one of the following:
- Import and Run. Upon completing the import operation the VM
guest OS is started and the VM instance appears in a Running state.
The VM [import VM name] page appears.
- Import and Edit. Upon completing the import operation, the
VM guest OS is loaded and the VM instance appears in a Shut down state.
The VM [import name] page appears.
Note:
To change the state of the newly imported VM, see Start, Shutdown, Remove, or Interrupt a VM InstanceNote:
To view and interact with the newly imported VM, see Configure Console for VM Interaction.Note:
If the import operation fails, see the virtualization host log files to help diagnose the issue. - Import and Run. Upon completing the import operation the VM
guest OS is started and the VM instance appears in a Running state.
- Specify the applicable properties: