[Libvirt-cim] how to set the NetworkType as bridge of vs with libvirt-cim provider

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Nov 24 18:17:08 UTC 2008


Guo Lian Yun wrote:
> 
> Hi,
> 
> I want to define a virtual domain with bridge type by libvirt-cim provider.
> Below is part of code of RASD description, but it fails for me.
> 
> 
> ...  
>          rasd = [
>                 """instance of KVM_MemResourceAllocationSettingData { 
> VirtualQuantity = 256;};""",
>                 """instance of KVM_ProcResourceAllocationSettingData { 
> VirtualQuantity = 1;};""",
>                 """instance of KVM_NetResourceAllocationSettingData { 
>  Address = "00:11:22:33:44:55"; ResourceType = 10; 
> NetworkType='bridge';};""",
>                 """instance of KVM_DiskResourceAllocationSettingData { 
> Address = "/tmp/default-kvm-dimage"; VirtualDevice = "hda";};"""
>                 ]
> 
>         service.DefineSystem(SystemSettings=vssd,
>                              ResourceSettings=rasd,
>                              ReferenceConfiguration='')
> ...
> 
> It seems that the NetworkType is set network as default in libvirt-cim 
> provider. Although I try to set the NetworkType as bridge, it still to 
> looking up default network pool.
> If I want to define a vs with bridge type, what should I do?
> 

The providers only define guests with network type interfaces.
-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list