i folks i want to create an xvm with some dedicated physical NIC''s the host is snv_126 (opensolaris) and the platform is an x4200 with 4 network interfaces. http://hub.opensolaris.org/bin/view/Community+Group+xen/virtinstall says: --------------------------------------------------------------------------- Configuring a dedicated NIC Specifying a network-setup script of vif-dedicated allows a guest to directly use a NIC on the host, without going through a VNIC. The NIC should not be configured on the host dom0. As of June 2009, it''s not possible to configure this via virt-install. FIXME: explain how to set up --------------------------------------------------------------------------- ...the last line isn''t particularly helpful in a how-to guide. i''ve tried this (guest name is ''portal''): # virsh attach-interface portal network e1000g1 --script vif-dedicated but get: error: this function is not supported by the hypervisor: virNetworkLookupByName ...which doesn''t help much i''ve also tried using this file (e1000g1.xml): <interface type=''ethernet''> <mac address=''00:14:4f:83:0f:a5''/> <script path=''vif-dedicated''/> <target dev=''vif-2.0''/> </interface> # virsh attach-device portal e1000g1.xml which appears to work but i get this on startup: # virsh start portal error: Failed to start domain portal error: POST operation failed: xend_post: error from xen daemon: (xend.err ''Device 1 (vif) could not be connected. error: no NIC specified at backend/vif/13/1/bridge.'') (so i''t not detecting that that mac address is the physical interface in question) similarly if i do this: <interface type=''ethernet''> <source bridge=''e1000g1''/> <mac address=''00:14:4f:83:0f:a5''/> <script path=''vif-dedicated''/> <target dev=''vif-2.0''/> </interface> i get this on startup: # virsh attach-device portal e1000g1.xml error: Failed to start domain portal error: POST operation failed: xend_post: error from xen daemon: (xend.err ''Device 1 (vif) could not be connected. error: no NIC specified at backend/vif/15/1/bridge.'') .... so how do i specify a dedicated NIC for a guest? -- This message posted from opensolaris.org
On 11 Nov 2009, at 12:33pm, Peter Lees wrote:> # virsh attach-interface portal network e1000g1 --script vif-dedicatedHow about: virsh attach-interface portal bridge e1000g1 --script vif-dedicated ?
David Edmondson wrote:> On 11 Nov 2009, at 12:33pm, Peter Lees wrote: >> # virsh attach-interface portal network e1000g1 --script vif-dedicated > > How about: > virsh attach-interface portal bridge e1000g1 --script vif-dedicated > ?ok thanks - that worked but isn''t a dedicated interface supposed to be of type "network" ? " attach-interface domain type source --target target --mac mac --script script --capped-bandwidth bandwidth --vlanid vid Attach a new network interface to the domain. type can be either network, to indicate a physical network dev- ice, or bridge, to indicate a bridge to a device. " --- virsh(1m), 9 Jul 2009 ?? -- This message posted from opensolaris.org
On Wed, Nov 11, 2009 at 04:33:33AM -0800, Peter Lees wrote:> Specifying a network-setup script of vif-dedicated allows a guest to directly use a NIC on the host, without going through a VNIC. The NIC should not be configured on the host dom0. As of June 2009, it''s not possible to configure this via virt-install. > > FIXME: explain how to set up > --------------------------------------------------------------------------- > > ...the last line isn''t particularly helpful in a how-to guide.Indeed - fixed. regards john