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

Guo Lian Yun yunguol at cn.ibm.com
Mon Nov 24 08:27:18 UTC 2008


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?

Thanks!

Best,
Regards

Daisy (运国莲)
VSM Team, China Systems & Technology Labs (CSTL)
E-mail: yunguol at cn.ibm.com
TEL: (86)-21-60922403
Building 10, 399 Ke Yuan Rd, Pudong Shanghai, 201203

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20081124/f5717a3e/attachment.htm>


More information about the Libvirt-cim mailing list