<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Never mind my last message. It seems<br><br><span style="font-family:monospace,monospace">chroot chroot<br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="font-family:monospace,monospace">dpkg --configure -a<br></span><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Was just what the doctor ordered. Problem solved.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">----------<br>"Yo, yo. I'm real happy for ya, and I'm glad you can read,
 but first, I wanna say that Seann has the best email signatures of all 
time. OF ALL TIME!" -- Kanye West, 2009 Email Signature Awards<br>------------------------------------------------------------<br><a href="http://www.facebook.com/sdgiffin" target="_blank">http://www.facebook.com/sdgiffin</a> <br>------------------------------------------------------------<div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div></div></div>
<br><div class="gmail_quote">On 3 March 2015 at 12:23, Seªnn Giƒƒin <span dir="ltr"><<a href="mailto:seann.giffin@gmail.com" target="_blank">seann.giffin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">​Running LXC on Ubuntu 14.04.1 x64. ​I'm trying to build a container for Kali that will be used to build a non-PAE .ISO which will in turn be used on a live machine.<br><br>I have attempted to use the template solution provided at <a href="https://github.com/lxc/lxc/issues/140" target="_blank">https://github.com/lxc/lxc/issues/140</a> by copying the existing template for Wheezy, and adding the noted lines.<br><br>While it builds a Wheezy container with the Kali repos included, I can't get the .ISO to build inside the container:<br><br>    Need to get 3457 MB of archives.<br>    After this operation, 8304 MB of additional disk space will be used.<br>    Get:1 <a href="http://archive.kali.org/kali/" target="_blank">http://archive.kali.org/kali/</a> kali/main bash-completion all 1:2.0-1 [193 kB]<br>    ...<br>    Get:2464 <a href="http://archive.kali.org/kali/" target="_blank">http://archive.kali.org/kali/</a> kali/non-free zd1211-firmware all 2.21.0.0-1 [16.5 kB]<br>    Fetched 3457 MB in 6min 48s (8454 kB/s)<br>    Extracting templates from packages: 100%<br>    Preconfiguring packages ...<br>    Selecting previously unselected package bash-completion.<br>    (Reading database ... 9329 files and directories currently installed.)<br>    ...<br>    Unpacking libaspell15 (from .../libaspell15_0.60.7~20110707-1_i386.deb) ...<br>    Selecting previously unselected package dictionaries-common.<br>    Unpacking dictionaries-common (from .../dictionaries-common_1.12.11_all.deb) ...<br>    Adding 'diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common'<br>    dpkg: unrecoverable fatal error, aborting:<br>     failed to fstat previous diversions file: No such file or directory<br>    E: Sub-process /usr/bin/dpkg returned an error code (2)<br>    P: Begin unmounting filesystems...<br>    P: Saving caches...<br>    E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.<br><br>So I tried a Kali-specific template from <a href="https://github.com/dulin/lxc-kali/blob/master/lxc-kali" target="_blank">https://github.com/dulin/lxc-kali/blob/master/lxc-kali</a> but that fails to even create the template:<br><br>    root@black-beast:~# lxc-create -n kali-testing -t kali<br>    getopt: unrecognized option '--rootfs=/var/lib/lxc/kali-testing/rootfs'<br>    lxc-kali -h|--help -p|--path=<path> --clean<br>    lxc_container: lxccontainer.c: create_run_template: 1125 container creation template for kali-testing failed<br>    lxc_container: lxc_create.c: main: 271 Error creating container kali-testing<br><br>​Here's what I know:<br>    1. The modified Wheezy container only has problems build a Kali image. Otherwise, it seems fine.<br>    2. Obviously, the template from Dulin is severely flawed (at least on Ubuntu)​, and I doubt that can be easily fixed.<br><br>What I don't know:<br>    1. Is it a problem only inside a container?<br>​    2. Is it a problem only in my container?​<br>    3. When building inside a container, are extra or special steps required?<br><br>I've tried getting help on the Kali forums and from the container author, but nobody seems able or willing to help. Is there something about LXC that would prevent me from building the custom image? I followed the instructions on <a href="http://docs.kali.org/downloading/live-build-a-custom-kali-iso" target="_blank">http://docs.kali.org/downloading/live-build-a-custom-kali-iso</a> to the letter, but it's just not working and I'm reaching out to you guys as a last-ditch effort to get help hoping somebody has some ideas.<br><br>My original post in the Kali forums is located at <a href="https://forums.kali.org/showthread.php?24557-Problem-building-Kali-in-LXC-conatiner-for-non-pae-on-Ubuntu-14-04-1-x64" target="_blank">https://forums.kali.org/showthread.php?24557-Problem-building-Kali-in-LXC-conatiner-for-non-pae-on-Ubuntu-14-04-1-x64</a> if anybody wants t​​he ​additional details included there​.<br><br>----------<br>"Yo, yo. I'm real happy for ya, and I'm glad you can read, but first, I wanna say that Seann has the best email signatures of all time. OF ALL TIME!" -- Kanye West, 2009 Email Signature Awards<br>------------------------------------------------------------<br><a href="http://www.facebook.com/sdgiffin" target="_blank">http://www.facebook.com/sdgiffin</a><br>------------------------------------------------------------<br></div>
</blockquote></div><br></div></div>