Hi Chetan,
On Wednesday 26 July 2017 03:53 PM, Chetan Sharma wrote:
But still its not working with Lava job. Can we debug
LXC-instance with more logs.
I tried this on my local setup and it just works from within a LAVA test job.
See the complete test job log here - http://paste.debian.net/978242/ The job definition is here - http://paste.debian.net/978243/
You can see 'ls -alh /var/iso' called in the test definition lists the contents of the directory which is mounted from the entry as defined below:
$ cat /etc/lxc/default.conf lxc.network.type = veth lxc.network.flags = up lxc.network.link = virbr0
lxc.cgroup.memory.limit_in_bytes = 2G lxc.mount.entry = /mnt/iso var/iso none bind,create=dir 0 0 $ ls -alh /mnt/iso/ total 1.2M dr-xr-xr-x 1 root root 4.0K Nov 22 2016 . drwxr-xr-x 3 root root 4.0K Mar 1 21:00 .. -r--r--r-- 1 root root 146 Nov 22 2016 autorun.inf dr-xr-xr-x 1 root root 2.0K Nov 22 2016 boot dr-xr-xr-x 1 root root 2.0K Nov 22 2016 css lr-xr-xr-x 1 root root 1 Nov 22 2016 debian -> . dr-xr-xr-x 1 root root 2.0K Nov 22 2016 .disk dr-xr-xr-x 1 root root 2.0K Nov 22 2016 dists dr-xr-xr-x 1 root root 2.0K Nov 22 2016 doc dr-xr-xr-x 1 root root 2.0K Nov 22 2016 efi dr-xr-xr-x 1 root root 2.0K Nov 22 2016 firmware -r--r--r-- 1 root root 177K Nov 21 2016 g2ldr -r--r--r-- 1 root root 8.0K Nov 21 2016 g2ldr.mbr dr-xr-xr-x 1 root root 2.0K Nov 22 2016 install dr-xr-xr-x 1 root root 2.0K Nov 22 2016 install.amd dr-xr-xr-x 1 root root 4.0K Nov 22 2016 isolinux -r--r--r-- 1 root root 80K Nov 22 2016 md5sum.txt dr-xr-xr-x 1 root root 4.0K Nov 22 2016 pics dr-xr-xr-x 1 root root 2.0K Nov 22 2016 pool -r--r--r-- 1 root root 8.6K Nov 22 2016 README.html -r--r--r-- 1 root root 187K Nov 21 2016 README.mirrors.html -r--r--r-- 1 root root 102K Nov 21 2016 README.mirrors.txt -r--r--r-- 1 root root 437 Nov 22 2016 README.source -r--r--r-- 1 root root 5.3K Nov 22 2016 README.txt -r--r--r-- 1 root root 615K Nov 21 2016 setup.exe dr-xr-xr-x 1 root root 2.0K Nov 22 2016 tools -r--r--r-- 1 root root 233 Nov 22 2016 win32-loader.ini $
/mnt/iso is a loop mount of debian testing iso image.
Thank You.