diff options
Diffstat (limited to 'recipes/clone.example')
-rw-r--r-- | recipes/clone.example | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/clone.example b/recipes/clone.example new file mode 100644 index 00000000..8e8a1c1a --- /dev/null +++ b/recipes/clone.example @@ -0,0 +1,20 @@ +$ clone.sh /tmp/test.img /tmp/new.img /dev/sda1 192.168.1.1 newmachine +204800+0 records in +204800+0 records out +104857600 bytes (105 MB) copied, 2.02821 s, 51.7 MB/s +write-file /etc/resolv.conf "nameserver 192.168.1.1" 0 +write-file /etc/HOSTNAME "newmachine" 0 +sync + +$ guestfish -a /tmp/new.img -m /dev/sda1 + +Welcome to guestfish, the libguestfs filesystem interactive shell for +editing virtual machine filesystems. + +Type: 'help' for help with commands + 'quit' to quit the shell + +><fs> cat /etc/resolv.conf +nameserver 192.168.1.1 +><fs> cat /etc/HOSTNAME +newmachine |