[elbe-devel] bin-cdrom.iso
Manuel Traut
manuel.traut at linutronix.de
Fri Apr 21 09:04:46 CEST 2017
Hi,
>
> is it possible to reuse previously generated bin-cdrom.iso on the next
> build of slightly modified xml? Is it possible to use bin-cdrom.iso as
> a some kind of apt cache.
>
> I tried to use <cdrom>bin-cdrom.iso</cdrom>, but elbe doesn't upload
> cdrom into VM. As a result there is an error about missing
> bin-cdrom.iso image.
which elbe command produced the following log?
> [------------------------------------------------------------------------------------------------------]
> debootstrap log
> ---------------
>
> getting output from cmd +dpkg --print-architecture+
> running cmd +mkdir -p "/var/cache/elbe/8198d74b-5232-438c-a0ae-4dc9a35d4267/chroot/cdrom"+
> ------------------------------------------------------------------------------
> ------------------------------------------------------------------------------
>
> running cmd +mount -o loop "bin-cdrom.iso" "/var/cache/elbe/8198d74b-5232-438c-a0ae-4dc9a35d4267/chroot/cdrom"+
> ------------------------------------------------------------------------------
> mount: bin-cdrom.iso: failed to setup loop device: No such file or directory
> ------------------------------------------------------------------------------
>
> Command failed with errorcode 32
> running cmd +umount "/var/cache/elbe/8198d74b-5232-438c-a0ae-4dc9a35d4267/chroot/cdrom"+
> ------------------------------------------------------------------------------
> umount: /var/cache/elbe/8198d74b-5232-438c-a0ae-4dc9a35d4267/chroot/cdrom: not mounted
> ------------------------------------------------------------------------------
>
> Command failed with errorcode 32
> Build failed
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/elbepack/asyncworker.py", line 116, in execute
> skip_pbuild=self.skip_pbuilder)
> File "/usr/lib/python2.7/dist-packages/elbepack/elbeproject.py", line 231, in build
> build_sources = build_sources, clean = True )
> File "/usr/lib/python2.7/dist-packages/elbepack/rfs.py", line 53, in __init__
> self.debootstrap ()
> File "/usr/lib/python2.7/dist-packages/elbepack/rfs.py", line 140, in debootstrap
> self.cdrom_umount()
> File "/usr/lib/python2.7/dist-packages/elbepack/rfs.py", line 66, in cdrom_umount
> self.log.do ('umount "%s"' % cdrompath)
> File "/usr/lib/python2.7/dist-packages/elbepack/asciidoclog.py", line 72, in do
> raise CommandError(cmd, ret)
> CommandError
>
>
> Exception:
> [------------------------------------------------------------------------------------------------------]
>
> There is an option '--cdrom' for initvm command:
> --cdrom=CDROM iso image of Binary cdrom
>
> Unfortunately it doesn't work with 'submit'. cdrom option is ignored.
> What is the purpose of this option? FYI it's not mentioned in
> documentation for initvm command.
'elbe intivm submit bin-cdrom.iso' should work.
There is currently no way to use it with a modified xml.
You could loopback mount the cdrom on your PC, host that dir on a webserver
and use it like this: 'http://LOCALMACHINE/cd-mnt-point' in your XML.
Regards,
Manuel
More information about the elbe-devel
mailing list