[Libguestfs] [PATCH] appliance: Copy /etc/machine-id from host system into the appliance.

Richard W.M. Jones rjones at redhat.com
Tue Mar 29 15:50:01 UTC 2016

On Tue, Mar 29, 2016 at 03:14:15PM +0200, Pino Toscano wrote:
> +# Create a machine-id with a random UUID
> +dd if=/dev/urandom bs=1 count=16 status=none | od -x -A n | sed -e 's, ,,g' > /etc/machine-id

Out of interest, why read single bytes, and not the whole 16 bytes in
one go?


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

More information about the Libguestfs mailing list