Defining a virtual server
Create a persistent definition of a virtual server configuration.
Procedure
Define a virtual server to
libvirt using the virsh define command (see define):
# virsh define <domain-configuration-XML-filename>
- <domain-configuration-XML-filename>
- is the path and file name of the domain configuration-XML file.
Results
shut offwith reason
unknown.
What to do next
To verify your definition, you may:
- Browse all defined virtual servers (see Browsing virtual servers) by issuing:
Virtual servers that are defined but not yet started are listed with state# virsh list --all
shut off
. - Display the current libvirt-internal configuration as described in Displaying the current libvirt-internal configuration.
- Start the virtual server as described in Starting a virtual server.
- Check your connection to the virtual server via the configured console as described in Connecting to the console of a virtual server.