*SOLVED* problems creating veth device: "Bad parameter for --veth_add: ..." [message #9777] |
Mon, 22 January 2007 03:32 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
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
|
|
|
|
Re: problems creating veth device [message #9779 is a reply to message #9778] |
Mon, 22 January 2007 08:29 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Bubba Ho-Tep
Messages: 3 Registered: January 2007 Location: Oz
|
Junior Member |
|
|
Sorry not sure I understand you...
"As I can see in your commndline "eth0" persists"
do you mean
$ vzctl set 101 --veth_add veth101.0, a_made_up_MAC_address, eth0, a_made_up_MAC_address+1 --save
the eth0 in the line above? Isn't this the virtual Ethernet device which I'm creating?
Or do you mean the ".0" part of veth101.0? I just copied the format from the wiki and assumed the same format.
BHT
|
|
|
Re: problems creating veth device [message #9787 is a reply to message #9777] |
Mon, 22 January 2007 10:27 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Andrey Mirkin
Messages: 193 Registered: May 2006
|
Senior Member |
|
|
Bubba Ho-Tep wrote on Sun, 21 January 2007 22:32 |
$ vzctl set 101 --veth_add veth101.0, a_made_up_MAC_address, eth0, a_made_up_MAC_address+1 --save
|
As I can see you have spaces in this line after commas, please try following command:
$ vzctl set 101 --veth_add veth101.0,a_made_up_MAC_address,eth0,a_made_up_MAC_address+1 --save
Quote: |
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?
|
Yes, you need to add veth device to VE to be able to run DHCP server in it.
Andrey Mirkin
|
|
|
|