OpenVZ Forum


Home » General » Support » *SOLVED* problems creating veth device: "Bad parameter for --veth_add: ..."
*SOLVED* problems creating veth device: "Bad parameter for --veth_add: ..." [message #9777] Mon, 22 January 2007 03:32 Go to previous message
Bubba Ho-Tep
Messages: 3
Registered: January 2007
Location: Oz
Junior Member
I'm can't seem to create a veth device on my VE I get and error of "Bad parameter for --veth_add: eth101.0"

My specs:

HostOS: CentOS 4.4
kernel: 2.6.9-023stab037.3-smp

My VE is Ubuntu Dapper (used the minimal install from this site)


My host OS reports (via ifconfig) 3 devices:

eth1 - which has a IP and MAC address
lo - my loopback
venet0 - no ip and a MAC of all zeroes

The how to for setting up a veth (http://wiki.openvz.org/Veth)
says

$ vzctl set <VEID> --veth_add dev_name,dev_addr,ve_dev_name,ve_dev_addr

where "dev_name" is is ethernet device name in the host system.

Ok I understand I have to create a virtual devicce on the hostOs and a corresponding device on the VE -

however when I do

$ vzctl set 101 --veth_add veth101.0, a_made_up_MAC_address, eth0, a_made_up_MAC_address+1 --save

I get the "Bad parameter for --veth_add: eth101.0," error message.

What am I missing? Errr stupid question - do I need to install another NIC on my host system? Or do I just make up a MAC address? I tried using the MAC address of eth1 (the existing NIC on the host system) with the same results.


Also am I right in thinking I need to use a veth device (as opposed to a venet) to run a DHCP server in a VE?

[Updated on: Tue, 23 January 2007 13:20] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVz support for Network Checkpointing
Next Topic: Trouble starting/accessing Gentoo VPS
Goto Forum:
  


Current Time: Sun Aug 04 02:53:11 GMT 2024

Total time taken to generate the page: 0.02491 seconds