debootstrap or virt-install Ubuntu Server Maverick fails
Posted
by
poelinca
on Ask Ubuntu
See other posts from Ask Ubuntu
or by poelinca
Published on 2010-12-06T20:47:48Z
Indexed on
2011/01/07
6:58 UTC
Read the original article
Hit count: 455
Oki so running any kind of variation of debootsrap i get the following error
I: Extracting zlib1g...
W: Failure trying to run: chroot /lxc/iso/dodo mount -t proc proc /proc
debootstrap.log :
mount: permission denied
if i manualy chroot into the directory then i get promted with:
id: cannot find name for group ID 0
I have no name!@...#
i tryed addgroup but it's not installed , apt-get/aptitude : command not found , so i can't do anything with it .
I've tryed ubuntu-vm-builder but since it's calling debootstrap i get the same error .
Played with it for a few days and then i stoped and gaved virt-install a try , everithing works till i get to the console to finish the install witch shows only :
Escape character is ^]
and nothing more , no matter what i type .
So basicly what i'm trying to do is build a usable chroot system so i can use it with lxc or libvirt .
What are my options to get containers/virtualisation up and running ? I've read somewhere that i can use openvz templates with lxc or libvirt ? but how ?
Let me know if you need aditional info ( p.s. doing all this on a dedicated server so i can't access it by hand , only ssh , plus on my local pc running ubuntu desktop maverick everithing works ) .
EDIT
Getting closer , i managed to understand how to use an openvz template with lxc , now the problem comes with the network bridge
lxc-start: invalid interface name: br0 # Use same bridge device used in your controlling host setup
lxc-start: failed to process 'lxc.network.link = br0 # Use same bridge device used in your controlling host setup
'
lxc-start: failed to read configuration file
i followed the exact steps to create a bridge and lxc conf looks like:
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0 # Use same bridge device used in your controlling host setup
lxc.network.hwaddr = {a1:b2:c3:d4:e5:f6} # As appropiate (line only needed if you wish to dhcp later)
lxc.network.ipv4 = {10.0.0.100} # (Use 0.0.0.0 if you wish to dhcp later)
lxc.network.name = eth0 # could likely be whatever you want
Since it's not working i know smth is wrong so could somebody guyde me ?
EDIT , looks like the base install was using an custom kernel ( bzImage-2.6.34.6-xxxx-grs-ipv6-65 ) for witch you i didn't found the headers , i did a update-grub after i installed a new kernel , edited menu.lst and no it's using 2.6.35-23-server and now debootstrap is working just fine same as ubuntu-vm-builder .
© Ask Ubuntu or respective owner