When I do a full clone of a VM Template it takes anywhere from 25-60 minutes to complete. When I check iotop it looks like the actual copy is finished within a minute of two and the disk usage falls back to idle but the VM takes another 20+ minutes to complete the clone. I don't see anything that stands out to me in journalctl. Is there something I'm missing? Is there something wrong or a setting I can change to reduce the clone time?
VM Template Settings
Memory: 2GB
Processor: 4c1s
Hard Disk: size 32G, ssd=1, discard=1, iothread=1
QEMU Guest Agent: Enabled
journalctl during the clone
VM Template Settings
Memory: 2GB
Processor: 4c1s
Hard Disk: size 32G, ssd=1, discard=1, iothread=1
QEMU Guest Agent: Enabled
journalctl during the clone
Bash:
May 08 13:00:42 runner-dev pvedaemon[580784]: <root@pam> starting task UPID:runner-dev:000902FE:0192FEC4:645946DA:qmclone:100:root@pam:
May 08 13:00:44 runner-dev pvedaemon[583090]: <root@pam> starting task UPID:runner-dev:0009032F:0192FF8E:645946DC:vncshell::root@pam:
May 08 13:00:44 runner-dev pvedaemon[590639]: starting termproxy UPID:runner-dev:0009032F:0192FF8E:645946DC:vncshell::root@pam:
May 08 13:00:45 runner-dev pvedaemon[580784]: <root@pam> successful auth for user 'root@pam'
May 08 13:00:45 runner-dev login[590644]: pam_unix(login:session): session opened for user root(uid=0) by root(uid=0)
May 08 13:00:45 runner-dev systemd[1]: Created slice User Slice of UID 0.
May 08 13:00:45 runner-dev systemd[1]: Starting User Runtime Directory /run/user/0...
May 08 13:00:45 runner-dev systemd-logind[1171]: New session 91 of user root.
May 08 13:00:45 runner-dev systemd[1]: Finished User Runtime Directory /run/user/0.
May 08 13:00:45 runner-dev systemd[1]: Starting User Manager for UID 0...
May 08 13:00:45 runner-dev systemd[590650]: pam_unix(systemd-user:session): session opened for user root(uid=0) by (uid=0)
May 08 13:00:45 runner-dev systemd[590650]: Queued start job for default target Main User Target.
May 08 13:00:45 runner-dev systemd[590650]: Created slice User Application Slice.
May 08 13:00:45 runner-dev systemd[590650]: Reached target Paths.
May 08 13:00:45 runner-dev systemd[590650]: Reached target Timers.
May 08 13:00:45 runner-dev systemd[590650]: Listening on GnuPG network certificate management daemon.
May 08 13:00:45 runner-dev systemd[590650]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
May 08 13:00:45 runner-dev systemd[590650]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
May 08 13:00:45 runner-dev systemd[590650]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
May 08 13:00:45 runner-dev systemd[590650]: Listening on GnuPG cryptographic agent and passphrase cache.
May 08 13:00:45 runner-dev systemd[590650]: Reached target Sockets.
May 08 13:00:45 runner-dev systemd[590650]: Reached target Basic System.
May 08 13:00:45 runner-dev systemd[590650]: Reached target Main User Target.
May 08 13:00:45 runner-dev systemd[590650]: Startup finished in 75ms.
May 08 13:00:45 runner-dev systemd[1]: Started User Manager for UID 0.
May 08 13:00:45 runner-dev systemd[1]: Started Session 91 of user root.
May 08 13:00:45 runner-dev login[590664]: ROOT LOGIN on '/dev/pts/0'
May 08 13:01:01 runner-dev cron[1492]: (*system*vzdump) RELOAD (/etc/cron.d/vzdump)
May 08 13:08:31 runner-dev pvedaemon[583090]: <root@pam> successful auth for user 'root@pam'
May 08 13:08:31 runner-dev pveproxy[1536]: worker 586382 finished
May 08 13:08:31 runner-dev pveproxy[1536]: starting 1 worker(s)
May 08 13:08:31 runner-dev pveproxy[1536]: worker 591829 started
May 08 13:08:35 runner-dev pveproxy[591828]: got inotify poll request in wrong process - disabling inotify
May 08 13:12:15 runner-dev pveproxy[587811]: worker exit
May 08 13:12:15 runner-dev pveproxy[1536]: worker 587811 finished
May 08 13:12:15 runner-dev pveproxy[1536]: starting 1 worker(s)
May 08 13:12:15 runner-dev pveproxy[1536]: worker 592334 started
May 08 13:17:01 runner-dev CRON[592964]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
May 08 13:17:01 runner-dev CRON[592965]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
May 08 13:17:01 runner-dev CRON[592964]: pam_unix(cron:session): session closed for user root
May 08 13:22:01 runner-dev pveproxy[591829]: worker exit
May 08 13:22:01 runner-dev pveproxy[1536]: worker 591829 finished
May 08 13:22:01 runner-dev pveproxy[1536]: starting 1 worker(s)
May 08 13:22:01 runner-dev pveproxy[1536]: worker 593633 started
May 08 13:23:31 runner-dev pvedaemon[580766]: <root@pam> successful auth for user 'root@pam'
May 08 13:28:14 runner-dev pvedaemon[580784]: <root@pam> end task UPID:runner-dev:000902FE:0192FEC4:645946DA:qmclone:100:root@pam: OK