home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Provisioning a guest automatically

You can provision a guest automatically by using the add virtualization xml command. For automatic deployment of a guest, a maximum of one hard disk and one cdrom is configured for a guest.

The following example shows how to install and configure a guest with the following parameters:
  • Unique name of the guest: another-guest.
  • Number of CPUs: 4.

    The maximum number of CPUs that can be configured is 8.

  • Amount of RAM: 4096 MB.

    The maximum memory that can be configured is 6144 MB.

To install the guest automatically, perform the following steps in operational mode.

Table 1. Installing a guest automatically
Step Command
Specify the libvirt domain XML file, disk image, and optional ISO file for the guest installation. Ensure that you use fully qualified file names for all three files.
vyatta@vyatta:~$ add virtualization xml /home/vyatta/another-guest.xml image /home/vyatta/disk.qcow2 iso /home/vyatta/config.iso 
[INFO] - Configured bridge interface "br20"
[INFO] - Configured vhost interface "dp0vhost0"
[INFO] - Configured guest "another-guest"
[INFO] - Deployment of /home/vyatta/another-guest.xml complete
Display the result in configuration mode.
vyatta@vyatta:~$ config
vyatta@vyatta# 
show virtualization
 virtualization {
        guest another-guest {
            cpus 4
            devices {
                disk 0 {
                    boot-order 1
                    bus-type virtio
                    device-type disk
                    source {
                        file /var/lib/libvirt/images/another-guest/0-disk.qcow2
                    }
                }
                disk 1 {
                    boot-order 2
                    bus-type ide
                    device-type cdrom
                    source {
                        file /var/lib/libvirt/images/another-guest/1-config.iso
                    }
                }
                network dp0vhost0 {
                    mac-address 52:54:00:16:56:fd
                }
            }
                memory 4096
                uuid f7333ab9-8e3d-4a87-a27a-6d5d7d6e99ba
        }
 }
vyatta@vyatta# show interfaces vhost
 vhost dp0vhost0 {
        bridge-group {
                bridge br20
        }
        
 }
vyatta@vyatta# show interfaces bridge
 bridge br20