todo: Remove obsolete items from TODO file.
[libguestfs.git] / recipes / clone.example
1 $ clone.sh /tmp/test.img /tmp/new.img /dev/sda1 192.168.1.1 newmachine
2 204800+0 records in
3 204800+0 records out
4 104857600 bytes (105 MB) copied, 2.02821 s, 51.7 MB/s
5
6 $ guestfish -a /tmp/new.img -m /dev/sda1
7
8 Welcome to guestfish, the libguestfs filesystem interactive shell for
9 editing virtual machine filesystems.
10
11 Type: 'help' for a list of commands
12       'man' to read the manual
13       'quit' to quit the shell
14
15 ><fs> cat /etc/resolv.conf
16 nameserver 192.168.1.1
17 ><fs> cat /etc/HOSTNAME
18 newmachine