VM second netowork not Comeup
by Shanil S
Hi Aill,
We are creating two nics using the api, but it seems the second network is
not come up and the first one is working. The following xml is used to for
the nic creation
<nic>
<interface>virtio</interface>
<name>eth0</name>
<boot_protocol>static</boot_protocol>
<mac address='".$ip->mac_address."'/>
<network>
<ip address='".$ip->mac_ip."' netmask='255.255.255.0'
gateway='".$ip->mac_gateway."'/>
</network>
<on_boot>true</on_boot>
<vnic_profile id='bbabc471-667d-4221-bc8e-4ab30b3dcc34' />
</nic>
<nic>
<interface>virtio</interface>
<name>eth1</name>
<boot_protocol>static</boot_protocol>
<mac address='".$ip->mac_address."'/>
<network>
<ip address='".$ip->mac_ip."' netmask='255.255.255.0'
gateway='".$ip->mac_gateway."'/>
</network>
<on_boot>true</on_boot>
<vnic_profile id='037d806f-d76b-4da3-84b6-ac7a5087f836' />
</nic>
When i checked the configuration file
(/etc/sysconfig/network-scripts/ifcfg-eth1) after creating...i find it
seems the ONBOOT=no.....eventhough we set it true from the api. Is this a
bug ?
--
Regards
Shanil
10 years, 2 months
Unable to assign profile to the nic
by Shanil S
Hi All,
I am unable to assign the profile using the ovirt api code, the following
xml code is used for creating the nic
<nic>
<interface>virtio</interface>
<name>eth0</name>
<boot_protocol>static</boot_protocol>
<mac address='".$ip->mac_address."'/>
<network>
<ip address='".$ip->mac_ip."' netmask='255.255.255.0'
gateway='".$ip->mac_gateway."'/>
</network>
<on_boot>true</on_boot>
<vnic_profile id='bbabc471-667d-4221-bc8e-4ab30b3dcc34' />
</nic>
Could you please check if anything wrong with it ?
--
Regards
Shanil
10 years, 2 months