how-to use virt-install to connect at openvswitch bridges

Very simple. However, hard to find.
Download your qcow2 image and execute virt-install as follow.

yum -y install virt-install
curl -o ./test.qcow2 \
https://s3-us-west-2.amazonaws.com/nuage-demo-cala/40r8+files/centos7-reverse.qcow2
virt-install -n test --vcpus 2 --ram 2048 --connect qemu:///system \
--disk path=./test.qcow2,format=qcow2,bus=virtio,cache=none \
--network=bridge:external,model=virtio,virtualport_type=openvswitch \
--os-type=linux  --noautoconsole --vnc --os-variant=rhel7 \
--import

In a few words. Just add “virtualport_type=openvswitch” to your network settings.

See ya!

One thought on “how-to use virt-install to connect at openvswitch bridges

  1. Hello sir .., you may help me sir
    first of all thanking you sir …
    how to install the openvswitch on hypervision and how to install and setup the virtual machine with redhat and centos platform
    Virtual Network for all the Virtual Machine shoud be hosted with OpenvSwitch.
    please help me sir …

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s