Example:
virt-install
\
--connect=qemu:///system
\
--name=my_csr_vm
\
--os-type=linux
\
--os-variant=rhel4
\
--arch=x86_64
\
--cpu host
\
--vcpus=1,sockets=1,cores=1,threads=1
\
--hvm
\
--ram=4096
\
--import
\
--disk path=<path_to_csr1000v_qcow2>,bus=ide,format=qcow2
\
--network bridge=virbr0,model=virtio
\
--noreboot
(Optional) To configure a Bootstrap Day0 configuration, perform the steps described in
Configuration for virt-install, on page 122
.
After the installation is complete, the CSR VM will be shutdown. You can start the CSR VM using the
virsh start
command.
What to Do Next
Red Hat Enterprise Linux
—
Setting Host Mode
Due to an
specific to Red Hat Enterprise Linux, when launching the Cisco CSR1000v in a Red Hat
Enterprise Linux environment using
virt-install
, set the host mode as follows:
•
In Red Hat Enterprise Linux 6, use:
--cpu host
•
In Red Hat Enterprise Linux 7, use:
--cpu host-model
Creating the Cisco CSR 1000v VM Using virt-install
—
Using ISO Image
The following steps are performed on the KVM server.
Prerequisites
•
Download and install the virt-install RPM package on the KVM server.
•
Download the
.iso
image from the Cisco CSR 1000v software installation image package and copy it
onto a local or network device.
Cisco CSR 1000v Series Cloud Services Router Software Configuration Guide
120
Installing the Cisco CSR 1000v in KVM Environments
Creating the Cisco CSR 1000v VM Using virt-install
—
Using ISO Image