FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Server Development

 
 
LinkBack Thread Tools
 
Old 03-24-2010, 02:42 AM
Osvaldo Filho
 
Default Lxc - Why not have the network neither console?

I have no network and not the console shows me more than:

# lxc-console -n proxy

Type <Ctrl+a Q> to exit the console


============
My Bridge:

br0 Link encap:Ethernet Endereço de HW 00:19:db:2a:82:ec
inet end.: 192.168.1.11 Bcast:192.168.1.255 Masc:255.255.255.0
endereço inet6: fe80::219:dbff:fe2a:82ec/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:2813 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:1588 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:0
RX bytes:216183 (216.1 KB) TX bytes:259856 (259.8 KB)

eth0 Link encap:Ethernet Endereço de HW 00:19:db:2a:82:ec
endereço inet6: fe80::219:dbff:fe2a:82ec/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:2816 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:1582 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:1000
RX bytes:256417 (256.4 KB) TX bytes:259604 (259.6 KB)
IRQ:9 Endereço de E/S:0xc400


============
My config:

lxc.utsname = proxy
lxc.tty = 4
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.mtu = 1500
lxc.network.hwaddr = 4a:49:43:49:79:bd
lxc.network.ipv4 = 192.168.1.0/24
#lxc.mount = /home/lxc/proxy/rootfs/etc/fstab
lxc.rootfs = /home/lxc/proxy/rootfs
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
# /dev/pts/* - pts namespaces are "coming soon"
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm

=========
root@srv01:/home/lxc/proxy# lxc-create -f config.lxc -n proxy
'proxy' created
=========
root@srv01:/home/lxc/proxy# lxc-start -l DEBUG -o $(tty) --name proxy
lxc-start 1269401561.965 INFO lxc_conf - tty's configured
lxc-start 1269401561.965 DEBUG lxc_start - sigchild handler set
lxc-start 1269401561.965 INFO lxc_start - 'proxy' is initialized
lxc-start 1269401561.970 DEBUG lxc_conf - instanciated veth
'veth117oHX/vethW8Yd4C', index is '24'
lxc-start 1269401561.976 DEBUG lxc_cgroup - using cgroup
mounted at '/home/lxc/cgroup'
lxc-start 1269401561.976 DEBUG lxc_cgroup -
'/home/lxc/cgroup/1966' renamed to '/home/lxc/cgroup/proxy'
lxc-start 1269401561.979 DEBUG lxc_conf - move 'br0' to '1966'
lxc-start 1269401561.979 INFO lxc_conf - 'proxy' hostname
has been setup
lxc-start 1269401561.980 DEBUG lxc_conf - mac address
'4a:49:43:49:79:bd' on 'eth0' has been setup
lxc-start 1269401561.982 DEBUG lxc_conf - 'eth0' has been setup
lxc-start 1269401561.982 INFO lxc_conf - network has been setup
lxc-start 1269401561.982 DEBUG lxc_cgroup - using cgroup
mounted at '/home/lxc/cgroup'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.deny' set to 'a'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:3 rwm'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:5 rwm'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:1 rwm'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:0 rwm'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:0 rwm'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 4:1 rwm'
lxc-start 1269401561.982 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:9 rwm'
lxc-start 1269401561.983 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 1:8 rwm'
lxc-start 1269401561.983 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 136:* rwm'
lxc-start 1269401561.983 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 5:2 rwm'
lxc-start 1269401561.983 DEBUG lxc_conf - cgroup
'devices.allow' set to 'c 254:0 rwm'
lxc-start 1269401561.983 INFO lxc_conf - cgroup has been setup
lxc-start 1269401561.983 INFO lxc_conf - mount points have been setup
lxc-start 1269401561.983 INFO lxc_conf - console
'/dev/pts/0' mounted to '/home/lxc/proxy/rootfs/dev/console'
lxc-start 1269401561.983 INFO lxc_conf - 4 tty(s) has been setup
lxc-start 1269401561.983 DEBUG lxc_conf - temporary
mountpoint for old rootfs is './lxc-oldrootfs-1ShTjD'
lxc-start 1269401561.983 DEBUG lxc_conf - pivot_root syscall
to '/lxc-oldrootfs-1ShTjD' successful
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/dev/pts'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/dev/shm'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/sys/fs/fuse/connections'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/sys/kernel/debug'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/sys/kernel/security'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/proc'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/var/run'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/var/lock'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/lib/init/rw'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/home/lxc/cgroup'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/boot'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/home/lxc/proxy/rootfs/dev/console'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/home/lxc/proxy/rootfs/dev/tty1'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/home/lxc/proxy/rootfs/dev/tty2'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/home/lxc/proxy/rootfs/dev/tty3'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/home/lxc/proxy/rootfs/dev/tty4'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/dev'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD/sys'
lxc-start 1269401561.983 DEBUG lxc_conf - umounted
'/lxc-oldrootfs-1ShTjD'
lxc-start 1269401561.983 INFO lxc_conf - pivoted to '/tmp/lxc-r7y3YTX'
lxc-start 1269401561.983 DEBUG lxc_conf - capabilities has been setup
lxc-start 1269401561.983 NOTICE lxc_conf - 'proxy' is setup.
lxc-start 1269401561.983 NOTICE lxc_start - exec'ing '/sbin/init'
lxc-start 1269401561.984 NOTICE lxc_start - '/sbin/init'
started with pid '1966'
lxc-start 1269401561.984 DEBUG lxc_utils - closing fd '1'
lxc-start 1269401561.984 DEBUG lxc_utils - closing fd '0'
lxc-start 1269401561.984 DEBUG lxc_utils - closed all
inherited file descriptors
init: processos lxc pre-start (2) terminados com status 32
lxc-start 1269401577.401 DEBUG lxc_commands - peer has disconnected

=========

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 

Thread Tools




All times are GMT. The time now is 04:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org