Skip to contentSkip to conversation

Getting started - Error message

DISCUSSION Philip Rhoades 2 participants 3 messages Mar 3, 2011 – Mar 7, 2011 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

People,

I used this info to get started on Fedora 14 x86_64:

http://www.techrepublic.com/blog/opensource/introducing-linux-virtual-containers-with-lxc/1289

and everything seems happy when doing the setup stuff but when I try to run:

/usr/bin/lxc-execute -n test -f /etc/lxc/lxc-test.conf /bin/bash

I get:

lxc-execute: network is not created for 'lxc.network.link' = 'br0 lxc.network.hwaddr = 4a:49:43:49:79:bd' option

lxc-execute: failed to process 'lxc.network.link = br0 lxc.network.hwaddr = 4a:49:43:49:79:bd
'
lxc-execute: failed to read configuration file

but the conf file is readable:

-rw-r--r-- 1 root root 215 Mar 4 05:29 /etc/lxc/lxc-test.conf

Suggestions?

Thanks,

Phil.

Signature · 6 lines
Philip Rhoades

GPO Box 3411
Sydney NSW	2001
Australia
E-mail:  [email protected]
#2 lore raw
In reply to a message not in the archive
Quoted 15 lines · Philip Rhoades

People,

I used this info to get started on Fedora 14 x86_64:

http://www.techrepublic.com/blog/opensource/introducing-linux-virtual-containers-with-lxc/1289

and everything seems happy when doing the setup stuff but when I try to run:

/usr/bin/lxc-execute -n test -f /etc/lxc/lxc-test.conf /bin/bash

I get:

lxc-execute: network is not created for 'lxc.network.link' = 'br0 lxc.network.hwaddr = 4a:49:43:49:79:bd' option

Quoted 8 lines

lxc-execute: failed to process 'lxc.network.link = br0 lxc.network.hwaddr = 4a:49:43:49:79:bd
'
lxc-execute: failed to read configuration file

but the conf file is readable:

-rw-r--r-- 1 root root 215 Mar 4 05:29 /etc/lxc/lxc-test.conf

The blog shows something like that:

"lxc.utsname = test lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.hwaddr = 4a:49:43:49:79:bd lxc.network.ipv4 = 192.168.250.150 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596"

The configuration file should be in this format:

lxc.utsname = test
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = 4a:49:43:49:79:bd lxc.network.ipv4 = 192.168.250.150 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596

Thanks
-- Daniel

#4 lore raw
In reply to a message not in the archive

Daniel,

Quoted 36 lines · Daniel Lezcano
Quoted 17 lines · Philip Rhoades

People,

I used this info to get started on Fedora 14 x86_64:

http://www.techrepublic.com/blog/opensource/introducing-linux-virtual-containers-with-lxc/1289

and everything seems happy when doing the setup stuff but when I try to run:

/usr/bin/lxc-execute -n test -f /etc/lxc/lxc-test.conf /bin/bash

I get:

lxc-execute: network is not created for 'lxc.network.link' = 'br0 lxc.network.hwaddr = 4a:49:43:49:79:bd' option

Quoted 8 lines

lxc-execute: failed to process 'lxc.network.link = br0 lxc.network.hwaddr = 4a:49:43:49:79:bd
'
lxc-execute: failed to read configuration file

but the conf file is readable:

-rw-r--r-- 1 root root 215 Mar 4 05:29 /etc/lxc/lxc-test.conf

The blog shows something like that:

"lxc.utsname = test lxc.network.type = veth lxc.network.flags = up lxc.network.link = br0 lxc.network.hwaddr = 4a:49:43:49:79:bd lxc.network.ipv4 = 192.168.250.150 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596"

The configuration file should be in this format:

Quoted 7 lines

lxc.utsname = test
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = 4a:49:43:49:79:bd lxc.network.ipv4 = 192.168.250.150 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596

I should have seen that! (I did notice the same problem in one of the commands. I changed the IP addresses appropriately for my setup but the
comment: "The next commands then reset the IP address of eth0 to 0.0.0.0, but since it is bound to the bridge interface, it will respond to the previous IP address anyways." does not seem to be true for me and my normal networking was messed up. Anyway, is it possible to set up the container without messing with the existing eth0 setup?

Thanks,

Phil.

Signature · 6 lines
Philip Rhoades

GPO Box 3411
Sydney NSW	2001
Australia
E-mail:  [email protected]