Creating the VM on a bridged network
-
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
-
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
-
Modify the permissions of the shell script file.
chmod 755 fssvm_create.sh
-
Execute the shell script.
./fssvm_create.sh