[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] IRC question about virt-builder ubuntu-* images



On Sat, Jul 09, 2016 at 08:20:27AM +0100, Richard W.M. Jones wrote:
> 
> 22:06 < adam12> rwmjones: If you're still around, just curious - any reason why the ubuntu14 image doesn't come with `dpkg-reconfigure openssh-server` 
>                 already configured for firstboot?
> 
> The reason is because I couldn't work out how to automate this in the
> preseed script.  If you want to have a go, then see:
> 
> https://github.com/libguestfs/libguestfs/blob/master/builder/website/ubuntu.sh
> https://github.com/libguestfs/libguestfs/blob/master/builder/website/ubuntu.preseed

s.th. like

d-i preseed/late_command string \
   in-target dpkg-reconfigure openssh-server;

If you need special vealues before hand there's debconf-set-selection

Cheers,
 -- Guido

> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://people.redhat.com/~rjones/virt-df/
> 
> _______________________________________________
> Libguestfs mailing list
> Libguestfs redhat com
> https://www.redhat.com/mailman/listinfo/libguestfs
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]