Subject: Re: [vserver] Error building guest system
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Thu, 27 May 2010 23:56:47 +0200

On Thu, May 27, 2010 at 02:23:34PM -0700, Nirmal Guhan wrote:
> Mark,
> Thanks. It seems to work after using 0.30.216.
> root@guhan-fedora test]# vserver vserver2 start
> Starting system logger:                                    [  OK  ]
> [root@guhan-fedora test]# vserver vserver2 enter
> bash-3.2#
> bash-3.2# ls
> bin   dev  home  media  opt   root  selinux  sys  usr  vservers
> boot  etc  lib   mnt    proc  sbin  srv      tmp  var

> However uname -a is still showing that of fedora linux kernel.Is it because
> kernel is shared?
> bash-3.2# uname -a
> Linux vserver2.ng.com 2.6.32.13-vs2.3.0.36.29.4 #2 SMP Wed May 26 11:13:52
> PDT 2010 i686 i686 i386 GNU/Linux

you can modify the uts information in the config, so you
can show whatever kernel/arch you like, but yes, the kernel
will be the same for host and all guests :)

HTC,
Herbert

> Thanks,
> Nirmal

> On Thu, May 27, 2010 at 12:48 PM, Mark Little <marklittle@koallo.com> wrote:
> 
> >
> >
> > On Thu, 27 May 2010 12:30:07 -0700, Nirmal Guhan <vavatutu@gmail.com>
> > wrote:
> > > Hi,
> > >
> > > Running into the below error consistently while building centos5 guest
> > (or
> > > any other for that matter).
> > >
> > > vserver vserver2 build -m yum --context 42 --hostname
> > > vserver2.ng.com--interface eth0:
> > > 128.107.159.176/22 --force -- -d centos5
> > > rpm-fake-resolver: vc_ctx_migrate(): No such process
> > > rpm-fake.so: failed to initialize communication with resolver
> > >
> > - snip snip
> >
> > >                    Kernel: 2.6.32.13-vs2.3.0.36.29.4
> > >                    VS-API: 0x00020305
> > >              util-vserver: 0.30.215; May 27 2010, 04:32:47
> > >
> >
> > With that new kernel you should be running a more recent utils package.
> > eg:
> >
> > http://people.linux-vserver.org/~dhozac/t/uv-testing/util-vserver-0.30.216-pre2883.tar.bz2<http://people.linux-vserver.org/%7Edhozac/t/uv-testing/util-vserver-0.30.216-pre2883.tar.bz2>
> >
> > I suspect that will be your issue.
> >
> > Cheers,
> > Mark
> >
> > > Features:
> > >                CC: gcc, gcc (GCC) 4.4.3 20100127 (Red Hat 4.4.3-4)
> > >                       CXX: g++, g++ (GCC) 4.4.3 20100127 (Red Hat
> > 4.4.3-4)
> > >                  CPPFLAGS: ''
> > >                    CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
> > > -funit-at-a-time'
> > >                  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
> > > -fmessage-length=0 -funit-at-a-time'
> > >                build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
> > >              Use dietlibc: yes
> > >        Build C++ programs: yes
> > >        Build C99 programs: yes
> > >            Available APIs: v13,net,v21,v22,v23,netv2
> > >             ext2fs Source: e2fsprogs
> > >     syscall(2) invocation: alternative
> > >       vserver(2) syscall#: 273/glibc
> > >                crypto api: nss
> > >
> > > Paths:
> > >                    prefix: /usr/local
> > >         sysconf-Directory: ${prefix}/etc
> > >             cfg-Directory: ${prefix}/etc/vservers
> > >          initrd-Directory: $(sysconfdir)/init.d
> > >        pkgstate-Directory: ${prefix}/var/run/vservers
> > >           vserver-Rootdir: /vservers
> > >
> > >
> > > Assumed 'SYSINFO' as no other option given; try '--help' for more
> > > information.
> > > [root@zaphod util-vserver-0.30.215]#
> > >
> > > Thanks,
> > >
> > > Nirmal
> >
> >