[opensuse-virtual] What the status of lxc-opensuse ?
I'm just getting started with lxc, and tried to use the lxc-opensuse script: [big snip - download stuff etc] Scanning scripts ... Resolve dependencies ... Install symlinks in /lib/mkinitrd/setup ... Install symlinks in /lib/mkinitrd/boot ... Kernel image: /boot/vmlinuz-3.7.10-1.16-debug Initrd image: /boot/initrd-3.7.10-1.16-debug Kernel Modules: <not available> Could not find map -k/boot/System.map, please specify a correct file with -M. There was an error generating the initrd (9) [snip] Resolve dependencies ... Install symlinks in /lib/mkinitrd/setup ... Install symlinks in /lib/mkinitrd/boot ... Kernel image: /boot/vmlinuz-3.7.10-1.16-debug Initrd image: /boot/initrd-3.7.10-1.16-debug device node not found root device (/dev/cciss/c0d0p2) not found There was an error generating the initrd (1) warning: %posttrans(mkinitrd-2.7.2-3.2.1.x86_64) scriptlet failed, exit status 1 removing nis flags from /var/cache/lxc/opensuse/partial-x86_64/etc/nsswitch.conf... now finalizing build dir... warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? warning: Failed to read auxiliary vector, /proc not mounted? Download complete. Copy /var/cache/lxc/opensuse/rootfs-x86_64 to /srv/lxc/myfirstone/rootfs ... Copying rootfs to /srv/lxc/myfirstone/rootfs ... Please change root-password ! BAD PASSWORD: it is too short BAD PASSWORD: is too simple grep: /srv/lxc/myfirstone/config: No such file or directory -- Per Jessen, Zürich (18.0°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
Per Jessen wrote:
I'm just getting started with lxc, and tried to use the lxc-opensuse script:
[big snip - download stuff etc] Scanning scripts ... Resolve dependencies ... Install symlinks in /lib/mkinitrd/setup ... Install symlinks in /lib/mkinitrd/boot ...
Kernel image: /boot/vmlinuz-3.7.10-1.16-debug Initrd image: /boot/initrd-3.7.10-1.16-debug Kernel Modules: <not available> Could not find map -k/boot/System.map, please specify a correct file with -M. There was an error generating the initrd (9)
[snip] Resolve dependencies ... Install symlinks in /lib/mkinitrd/setup ... Install symlinks in /lib/mkinitrd/boot ...
Kernel image: /boot/vmlinuz-3.7.10-1.16-debug Initrd image: /boot/initrd-3.7.10-1.16-debug device node not found root device (/dev/cciss/c0d0p2) not found There was an error generating the initrd (1) warning: %posttrans(mkinitrd-2.7.2-3.2.1.x86_64) scriptlet failed, exit status 1
I should added that I'm running 13.1m2. -- Per Jessen, Zürich (18.0°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
I've been using LXC extensively on my openSUSE 12.3 for awhile... 1. Why are you running this script and where was it recommended? 2. Have you tried simply installing lxc, eg zypper in lxc 3. I highly recommend installing the YAST LXC applet, and perhaps the LXC Control Center (I don't really use it... yet) So to install all including lxc, zypper in lxc lxcc yast2-lxc If your bridge utils aren't installed, install them zypper in bridge-utils Before creating a Container, you will need to create a transparent bridge to access and configure networking, although a standard documentation describes creating in YAST (which requires classic ifup/ifdown configuration), I instead highly recommend creating a bridge using libvirt zypper in libvirt libvirt-client libvirt-python You should then see in YAST a virtualization section and within it vm manager. Open vm manager, Edit Connection, Virtual Networks tab, inspect what you have by default and perhaps add a new custom network with your own specifications. After you do that, you can verify the bridge device exists by running the following and you should see a device starting with "virbr" brctl show Now, create your Container referencing your virbr device for networking (from command line or more easily using the YAST LXC applet). If you have more questions, post again but be sure to include the version of openSUSE you're running. HTH, Tony On Fri, Aug 9, 2013 at 7:48 AM, Per Jessen <per@opensuse.org> wrote:
Per Jessen wrote:
I'm just getting started with lxc, and tried to use the lxc-opensuse script:
[big snip - download stuff etc] Scanning scripts ... Resolve dependencies ... Install symlinks in /lib/mkinitrd/setup ... Install symlinks in /lib/mkinitrd/boot ...
Kernel image: /boot/vmlinuz-3.7.10-1.16-debug Initrd image: /boot/initrd-3.7.10-1.16-debug Kernel Modules: <not available> Could not find map -k/boot/System.map, please specify a correct file with -M. There was an error generating the initrd (9)
[snip] Resolve dependencies ... Install symlinks in /lib/mkinitrd/setup ... Install symlinks in /lib/mkinitrd/boot ...
Kernel image: /boot/vmlinuz-3.7.10-1.16-debug Initrd image: /boot/initrd-3.7.10-1.16-debug device node not found root device (/dev/cciss/c0d0p2) not found There was an error generating the initrd (1) warning: %posttrans(mkinitrd-2.7.2-3.2.1.x86_64) scriptlet failed, exit status 1
I should added that I'm running 13.1m2.
-- Per Jessen, Zürich (18.0°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland.
-- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
Tony Su wrote:
I've been using LXC extensively on my openSUSE 12.3 for awhile...
1. Why are you running this script and where was it recommended?
Hi Tony https://en.opensuse.org/SDB:LXC#Container_Setup
2. Have you tried simply installing lxc, eg zypper in lxc
Yes, that was one of the steps.
3. I highly recommend installing the YAST LXC applet, and perhaps the LXC Control Center (I don't really use it... yet) So to install all including lxc, zypper in lxc lxcc yast2-lxc
Yeah, this is where I've also ended up sofar.
If your bridge utils aren't installed, install them zypper in bridge-utils
Before creating a Container, you will need to create a transparent bridge to access and configure networking, although a standard documentation describes creating in YAST (which requires classic ifup/ifdown configuration), I instead highly recommend creating a bridge using libvirt
Why? (I've already opened a bugreport on yast:network in this respect).
You should then see in YAST a virtualization section and within it vm manager. Open vm manager, Edit Connection, Virtual Networks tab, inspect what you have by default and perhaps add a new custom network with your own specifications.
Okay, I'll have a look.
Now, create your Container referencing your virbr device for networking (from command line or more easily using the YAST LXC applet).
If you have more questions, post again but be sure to include the version of openSUSE you're running.
Apologies, it is difficult to forget that not everyone is in the same context :-) -- Per Jessen, Zürich (20.6°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
Per Jessen wrote:
If you have more questions, post again but be sure to include the version of openSUSE you're running.
Apologies, it is difficult to forget that not everyone is in the same context :-)
s/difficult/easy/ -- Per Jessen, Zürich (18.9°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-virtual+owner@opensuse.org
participants (2)
-
Per Jessen
-
Tony Su