Creating the VM on a bridged network

This section provides an example script on how the VM can be created in a KVM-based hypervisor. You can use this script or you can use your own procedure as long as the resulting VM meets the requirements for the Fabric Services System VM.
  1. Create an fssvm_create.sh file, then copy the following contents into the file:
    create_fssvm() {
        BRIDGE="breth0:1"
        VM=fss-deployer
        VMDIR=/var/lib/libvirt/images/$VM
        FSSIMAGE=<path to fss-installer qcow2 image>
        sudo mkdir -vp $VMDIR
        sudo cp $FSSIMAGE $VMDIR/$VM.qcow2
        sudo virsh pool-create-as --name $VM --type dir --target $VMDIR
        sudo virt-install --import --name $VM \
        --memory 8096 --vcpus 1 --cpu host \
        --disk $VMDIR/$VM.qcow2,format=qcow2,bus=virtio \
        --network bridge=$BRIDGE,model=virtio \
        --os-type=linux \
        --os-variant=centos7.0 \
        --noautoconsole --debug
    }
    VMDIR=.
    create_fssvm
  2. In the script, modify the FSSIMAGE=<path to fss-installer qcow2 image> field to show the actual path to the Fabric Services System image on your system.
    FSSIMAGE=./fss-deployer-x.y.qcow2
    
  3. Modify the permissions of the shell script file.
    chmod 755 fssvm_create.sh
    
  4. Execute the shell script.
    ./fssvm_create.sh