Add nat to ovirt via vdsm hooks

By | 2014年5月4日

OK, I do not like control group very much for now.

Comment device section in control group config, sorry for my laziness…

Enable ip forward

Reboot the host

Connect to virsh to enable libvirt’s default virbr0(NAT)

If you don’t know the password for your account, just use command below to create one.

Create a nat network.

Create tun device and add it to virbr0

UPDATE: This could be ignored if you use extnet.py

Add hook file to vdsm

UPDATE: use extnet from github with a little modification (Only the first vNIC will be NAT, the second one still keeps its way).

QEMU-CMD way:

Then you should start the vm WITHOUT ANY NIC if you are using nat.py.

发表评论

邮箱地址不会被公开。