<div dir="ltr"><div><div style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><span style="font-family: courier new,monospace;"></span></div>i want to create Virtual machine with config file, just calling :<br>
<blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">$ vmbuilder kvm ubuntu   -c vm.config -v --debug --templates /opt/templates/ --dest /srv/vms/zex </span><br>
</blockquote><div> </div>however i want also to create custom guest's apt/sources.list with my additional PPA list by passing the list from config file ( and vmbuilder will render my custom "ubuntu/sources.list.tmpl",<br>
where each PPA is a well formed apt/source.list line, like:<br></div><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">deb <a href="http://ru.archive.ubuntu.com/ubuntu/">http://ru.archive.ubuntu.com/ubuntu/</a> lucid multiverse</span><br style="color: rgb(0, 0, 153);">
<span style="color: rgb(0, 0, 153);">deb-src </span><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);"><a href="http://fr.archive.ubuntu.com/ubuntu/">http://fr.archive.ubuntu.com/ubuntu/</a> lucid multiverse</span><br>
</blockquote><div> </div><div>so the config file should contain both ( comma separated, or |-separatedl, like pbuilder) lines.<br><br>so i deined my mirrors in [ubuntu] section of my config file<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<span style="font-family: courier new,monospace;">my_mirrors=</span><span style="font-family: courier new,monospace; color: rgb(0, 0, 153);">deb <a href="http://ru.archive.ubuntu.com/ubuntu/">http://ru.archive.ubuntu.com/ubuntu/</a> lucid multiverse,deb-src <a href="http://fr.archive.ubuntu.com/ubuntu/">http://fr.archive.ubuntu.com/ubuntu/</a> lucid multiverse</span><br>
</blockquote><div> </div>however when running vmbuilder i've got an exception<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/ubuntu/dapper.py", line 324, in install_from_template</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    return self.context.install_from_template(*args, **kwargs)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/__init__.py", line 83, in install_from_template</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">   
 return self.install_file(path, 
VMBuilder.util.render_template(self.__module__.split('.')[2], 
self.context, tmplname, context), mode=mode)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "/usr/lib/python2.6/dist-packages/VMBuilder/util.py", line 156, in render_template</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    output = t.respond()</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  File "_home_yurii_vms_templates_ubuntu_sources_list_tmpl.py", line 98, in respond</span><br style="font-family: courier new,monospace;">
</blockquote><br>my sources_list.tmpl:<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex; font-family: courier new,monospace;" class="gmail_quote">deb $mirror $suite #slurp<br>
#echo ' '.join($components)<br><br>#if $my_<span style="font-family: courier new,monospace;">mirrors</span><br>#for $my_<span style="font-family: courier new,monospace;">mirror</span> in $my_<span style="font-family: courier new,monospace;">mirrors</span><br>
$my_<span style="font-family: courier new,monospace;">mirror</span><br>#end for<br>#end if<br></blockquote><br>is that mean that i cannot define my own variables in config file?<br><br>-- <br>Be Secure, Stay Open - live w/ OpenBSD<br>

</div></div>