<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 9, 2013 at 5:22 PM, René Koch (ovido)  wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div id=":xo">I hope this will help you with oVirt.<br>
Maybe you should cleanup your all-in-one setup and recreate it using the<br>
above steps.<br></div></blockquote></div><br>I think substantially I made your steps.</div><div class="gmail_extra"><br></div><div class="gmail_extra" style>I take another test.</div><div class="gmail_extra" style>The host comes with also another adapter (em4) that is on vlan66</div>
<div class="gmail_extra" style>This is unconfigured in oVirt.</div><div class="gmail_extra" style>Then I create a new vlan named vlan66 with target vm</div><div class="gmail_extra" style>Then I run another virt-v2v of a vm named zensrv that is on vlan 66 from qemu on CentOS 6.3 to oVirt </div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style><div class="gmail_extra"># time virt-v2v -o rhev -osd 10.4.4.59:/EXPORT --network vlan66 zensrv</div><div class="gmail_extra">zensrv_002: 100% [================================================================================]D 0h02m22s</div>
<div class="gmail_extra">virt-v2v: WARNING: /etc/fstab references unknown device /dev/vda2. This entry must be manually fixed after conversion.</div><div class="gmail_extra">virt-v2v: WARNING: /etc/fstab references unknown device /dev/vda1. This entry must be manually fixed after conversion.</div>
<div class="gmail_extra">virt-v2v: WARNING: /boot/grub/device.map references unknown device /dev/vda. This entry must be manually fixed after conversion.</div><div class="gmail_extra">virt-v2v: zensrv configured with virtio drivers.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">real<span class="" style="white-space:pre">        </span>3m16.051s</div><div class="gmail_extra">user<span class="" style="white-space:pre">        </span>0m58.953s</div><div class="gmail_extra">
sys<span class="" style="white-space:pre">        </span>0m46.729s</div></div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>NOTE: actually the disk in oVirt after import is marked as VirtIO (as it was on source) and boots without any problem....</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Well, this vm is perfectly configured in its vlan and reachable as it was on its original host.</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>
After configuring this new vlan on host, this is the situation</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><div class="gmail_extra">[g.cecchi@f18aio ~]$ ip addr list</div><div class="gmail_extra">
1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 16436 qdisc noqueue state UNKNOWN </div><div class="gmail_extra">    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00</div><div class="gmail_extra">    inet <a href="http://127.0.0.1/8">127.0.0.1/8</a> scope host lo</div>
<div class="gmail_extra">    inet6 ::1/128 scope host </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div><div class="gmail_extra">2: em1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP qlen 1000</div>
<div class="gmail_extra">    link/ether 00:1e:0b:21:b8:c4 brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">    inet6 fe80::21e:bff:fe21:b8c4/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div>
<div class="gmail_extra">3: em3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq master ovirtmgmt state UP qlen 1000</div><div class="gmail_extra">    link/ether 00:1c:c4:ab:3a:dd brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">
    inet6 fe80::21c:c4ff:feab:3add/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div><div class="gmail_extra">4: em2: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP qlen 1000</div>
<div class="gmail_extra">    link/ether 00:1e:0b:21:b8:c6 brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">    inet6 fe80::21e:bff:fe21:b8c6/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div>
<div class="gmail_extra">5: em4: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP qlen 1000</div><div class="gmail_extra">    link/ether 00:1c:c4:ab:3a:de brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">
    inet6 fe80::21c:c4ff:feab:3ade/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div><div class="gmail_extra">6: ovirtmgmt: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP </div>
<div class="gmail_extra">    link/ether 00:1c:c4:ab:3a:dd brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">    inet6 fe80::21c:c4ff:feab:3add/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div>
<div class="gmail_extra">7: em3.65@em3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP </div><div class="gmail_extra">    link/ether 00:1c:c4:ab:3a:dd brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">
    inet <a href="http://10.4.4.59/24">10.4.4.59/24</a> brd 10.4.4.255 scope global em3.65</div><div class="gmail_extra">    inet6 fe80::21c:c4ff:feab:3add/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div>
