sed -i "s|^\(eval.\+\)$|#\1|g" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "s|^\(export DISPLAY.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^\(eval.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^\(sleep.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^\(lxpanelctl.\+\)$|#\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ ls -l /media/netdir/source/raspberrypi total 0 drwxrwxrwx+ 1 systemd-network users 18 Dec 6 19:53 3 drwxrwxrwx+ 1 pi pi 18 Dec 30 09:59 4-01 drwxrwxrwx+ 1 pi pi 18 Dec 30 15:26 4-02 drwxrwxrwx+ 1 pi pi 18 Dec 30 20:46 4-03 drwxrwxrwx+ 1 systemd-timesync 98 18 Dec 31 15:39 4-04 drwxrwxrwx+ 1 pi pi 0 Jan 1 10:54 4-05 drwxrwxrwx+ 1 99 99 18 Dec 29 09:27 4-10 drwxrwxrwx+ 1 pi pi 18 Dec 29 18:21 4-11 drwxrwxrwx+ 1 pi pi 18 Dec 29 19:19 4-12 drwxrwxrwx+ 1 pi pi 18 Dec 29 22:21 4-13 drwxrwxrwx+ 1 pi pi 18 Dec 29 22:30 4-14 drwxrwxrwx+ 1 pi pi 18 Dec 20 18:51 4-8 drwxrwxrwx+ 1 pi pi 18 Dec 21 21:14 4-9 drwxrwxrwx+ 1 99 99 18 Dec 6 19:46 org pi@raspberrypi4:~ $ mkdir -p /media/netdir/source/raspberrypi/4-05 pi@raspberrypi4:~ $ inset_line=`grep -n systemd-nspawn /home/pi/vdesktop/vdesktop | tail -1 | cut -f 1 -d:` pi@raspberrypi4:~ $ let inset_line2=inset_line+1 pi@raspberrypi4:~ $ sed -i "${inset_line2}iumount \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line}imount --bind /media/netdir/source/raspberrypi/4-05 \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line}imkdir -p \${mntpnt}/mnt/compile" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ ls -l /mnt/runimg total 28284760 -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 22:50 2012-07-15-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 1939865600 Dec 21 00:08 2013-02-09-wheezy-raspbian.img -rwxrwxrwx+ 1 systemd-network users 2962227200 Dec 20 23:26 2013-12-20-wheezy-raspbian.img -rwx------+ 1 99 99 8956451117 Jan 1 10:57 2017-07-05-raspbian-jessie_compile-armel.img -rwxrwxrwx+ 1 99 99 4555014144 Dec 31 22:50 2019-04-08-raspbian-stretch_chroot.img -rwxrwxrwx+ 1 systemd-timesync 98 3481272320 Dec 30 11:47 2019-04-08-raspbian-stretch-make-new.img -rwxrwxrwx+ 1 root root 3481272320 Dec 30 09:55 2019-04-08-raspbian-stretch-make-old.img drwxrwxrwx+ 1 root root 160 Dec 19 22:41 bak -rw-r--r--+ 1 systemd-timesync 98 867172352 Dec 27 22:23 Debian-testing-armmp_2019-12-27T221219.img -rw-r--r--+ 1 99 99 764411904 Dec 23 10:06 Raspbian-stretch-rpix_2019-12-22T225115.img pi@raspberrypi4:~ $ sudo /home/pi/vdesktop/vdesktop /mnt/runimg/2017-07-05-raspbian-jessie_compile-armel.img sudo: unable to resolve host raspberrypi4: No address associated with hostname sudo: unable to resolve host raspberrypi4: No address associated with hostname OK, looks like you specified an .img file. e2fsck 1.44.5 (15-Dec-2018) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/loop0: 127608/539216 files (0.1% non-contiguous), 1035012/2174720 blocks /mnt/runimg/2017-07-05-raspbian-jessie_compile-armel.img mounted on /mnt/virtualdesktop Your cursor color will be blue until the container is terminated. Booting in 5 seconds. Spawning container virtualdesktop on /mnt/virtualdesktop. Press ^] three times within 1s to kill container. systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR) Detected virtualization 'systemd-nspawn'. Detected architecture 'arm'. Welcome to Raspbian GNU/Linux 8 (jessie)! Set hostname to . Failed to install release agent, ignoring: No such file or directory Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-01. Running in a container, ignoring fstab device entry for /dev/disk/by-partuuid/970b8044-02. Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory. [ OK ] Reached target Remote File Systems (Pre). [ OK ] Reached target Encrypted Volumes. [ OK ] Reached target Swap. [ OK ] Created slice Root Slice. [ OK ] Listening on Delayed Shutdown Socket. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [ OK ] Listening on Journal Socket (/dev/log). [ OK ] Created slice User and Session Slice. [ OK ] Listening on Journal Socket. [ OK ] Created slice System Slice. [ OK ] Listening on Syslog Socket. Starting Restore / save the current clock... Mounting FUSE Control File System... [ OK ] Created slice system-autologin.slice. Starting Copy rules generated while the root was ro... Starting LSB: Set preliminary keymap... Starting Journal Service... [ OK ] Started Journal Service. [ OK ] Reached target Slices. [ OK ] Mounted FUSE Control File System. [ OK ] Started Copy rules generated while the root was ro. [ OK ] Started Restore / save the current clock. [ OK ] Started LSB: Set preliminary keymap. Starting Show Plymouth Boot Screen... Starting Remount Root and Kernel File Systems... [FAILED] Failed to start Remount Root and Kernel File Systems. See 'systemctl status systemd-remount-fs.service' for details. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Paths. Starting Load/Save Random Seed... [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Local File Systems. Starting Tell Plymouth To Write Out Runtime Data... Starting Create Volatile Files and Directories... [ OK ] Reached target Remote File Systems. Starting Trigger Flushing of Journal to Persistent Storage... Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)... Starting LSB: Prepare console... [ OK ] Started Load/Save Random Seed. Starting LSB: Raise network interfaces.... [ OK ] Started Tell Plymouth To Write Out Runtime Data. [ OK ] Started Trigger Flushing of Journal to Persistent Storage. [ OK ] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... [ OK ] Started LSB: Switch to ondemand cpu governor (unless shift key is pressed). [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started LSB: Prepare console. Starting LSB: Set console font and keymap... [ OK ] Started LSB: Set console font and keymap. [ OK ] Started LSB: Raise network interfaces.. [ OK ] Reached target System Initialization. [ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Timers. [ OK ] Reached target Basic System. Starting LSB: Resize the root filesystem to fill partition... Starting Avahi mDNS/DNS-SD Stack... Starting Configure Bluetooth Modems connected by UART... Starting dhcpcd on all interfaces... Starting System Logging Service... Starting Regular background program processing daemon... [ OK ] Started Regular background program processing daemon. Starting D-Bus System Message Bus... [ OK ] Started D-Bus System Message Bus. [ OK ] Started Avahi mDNS/DNS-SD Stack. Starting Login Service... Starting LSB: triggerhappy hotkey daemon... Starting LSB: Autogenerate and use a swap file... [ OK ] Started System Logging Service. [FAILED] Failed to start LSB: Resize the root filesystem to fill partition. See 'systemctl status resize2fs_once.service' for details. [FAILED] Failed to start Configure Bluetooth Modems connected by UART. See 'systemctl status hciuart.service' for details. [ OK ] Started dhcpcd on all interfaces. Starting Cleanup of Temporary Directories... [ OK ] Reached target Network. Starting /etc/rc.local Compatibility... Starting Permit User Sessions... [ OK ] Reached target Network is Online. Starting LSB: Start NTP daemon... [ OK ] Started Login Service. [ OK ] Started Permit User Sessions. My IP address is 192.168.1.254 [ OK ] Started Cleanup of Temporary Directories. Starting Light Display Manager... [ OK ] Started LSB: triggerhappy hotkey daemon. [ OK ] Started LSB: Start NTP daemon. [ OK ] Started LSB: Autogenerate and use a swap file. Message from virtualdesktop: Log in as user pi using the guest's password. (default is raspberry) Once you login, the graphical desktop will load automatically. Raspbian GNU/Linux 8 raspberrypi console raspberrypi login: pi Password: Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. pi@raspberrypi:~$ sudo passwd pi Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully pi@raspberrypi:~$ sudo passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully pi@raspberrypi:~$ date Wed 1 Jan 11:16:00 JST 2020 pi@raspberrypi:~$ pi@raspberrypi:~$ pi@raspberrypi:~$ compile finish -bash: compile: command not found pi@raspberrypi:~$ shutdown -h now pi@raspberrypi:~$ Sending SIGTERM to remaining processes... Sending SIGKILL to remaining processes... Unmounting file systems. Unmounting /sys/fs/fuse/connections. Unmounting /proc/sys/kernel/random/boot_id. Unmounting /proc/sys/kernel/random/boot_id. Unmounting /proc/irq. Unmounting /proc/fs. Unmounting /proc/bus. Unmounting /proc/asound. Unmounting /proc/timer_list. Unmounting /proc/sysrq-trigger. Unmounting /proc/keys. Unmounting /proc/kallsyms. Unmounting /dev/mqueue. Unmounting /tmp. Unmounting /proc/sys/kernel/random/boot_id. Unmounting /tmp. Unmounting /proc/sys/kernel/random/boot_id. Could not unmount /proc/sys/kernel/random/boot_id: Invalid argument Unmounting /tmp. Could not unmount /tmp: Device or resource busy Not all file systems unmounted, 2 left. Unmounting file systems. Unmounting /tmp. Unmounting /tmp. Could not unmount /tmp: Device or resource busy Not all file systems unmounted, 1 left. Cannot finalize remaining file systems, continuing. Failed to finalize file systems, ignoring Powering off. Container virtualdesktop has been shut down. pi@raspberrypi4:~ $ sed -i "s|^#\+\(eval.\+\)$|\1|g" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "s|^#\+\(export DISPLAY.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^#\+\(eval.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^#\+\(sleep.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "s|^#\+\(lxpanelctl.\+\)$|\1|g" /home/pi/vdesktop/profile pi@raspberrypi4:~ $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line}d" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $ sed -i "${inset_line2}d" /home/pi/vdesktop/vdesktop pi@raspberrypi4:~ $