I notice that when I try to create an LXC container using the command line tool "pvesh", that after I create a new image from container it creates successfully but then the CLI sends the "pvesh" process to the background, and then i have to issue "fg" to bring the prompt back?
pve:/> create /nodes/pve01/lxc --ostemplate local:vztmpl/centos-7-default_20171212_amd64.tar.xz --vmid 999 --cores 2 --memory 4096 --swap 512 --password pass123 --storage ceph-rbd --net0 name=eth0,bridge=vmbr0,ip=10.241.154.1/20,gw=10.241.146.5
/dev/rbd4
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 1048576 4k blocks and 262144 inodes
Filesystem UUID: ca7d8a86-4f34-4b78-9dfd-b345ecc9a120
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done
extracting archive '/var/lib/vz/template/cache/centos-7-default_20171212_amd64.tar.xz'
Total bytes read: 402657280 (385MiB, 62MiB/s)
Detected container architecture: amd64
Creating SSH host key 'ssh_host_dsa_key' - this may take some time ...
done: SHA256:3aCCQxW6jzn5zEGwcZ2ZRyLsf5Cvy67V1jsNjh5hO5s root@localhost
Creating SSH host key 'ssh_host_ecdsa_key' - this may take some time ...
done: SHA256:RKonQwnEQoJVMIw7MLkV5ZuMBl4OOknPNYVxtiW1eK8 root@localhost
Creating SSH host key 'ssh_host_rsa_key' - this may take some time ...
done: SHA256:CoPJ2/EOTViVK5f3vdytzX+6Mtop7I/BPnJ3Jl67WzE root@localhost
Creating SSH host key 'ssh_host_ed25519_key' - this may take some time ...
done: SHA256:3KnBFCjicwaCslzEWZ93BVQPRHFwjUHCu8tJDRACfRM root@localhost
200 OK
[1]+ Stopped pvesh
root@pve01:~#
root@pve01:~# fg
pvesh
pve:/>
pve:/> create /nodes/pve01/lxc --ostemplate local:vztmpl/centos-7-default_20171212_amd64.tar.xz --vmid 999 --cores 2 --memory 4096 --swap 512 --password pass123 --storage ceph-rbd --net0 name=eth0,bridge=vmbr0,ip=10.241.154.1/20,gw=10.241.146.5
/dev/rbd4
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 1048576 4k blocks and 262144 inodes
Filesystem UUID: ca7d8a86-4f34-4b78-9dfd-b345ecc9a120
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done
extracting archive '/var/lib/vz/template/cache/centos-7-default_20171212_amd64.tar.xz'
Total bytes read: 402657280 (385MiB, 62MiB/s)
Detected container architecture: amd64
Creating SSH host key 'ssh_host_dsa_key' - this may take some time ...
done: SHA256:3aCCQxW6jzn5zEGwcZ2ZRyLsf5Cvy67V1jsNjh5hO5s root@localhost
Creating SSH host key 'ssh_host_ecdsa_key' - this may take some time ...
done: SHA256:RKonQwnEQoJVMIw7MLkV5ZuMBl4OOknPNYVxtiW1eK8 root@localhost
Creating SSH host key 'ssh_host_rsa_key' - this may take some time ...
done: SHA256:CoPJ2/EOTViVK5f3vdytzX+6Mtop7I/BPnJ3Jl67WzE root@localhost
Creating SSH host key 'ssh_host_ed25519_key' - this may take some time ...
done: SHA256:3KnBFCjicwaCslzEWZ93BVQPRHFwjUHCu8tJDRACfRM root@localhost
200 OK
[1]+ Stopped pvesh
root@pve01:~#
root@pve01:~# fg
pvesh
pve:/>