Top | ![]() |
![]() |
![]() |
![]() |
GVirConfigCapabilities * | capabilities | Read / Write / Construct Only |
GVirConfigDomain * | config | Read |
OsinfoOs * | os | Read / Write / Construct Only |
OsinfoDb * | osinfo-db | Read / Write / Construct Only |
OsinfoPlatform * | platform | Read / Write / Construct Only |
GVirDesignerDomain * gvir_designer_domain_new (OsinfoDb *osinfo_db
,OsinfoOs *os
,OsinfoPlatform *platform
,GVirConfigCapabilities *caps
);
OsinfoOs *
gvir_designer_domain_get_os (GVirDesignerDomain *design
);
Retrieves the operating system object associated with the designer. The object should not be modified by the caller.
OsinfoPlatform *
gvir_designer_domain_get_platform (GVirDesignerDomain *design
);
Retrieves the virtualization platform object associated with the designer. The object should not be modified by the caller.
GVirConfigCapabilities *
gvir_designer_domain_get_capabilities (GVirDesignerDomain *design
);
Retrieves the capabilities object associated with the designer The object should not be modified by the caller.
GVirConfigDomain *
gvir_designer_domain_get_config (GVirDesignerDomain *design
);
Retrieves the domain config object associated with the designer The object may be modified by the caller at will, but should not be freed.
gboolean
gvir_designer_domain_supports_machine (GVirDesignerDomain *design
);
gboolean gvir_designer_domain_supports_machine_full (GVirDesignerDomain *design
,const char *arch
,GVirConfigDomainOsType ostype
);
gboolean
gvir_designer_domain_supports_container
(GVirDesignerDomain *design
);
gboolean gvir_designer_domain_supports_container_full (GVirDesignerDomain *design
,const char *arch
);
gboolean gvir_designer_domain_setup_machine (GVirDesignerDomain *design
,GError **error
);
gboolean gvir_designer_domain_setup_machine_full (GVirDesignerDomain *design
,const char *arch
,GVirConfigDomainOsType ostype
,GError **error
);
gboolean gvir_designer_domain_setup_container (GVirDesignerDomain *design
,GError **error
);
gboolean gvir_designer_domain_setup_container_full (GVirDesignerDomain *design
,const char *arch
,GError **error
);
GVirConfigDomainDisk * gvir_designer_domain_add_cdrom_file (GVirDesignerDomain *design
,const char *filepath
,const char *format
,GError **error
);
Add a new disk to the domain.
design |
the domain designer instance. |
[transfer none] |
filepath |
the path to a file. |
[transfer none] |
format |
file format. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainDisk * gvir_designer_domain_add_cdrom_device (GVirDesignerDomain *design
,const char *devpath
,GError **error
);
Add given device as a new cdrom to the domain designer instance.
design |
the domain designer instance. |
[transfer none] |
devpath |
path to the device. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainDisk * gvir_designer_domain_add_disk_file (GVirDesignerDomain *design
,const char *filepath
,const char *format
,GError **error
);
Add a new disk to the domain.
design |
the domain designer instance. |
[transfer none] |
filepath |
the path to a file. |
[transfer none] |
format |
disk format. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainDisk * gvir_designer_domain_add_disk_device (GVirDesignerDomain *design
,const char *devpath
,GError **error
);
Add given device as a new disk to the domain designer instance.
design |
the domain designer instance. |
[transfer none] |
devpath |
path to the device. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainDisk * gvir_designer_domain_add_floppy_file (GVirDesignerDomain *design
,const char *filepath
,const char *format
,GError **error
);
Add a new disk to the domain.
design |
the domain designer instance. |
[transfer none] |
filepath |
the path to a file. |
[transfer none] |
format |
file format. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainDisk * gvir_designer_domain_add_floppy_device (GVirDesignerDomain *design
,const char *devpath
,GError **error
);
Add given device as a new floppy to the domain designer instance.
design |
the domain designer instance. |
[transfer none] |
devpath |
path to the device. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainInterface * gvir_designer_domain_add_interface_bridge (GVirDesignerDomain *design
,const char *bridge
,GError **error
);
Add new network interface card into design
. The interface is
of 'bridge' type and uses bridge
as the bridge device
design |
the domain designer instance. |
[transfer none] |
bridge |
bridge name. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainInterface * gvir_designer_domain_add_interface_network (GVirDesignerDomain *design
,const char *network
,GError **error
);
Add new network interface card into design
. The interface is
of 'network' type with network
used as the source network.
design |
the domain designer instance. |
[transfer none] |
network |
network name. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainInterface * gvir_designer_domain_add_interface_user (GVirDesignerDomain *design
,GError **error
);
Add new network interface card into design
. The interface is
of 'user' type.
design |
the domain designer instance. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainGraphics * gvir_designer_domain_add_graphics (GVirDesignerDomain *design
,GVirDesignerDomainGraphics type
,GError **error
);
Add a new graphical framebuffer to design
. This allows
to see what the VM displays.
Remote display protocols will only be listening on localhost, and the
port will be automatically allocated when the VM starts (usually
starting at 5900). You can manipulate further the returned
GVirConfigDomainGraphics if you want a different behaviour.
When setting up a SPICE display, the SPICE agent channel will be
automatically added to the VM if it's supported and not already
present.
design |
the domain designer instance. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainSmartcard * gvir_designer_domain_add_smartcard (GVirDesignerDomain *design
,GError **error
);
Add a new virtual smartcard reader to design
. This will allow to
share a smartcard reader between the guest and the host.
design |
the domain designer instance. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainSound * gvir_designer_domain_add_sound (GVirDesignerDomain *design
,GError **error
);
Add a new soundcard to the domain.
design |
the domain designer instance. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainRedirdev * gvir_designer_domain_add_usb_redir (GVirDesignerDomain *design
,GError **error
);
Add a new usb redirection channel into design
. This allows to redirect
an USB device from the SPICE client to the guest. One USB device
can be redirected per redirection channel, this function can
be called multiple times if you need to redirect multiple devices
simultaneously. An USB2 EHCI controller and USB1 UHCI controllers
will be automatically added to design
if design
does not have
USB controllers yet.
design |
the domain designer instance. |
[transfer none] |
error |
return location for a GError, or NULL |
GVirConfigDomainVideo * gvir_designer_domain_add_video (GVirDesignerDomain *design
,GError **error
);
Add a new video device into design
.
design |
the domain designer instance. |
[transfer none] |
error |
return location for a GError, or NULL |
gboolean gvir_designer_domain_setup_resources (GVirDesignerDomain *design
,GVirDesignerDomainResources req
,GError **error
);
Set minimal or recommended resources on design
.
design |
the domain designer instance. |
[transfer none] |
req |
requirements to set. |
[transfer none] |
error |
return location for a GError, or NULL |
gboolean gvir_designer_domain_remove_all_drivers (GVirDesignerDomain *design
,GError **error
);
Removes all drivers used in design
.
TRUE when successfully set, FALSE otherwise.
see_also
gvir_designer_domain_add_driver()
.
[transfer none]
gboolean gvir_designer_domain_add_driver (GVirDesignerDomain *design
,const char *driver_id
,GError **error
);
Instructs libvirt-designer to assume that the driver identified by
driver_id
is installed in the guest OS. This means that design
can use the device associated to driver_id
if needed.
design |
the domain designer instance |
|
driver_id |
OsInfo id of the driver to Add |
|
error |
return location for a GError, or NULL |
struct GVirDesignerDomainClass { GObjectClass parent_class; gpointer padding[20]; };
“capabilities”
property“capabilities” GVirConfigCapabilities *
Capabilities.
Flags: Read / Write / Construct Only
“osinfo-db”
property“osinfo-db” OsinfoDb *
libosinfo database.
Flags: Read / Write / Construct Only