Skip to contentSkip to conversation

Cannot create a vnet

DISCUSSION Watanabe Takehiko 2 participants 2 messages Oct 17, 2006

lore
Share & tools
lore
#0 lore raw

Hi there!

I'm trying to create a vnet, but always failed.
Did anyone succeed to create it?

I'm using CS:11760.

At first, I've failed the compile by make install at the directory "tools/vnet" of the source tree.

But, I edited a part of "tools/vnet/vnet-module/Makefile.ver" as below, and I succeeded the compile.

----------------------------------------------------------------
Original:
KERNEL_MODULE_DIR=/lib/modules/$$(KERNEL_RELEASE)/kernel

After Edited:
KERNEL_MODULE_DIR=/lib/modules/$(KERNEL_RELEASE)/kernel
----------------------------------------------------------------

Then, I changed the network-bridge to network-vnet by editing the /etc/xen/xend-config.sxp as below.

----------------------------------------------------------------
#(network-script network-bridge)
(network-script network-vnet)
----------------------------------------------------------------

After that, I executed the vnet-insert at
"tools/vnet/vnet-module" and restarted xend.

And I made "vnet97.sxp" following the example in User Manual.

----------------------------------------------------------------
(vnet (id 97) (bridge vnet97) (vnetif vnif97) (security none))
----------------------------------------------------------------

I thought the preparation was finished, but got an error after attempting to create a vnet.

----------------------------------------------------------------
#xm vnet-create vnet97.sxp
Error: method "xend_vnet_create" is not supported
Usage: xm vnet-create <ConfigFile>

Create a vnet from ConfigFile.

#xm vnet-list -l
Error: method "xend_vnets" is not supported
Usage: xm vnet-list [-l|--long]

List Vnets.
-l, --long List Vnets as SXP
----------------------------------------------------------------

I need any advises or comments for this matter.

Regards,

Watanabe, Takehiko

#1 lore raw
Quoted 14 lines · Watanabe Takehiko

Hi there!

I'm trying to create a vnet, but always failed. Did anyone succeed to create it?

[Snip]

----------------------------------------------------------------
#xm vnet-create vnet97.sxp
Error: method "xend_vnet_create" is not supported
Usage: xm vnet-create <ConfigFile>

Create a vnet from ConfigFile.

Quoted 7 lines

#xm vnet-list -l
Error: method "xend_vnets" is not supported
Usage: xm vnet-list [-l|--long]

List Vnets.
-l, --long List Vnets as SXP
----------------------------------------------------------------

This looks like the vnet stuff has been lost from the messaging layer, when moving from SXP to Anthony's XML-RPC implementation. vnet is not widely used, and not well tested (obviously).

You have a couple of options:

1. Make xm talk the old protocol, not the newer one. This would involve modifying xen.xend.XendClient to look like it used to, many moons ago. Look through the change history to see what it ought to look like.

2. Add the messaging layer support to Xend. This would involve modifying xen.xend.server.XMLRPCServer to support the vnet messages. This should be little more than plumbing them through to xen.xend.XendVnet.

3. Wait for Xen 3.0.4 -- I'll make sure that this gets fixed properly for 3.0.4.

Cheers,

Ewan.