<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi Cole,</tt></p>
<p><tt>This is an interesting error, if you run: virt-bootstrap
docker://fedora /tmp/foo</tt><tt><br>
</tt></p>
<p><tt>virt-bootstrap will check if the path "/tmp/foo" exists and
will create in case it does not. Then it should work except if
the path "/tmp/foo" exists and is not owned by another user
(root) even though with permissions 755. </tt><tt><br>
</tt></p>
<p><tt>In such case you will get "Permission denied". (I'm not sure
why, though.)</tt><tt><br>
</tt></p>
<p><tt>Steps to reproduce:</tt></p>
<p><font face="Courier 10 Pitch">$ sudo mkdir /tmp/foo</font></p>
<p><font face="Courier 10 Pitch">$ sudo chmod 755 /tmp/foo</font></p>
<p><font face="Courier 10 Pitch">$ ls -al /tmp/test5<br>
total 0<br>
drwxr-xr-x 2 root root 40 Jun 27 17:18 ./<br>
drwxrwxrwt 27 root root 600 Jun 27 17:26 ../<br>
</font></p>
<p><font face="Courier 10 Pitch">$ touch /tmp/foo/test<br>
</font></p>
<font face="Courier 10 Pitch">touch: cannot touch '/tmp/test5/test':
Permission denied</font><br>
<br>
<div class="moz-cite-prefix">On 27/06/17 16:50, Cole Robinson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f466c110-dc21-22cc-f141-e4ef5ab41cf0@redhat.com">
<pre wrap="">On 06/23/2017 02:49 PM, Radostin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Cole,
Thank you for the feedback.
To solve the problem with virt-bootstrap/skopeo use:
virt-bootstrap docker://fedora /tmp/foo
</pre>
</blockquote>
<pre wrap="">
Thanks, indeed that works. Guess I'm just used to the libvirt qemu:///system
URI :)
Trying it now with docker://fedora ... does virt-bootstrap require running as
root? It doesn't seem to generate a usable container dir without root, I see
errors like:
/bin/tar: etc/alternatives/cifs-idmap-plugin: Cannot open: Permission denied
/bin/tar: etc/alternatives/libnssckbi.so.x86_64: Cannot open: Permission denied
/bin/tar: etc/cifs-utils/idmap-plugin: Cannot open: Permission denied
/bin/tar: etc/crypto-policies/back-ends/bind.config: Cannot open: Permission
denied
/bin/tar: etc/crypto-policies/back-ends/gnutls.config: Cannot open: Permission
denied
/bin/tar: etc/crypto-policies/back-ends/gnutls28.config: Cannot open:
Permission denied
/bin/tar: etc/crypto-policies/back-ends/java.config: Cannot open: Permission
denied
/bin
And so on. But virt-bootstrap still reports success.
Another issue I noticed: would be nice to get the virt-bootstrap output into
the virt-manager debug log
The UI generally looks good though, nice work
- Cole
</pre>
</blockquote>
<br>
</body>
</html>