<div class="gmail_extra">10: ;vdsmdummy;: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN </div><div class="gmail_extra">    link/ether ea:e8:c9:57:87:fb brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">11: bond0: &lt;BROADCAST,MULTICAST,MASTER&gt; mtu 1500 qdisc noop state DOWN </div>
<div class="gmail_extra">    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">12: bond4: &lt;BROADCAST,MULTICAST,MASTER&gt; mtu 1500 qdisc noop state DOWN </div><div class="gmail_extra">    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff</div>
<div class="gmail_extra">14: vnet0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast master ovirtmgmt state UNKNOWN qlen 500</div><div class="gmail_extra">    link/ether fe:54:00:d3:8f:a3 brd ff:ff:ff:ff:ff:ff</div>
<div class="gmail_extra">    inet6 fe80::fc54:ff:fed3:8fa3/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div><div class="gmail_extra">15: em4.66@em4: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue master vlan66 state UP </div>
<div class="gmail_extra">    link/ether 00:1c:c4:ab:3a:de brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">    inet6 fe80::21c:c4ff:feab:3ade/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div>
<div class="gmail_extra">16: vlan66: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP </div><div class="gmail_extra">    link/ether 00:1c:c4:ab:3a:de brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">
    inet6 fe80::21c:c4ff:feab:3ade/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div><div class="gmail_extra">17: vnet1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast master vlan66 state UNKNOWN qlen 500</div>
