YaST2 Developers Documentation: inst_vm_disks.ycp

inst_vm_disks.ycp

This module has an unstable interface.

Imports

  • Label
  • Popup
  • Report
  • Sequencer
  • VM
  • VM_Common
  • Wizard

Local Functions

local DiskTypeDialog () -> symbol

Disk type dialog - choose type of disk to add: new loopback, existing loopback, or block device (physical)

Return value:
dialog result
local AddNewLoopBackDialog (string device, string prefix, integer s, boolean sparse, boolean ro) -> map<string,any>

Add(create) an new loopback image

Parameters:
device target device in a VM
prefix
s
sparse
ro true = read-only access, false = read/write access
local AddExistingLoopBackDialog (string device, string source, boolean ro) -> map<string,any>

Add an existing loopback image

Parameters:
device target device in a VM
source image file
ro true = read-only access, false = read/write access
local AddBlockDeviceDialog (string device, string phys, boolean ro) -> map<string,any>

Add a block device (in dom0)

Parameters:
device target device in a VM
phys source (physical) device (in dom0)
ro true = read-only access, false = read/write access
local refresh_table (list<map<string,any> > disks) -> void

Redraw the DiskOverview table

Parameters:
disks
local DiskOverview () -> symbol

Display an overview table containing a list of configured disks, with add, edit, and delete buttons

Return value:
dialog result
local EditDisk () -> symbol

Edit a select disk in the disk overview table

Return value:
dialog result