[Users] Some basic startup related issues

Nirmal Guhan vavatutu at gmail.com
Wed Jul 7 21:28:05 EDT 2010


On Wed, Jun 30, 2010 at 12:29 AM, Arturas Skauronas <helpaz at gmail.com> wrote:
> On Wed, Jun 30, 2010 at 12:11 AM, Nirmal Guhan <vavatutu at gmail.com> wrote:
>
>> I did so. BTW, where does the container get it fstab entries from?
>
> from container etc/fstab file
> in yours example:
> /vz/private/50/etc/fstab

I doubt. For instance, in another container (102) that is running, I have :

# cat /etc/fstab
none	/dev/pts	devpts	rw	0 0

# mount
/dev/simfs on / type simfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

So wonder where these extra entries came from?

I added proc to /etc/fstab in 50 too but it still does not get mounted
during start.


>> No luck yet with these updates :(
>>
>> [root at localhost conf]# vzctl start 50
>> Warning: distribution not specified default used /etc/vz/dists/default
>
> mmmm looked a little more deeply to your config
>
> correct it by adding, correcting values
>
> in 50.conf
>
> HOSTNAME="foo.example.com"
> VE_ROOT="/vz/root/$VEID"
> VE_PRIVATE="/vz/private/$VEID"
> OSTEMPLATE="centos"
> ORIGIN_SAMPLE="vps.basic"
> NAMESERVER="8.8.8.8 8.8.4.4"
> NAME="foo"
>
>
> *nameservers I entered public google dns servers, enter yours

Still does not help. I compared with 102.conf (another container that
gets interface address) I don't have nameserver configured. It still
gets IP address (though netmask is wrong so basically useless).

Here is the output from 102 :

[root at localhost /]# ip addr ls
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
    link/void
    inet 127.0.0.1/32 scope host venet0
    inet 10.33.11.60/32 brd 10.33.11.60 scope global venet0:0
[root at localhost /]# route add default gw 10.33.11.1
SIOCADDRT: Network is unreachable
[root at localhost /]#

Here is the output from 50 :

[root at localhost /]# vzctl start 50
Starting container ...
Container is mounted
Adding IP address(es): 10.33.11.55
Setting CPU units: 1000
Configure meminfo: 65536
Container start in progress...
[root at localhost /]# vzctl enter 50
entered into CT 50
Unable to get tty name: Bad file descriptor
                                           -bash-3.2#
-bash-3.2# ip addr ls
1: lo: <LOOPBACK> mtu 16436 qdisc noop
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: venet0: <BROADCAST,POINTOPOINT,NOARP> mtu 1500 qdisc noop
    link/void
-bash-3.2#

FYI, I tried with NAMESERVER as well but no luck with it too.

> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>


More information about the Users mailing list