# Debian 7 app (download or diy)

**URL:** <https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340>\
**Category:** Product Support\
**Created:** [November 28, 2017, 10:55pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340 "2017-11-28T22:55:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubcl](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dubcl](https://forum.opennebula.io/u/dubcl)\
**Post date:** [November 28, 2017, 10:55pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/1 "2017-11-28T22:55:14Z")

</div>

Hi, I looking for Debian 7 app, but in the marketplace don’t exist.

I try to create my own image with one-context-4.2.1, I add to oneimage, create the template, but I get this when boot a new vm:

 ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/0/0d0f19c724073a16f14341a6195bb6cf22f93eba.jpeg)

Any idea how to fix that?, I search about but without luck.

Cheers.

---

<div class="post-metadata">

**Author:** ![vholer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vholer/32/4392_2.png) [@vholer](https://forum.opennebula.io/u/vholer)\
**Post date:** [December 1, 2017, 11:38am UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/2 "2017-12-01T11:38:19Z")

</div>

Hi @dubcl ,

looks like you have some obsolete files in the `/etc/one-context.d/` from the packager (`.dpk-new`). Current stable package has wrongly marked `/etc/one-context.d/` files as configuration, that’s why the packager creates a backup or doesn’t overwrite changes. It’s already fixed for development packages and future stable packages will behave.

So, if you are upgrading existing image, please ensure you first remove the old `one-context` package and purge the leftover files before installing new package. E. g.:

```auto
apt-get purge one-context

```

Just in case you need D7 for some quick testing, nothing serious, I’m providing my [private contextualized D7](https://www.dropbox.com/s/6dqx4ca26qiwhk3/debian7-5.4.1.qcow2c.xz?dl=0) image built very quickly and **_without any guarantees_**. Link will be active till 3rd December, unxz before importing in the OpenNebula.

Best regards,  
Vlastimil Holer

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [December 2, 2017, 12:28am UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/3 "2017-12-02T00:28:25Z")

</div>

there is another problem, I do clean istall od debian 7 today and went to same error as dubcl. I try to rename dpkg-new files to without that extension, but same errors. also there is problem with growpart

---

<div class="post-metadata">

**Author:** ![vholer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vholer/32/4392_2.png) [@vholer](https://forum.opennebula.io/u/vholer)\
**Post date:** [December 3, 2017, 12:11am UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/4 "2017-12-03T00:11:21Z")

</div>

If you can, please provide the image.

---

<div class="post-metadata">

**Author:** ![dubcl](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dubcl](https://forum.opennebula.io/u/dubcl)\
**Post date:** [December 15, 2017, 5:16pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/5 "2017-12-15T17:16:26Z")

</div>

Hi,

Uff, to late to download you image XD, but anyway…

The one-context-4.2.1 is the correct context package for debian 7?

---

<div class="post-metadata">

**Author:** ![vholer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vholer/32/4392_2.png) [@vholer](https://forum.opennebula.io/u/vholer)\
**Post date:** [December 15, 2017, 5:23pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/6 "2017-12-15T17:23:56Z")

</div>

Hi, where do you take such historic version from? Please use the latest stable version 5.4.1 here:

> **[OpenNebula/addon-context-linux](https://github.com/OpenNebula/addon-context-linux/releases/tag/v5.4.1)**
>
> Linux VM Contextualization. Contribute to OpenNebula/addon-context-linux development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![dubcl](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dubcl](https://forum.opennebula.io/u/dubcl)\
**Post date:** [December 15, 2017, 5:51pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/7 "2017-12-15T17:51:48Z")

</div>

today I create a fresh debian7 install

- use the last one-context ([https://docs.opennebula.org/5.4/operation/vm\_setup/kvm.html#kvm-contextualization](https://docs.opennebula.org/5.4/operation/vm_setup/kvm.html#kvm-contextualization))
- import image ([https://mega.nz/#!Z44mXAYQ!IWHhCifYy-c\_XGSk9sQRS8UeyRJQaeHTUBh90Oumxo4](https://mega.nz/#!Z44mXAYQ!IWHhCifYy-c_XGSk9sQRS8UeyRJQaeHTUBh90Oumxo4))
- create the template ([https://pastebin.com/1vHKznVM](https://pastebin.com/1vHKznVM))

the instance boot correctly but the image don’t load any context parameter. after install the context package I need configure any other thing in the new os?

cheers.

EDIT:

OK, I check the image again and the one-context package fail on install [https://pastebin.com/AAKSS1MU](https://pastebin.com/AAKSS1MU)

---

<div class="post-metadata">

**Author:** ![dubcl](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dubcl](https://forum.opennebula.io/u/dubcl)\
**Post date:** [December 15, 2017, 6:39pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/8 "2017-12-15T18:39:55Z")

</div>

Me again 😁

I solve the one-context instalation,

Debian 7 need all repositories and additionally the backport repo

```
deb http://cdn.debian.net/debian/ wheezy main contrib non-free
deb http://ftp.debian.org/debian wheezy-backports main

```

That resolve all one-context dependencies.

Now the image boot and assign the correct IP, add ssh key, buuuuuuuuut the resize fs wont work, the syslog show this [https://pastebin.com/i1swDML9](https://pastebin.com/i1swDML9) any idea?

---

<div class="post-metadata">

**Author:** ![dubcl](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dubcl](https://forum.opennebula.io/u/dubcl)\
**Post date:** [December 18, 2017, 10:42pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/9 "2017-12-18T22:42:11Z")

</div>

Problem resolve, we need the package “cloud-initramfs-growroot” to allow resize \o/

Then, the complete steps are:

- create qcow2 image

- boot whit the new disc install basic OS

> in my case, I download debian 7.11 iso

- verify the repositories

> ```
> deb http://cdn.debian.net/debian/ wheezy main non-free contrib
> deb-src http://cdn.debian.net/debian/ wheezy main non-free contrib
> deb http://ftp.debian.org/debian wheezy-backports main
> deb http://security.debian.org/ wheezy/updates main contrib non-free
> deb-src http://security.debian.org/ wheezy/updates main contrib non-free
> 
> ```

- upgrade you new system

`apt-get -y update`  
`apt-get -y upgrade`

- install one-context

`wget --no-check-certificates https://github.com/OpenNebula/addon-context-linux/releases/download/v5.4.1/one-context_5.4.1-1.deb -O /tmp/oc.deb`

`dpkg -i /tmp/oc.deb`  
`rm -f /tmp/oc.deb`

- resolve dependencies

`apt-get -fy install`

- install cloud-initramfs-growroot

`apt-get install cloud-initramfs-growroot`

- Clean the apt cache

`apt-get clean`

- shutdown the vm

`shutdown -h now`

- reduce the disc size

`qemu-img convert -O qcow2 -c foo.qcow2 bar.qcow2`

- copy to datastore server

`scp bar.qcow2 oneadmin@server:/var/tmp`

- import the vm qcow2 disc as image

`oneimage create --name "Debian 7" --path /var/tmp/bar.qcow2 --driver qcow2 --type OS --prefix vd --datastore default`

> I do this by command line because sunstone can’t upload the image, why? I don’t know and don’t matter me XD

- create the template using the new image

> I make this from sunstone

- ???

- enjoy your new instance

Cheers

---

<div class="post-metadata">

**Author:** ![dubcl](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@dubcl](https://forum.opennebula.io/u/dubcl)\
**Post date:** [December 19, 2017, 7:15pm UTC](https://forum.opennebula.io/t/debian-7-app-download-or-diy/5340/10 "2017-12-19T19:15:02Z")

</div>

Follow the monologue XD here is my final image if you need

[https://goo.gl/VWbJiy](https://goo.gl/VWbJiy)

Cheers.