<div class="gmail_extra">    link/ether fe:54:00:43:d9:df brd ff:ff:ff:ff:ff:ff</div><div class="gmail_extra">    inet6 fe80::fc54:ff:fe43:d9df/64 scope link </div><div class="gmail_extra">       valid_lft forever preferred_lft forever</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>and, from a bridge point of view</div><div class="gmail_extra" style><br></div><div class="gmail_extra">[g.cecchi@f18aio ~]$ sudo brctl show</div><div class="gmail_extra">
bridge name<span class="" style="white-space:pre">        </span>bridge id<span class="" style="white-space:pre">                </span>STP enabled<span class="" style="white-space:pre">        </span>interfaces</div><div class="gmail_extra">;vdsmdummy;<span class="" style="white-space:pre">                </span>8000.000000000000<span class="" style="white-space:pre">        </span>no<span class="" style="white-space:pre">                </span></div>
<div class="gmail_extra">ovirtmgmt<span class="" style="white-space:pre">                </span>8000.001cc4ab3add<span class="" style="white-space:pre">        </span>no<span class="" style="white-space:pre">                </span>em3</div><div class="gmail_extra">
<span class="" style="white-space:pre">                                                        </span>vnet0</div><div class="gmail_extra">vlan66<span class="" style="white-space:pre">                </span>8000.001cc4ab3ade<span class="" style="white-space:pre">        </span>no<span class="" style="white-space:pre">                </span>em4.66</div>
<div class="gmail_extra"><span class="" style="white-space:pre">                                                        </span>vnet1</div><div><br></div></div><div class="gmail_extra" style>vnet0 is interface of c56cr that shoud be in vlan65</div><div class="gmail_extra" style>
vnet1 is interface of zensrv that is correctly on vlan66</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>Please note that while on ovirtmgmt bridge there is em3 as physical interface, on vlan66 there is em3... while I think it should be em3.65</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Also, I noticed in similar configurations in Qemu+KVM on CentOS, that the ip (10.4.4.59 in my case) should be on the bridge, if present.</div><div class="gmail_extra" style>
So in my situation it should be on ovirtmgmt, while it is on em3.65.....</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>I could tweak configuration files in /etc/sysconf/network-scripts. Now they are this way</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>ovirtmgmt/vlan65</div><div class="gmail_extra" style><div class="gmail_extra">[g.cecchi@f18aio network-scripts]$ cat ifcfg-em3.65</div><div class="gmail_extra">
DEVICE=em3.65</div><div class="gmail_extra">ONBOOT=yes</div><div class="gmail_extra">VLAN=yes</div><div class="gmail_extra">NM_CONTROLLED=no</div><div class="gmail_extra">VLAN_ID=65</div><div class="gmail_extra">BOOTPROTO=none</div>
<div class="gmail_extra">IPADDR=10.4.4.59</div><div class="gmail_extra">NETMASK=255.255.255.0</div><div class="gmail_extra">GATEWAY=10.4.4.250</div><div class="gmail_extra">IPV6INIT=no</div><div class="gmail_extra"><br></div>
<div class="gmail_extra">[g.cecchi@f18aio network-scripts]$ cat ifcfg-ovirtmgmt </div><div class="gmail_extra">DEVICE=ovirtmgmt</div><div class="gmail_extra">ONBOOT=yes</div><div class="gmail_extra">TYPE=Bridge</div><div class="gmail_extra">
DELAY=0</div><div class="gmail_extra">NM_CONTROLLED=no</div><div class="gmail_extra">STP=no</div><div class="gmail_extra"><br></div><div class="gmail_extra" style>vlan66</div><div class="gmail_extra"><br></div><div class="gmail_extra">
[g.cecchi@f18aio network-scripts]$ cat ifcfg-em4.66 </div><div class="gmail_extra">DEVICE=em4.66</div><div class="gmail_extra">ONBOOT=yes</div><div class="gmail_extra">VLAN=yes</div><div class="gmail_extra">BRIDGE=vlan66</div>
<div class="gmail_extra">NM_CONTROLLED=no</div><div class="gmail_extra">STP=no</div><div class="gmail_extra"><br></div><div class="gmail_extra">[g.cecchi@f18aio network-scripts]$ cat ifcfg-vlan66 </div><div class="gmail_extra">
DEVICE=vlan66</div><div class="gmail_extra">ONBOOT=yes</div><div class="gmail_extra">TYPE=Bridge</div><div class="gmail_extra">DELAY=0</div><div class="gmail_extra">NM_CONTROLLED=no</div><div class="gmail_extra">STP=no</div>
<div><br></div></div><div class="gmail_extra" style>My idea would be to modify the ovirtmgmt ones this way and reboot:</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style><div class="gmail_extra">
[g.cecchi@f18aio network-scripts]$ cat ifcfg-em3.65</div><div class="gmail_extra">DEVICE=em3.65</div><div class="gmail_extra">ONBOOT=yes</div><div class="gmail_extra">VLAN=yes</div><div class="gmail_extra">NM_CONTROLLED=no</div>
<div class="gmail_extra" style>BRIDGE=ovirtmgmt</div><div class="gmail_extra" style>STP=no</div><div class="gmail_extra"><br></div><div class="gmail_extra">[g.cecchi@f18aio network-scripts]$ cat ifcfg-ovirtmgmt </div><div class="gmail_extra">
DEVICE=ovirtmgmt</div><div class="gmail_extra">ONBOOT=yes</div><div class="gmail_extra">TYPE=Bridge</div><div class="gmail_extra">DELAY=0</div><div class="gmail_extra">NM_CONTROLLED=no</div><div class="gmail_extra">STP=no</div>
</div><div class="gmail_extra" style><div class="gmail_extra">IPADDR=10.4.4.59</div><div class="gmail_extra">NETMASK=255.255.255.0</div><div class="gmail_extra">GATEWAY=10.4.4.250</div></div><div class="gmail_extra" style>
<br></div><div class="gmail_extra" style>I don&#39;t know it there is any other initialization information in DB that can cause problems....</div><div class="gmail_extra" style>Gianluca</div><div class="gmail_extra" style>
<br></div></div>