diff --git a/setup/.vagrant/machines/laravel/virtualbox/action_provision b/setup/.vagrant/machines/laravel/virtualbox/action_provision new file mode 100644 index 0000000..2fecfac --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/action_provision @@ -0,0 +1 @@ +1.5:59c80496-5efa-432f-b54f-ede60fb203d3 \ No newline at end of file diff --git a/setup/.vagrant/machines/laravel/virtualbox/action_set_name b/setup/.vagrant/machines/laravel/virtualbox/action_set_name new file mode 100644 index 0000000..81feb13 --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/action_set_name @@ -0,0 +1 @@ +1611970139 \ No newline at end of file diff --git a/setup/.vagrant/machines/laravel/virtualbox/box_meta b/setup/.vagrant/machines/laravel/virtualbox/box_meta new file mode 100644 index 0000000..95fb7cf --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/box_meta @@ -0,0 +1 @@ +{"name":"ubuntu/bionic64","version":"20201211.1.0","provider":"virtualbox","directory":"boxes/ubuntu-VAGRANTSLASH-bionic64/20201211.1.0/virtualbox"} \ No newline at end of file diff --git a/setup/.vagrant/machines/laravel/virtualbox/creator_uid b/setup/.vagrant/machines/laravel/virtualbox/creator_uid new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/creator_uid @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/setup/.vagrant/machines/laravel/virtualbox/id b/setup/.vagrant/machines/laravel/virtualbox/id new file mode 100644 index 0000000..9ae57db --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/id @@ -0,0 +1 @@ +59c80496-5efa-432f-b54f-ede60fb203d3 \ No newline at end of file diff --git a/setup/.vagrant/machines/laravel/virtualbox/index_uuid b/setup/.vagrant/machines/laravel/virtualbox/index_uuid new file mode 100644 index 0000000..33fae66 --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/index_uuid @@ -0,0 +1 @@ +84a3f6275be64bb0a68842c8b5dab00f \ No newline at end of file diff --git a/setup/.vagrant/machines/laravel/virtualbox/synced_folders b/setup/.vagrant/machines/laravel/virtualbox/synced_folders new file mode 100644 index 0000000..d959bd1 --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/synced_folders @@ -0,0 +1 @@ +{"virtualbox":{"/home/vagrant/src/":{"guestpath":"/home/vagrant/src","hostpath":"D:/Vagrant/test/src","disabled":false,"__vagrantfile":true},"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/Vagrant/test/setup","disabled":false,"__vagrantfile":true}}} \ No newline at end of file diff --git a/setup/.vagrant/machines/laravel/virtualbox/vagrant_cwd b/setup/.vagrant/machines/laravel/virtualbox/vagrant_cwd new file mode 100644 index 0000000..346e3c4 --- /dev/null +++ b/setup/.vagrant/machines/laravel/virtualbox/vagrant_cwd @@ -0,0 +1 @@ +D:/Vagrant/test/setup \ No newline at end of file diff --git a/setup/.vagrant/rgloader/loader.rb b/setup/.vagrant/rgloader/loader.rb new file mode 100644 index 0000000..c3c05b0 --- /dev/null +++ b/setup/.vagrant/rgloader/loader.rb @@ -0,0 +1,9 @@ +# This file loads the proper rgloader/loader.rb file that comes packaged +# with Vagrant so that encoded files can properly run with Vagrant. + +if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] + require File.expand_path( + "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) +else + raise "Encoded files can't be read outside of the Vagrant installer." +end diff --git a/setup/Vagrantfile b/setup/Vagrantfile new file mode 100644 index 0000000..6a6578a --- /dev/null +++ b/setup/Vagrantfile @@ -0,0 +1,38 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +ENV["LC_ALL"] = "C.UTF-8" + +$timezone_script = <<-'SCRIPT' +sudo timedatectl set-timezone "Europe/Warsaw" +timedatectl set-ntp true +echo "<<< TIMEZONE IS SET >>>" +timedatectl +SCRIPT + +Vagrant.configure("2") do |config| + config.vm.define "laravel" do |laravel| + laravel.vm.box = "ubuntu/bionic64" + laravel.vm.hostname = 'test' + laravel.vm.network "public_network", ip: "192.168.1.52" + laravel.vm.synced_folder "../src/", "/home/vagrant/src/" + laravel.vm.provider "virtualbox" do |v| + v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/src", "1"] + end + + + + laravel.vm.provider "virtualbox" do |vb| + vb.name = "test" + vb.cpus = 1 + vb.memory = 2048 + end + + config.vm.provision "shell", inline: $timezone_script + laravel.vm.provision :shell, path: "scripts/docker.sh" + laravel.vm.provision :shell, path: "scripts/php.sh" + laravel.vm.provision :shell, path: "scripts/composer.sh" + laravel.vm.provision :shell, path: "scripts/npm.sh" + end + +end diff --git a/setup/composer.dockerfile b/setup/composer.dockerfile new file mode 100644 index 0000000..951dbd4 --- /dev/null +++ b/setup/composer.dockerfile @@ -0,0 +1,5 @@ +FROM composer:latest + +RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel + +WORKDIR /var/www/html \ No newline at end of file diff --git a/setup/docker-compose.yml b/setup/docker-compose.yml new file mode 100644 index 0000000..6fac829 --- /dev/null +++ b/setup/docker-compose.yml @@ -0,0 +1,100 @@ +version: "3" + +networks: + laravel: + +services: + site: + build: + context: . + dockerfile: nginx.dockerfile + container_name: nginx + restart: unless-stopped + ports: + - "8080:80" + volumes: + - ~/src:/var/www/html:delegated + depends_on: + - php + - mysql + networks: + - laravel + + mysql: + image: mysql:5.7.29 + container_name: mysql + restart: unless-stopped + tty: true + ports: + - "3306:3306" + environment: + MYSQL_DATABASE: homestead + MYSQL_USER: homestead + MYSQL_PASSWORD: secret + MYSQL_ROOT_PASSWORD: secret + SERVICE_TAGS: dev + SERVICE_NAME: mysql + networks: + - laravel + + php: + build: + context: . + dockerfile: php.dockerfile + container_name: php + restart: unless-stopped + volumes: + - ~/src:/var/www/html:delegated + ports: + - "9000:9000" + networks: + - laravel + + phpmyadmin: + image: phpmyadmin + container_name: phpmyadmin + environment: + - PMA_HOST=mysql + - PMA_PORT=3306 + - PMA_USER=homestead + - PMA_PASSWORD=secret + restart: unless-stopped + ports: + - 8088:80 + networks: + - laravel + # composer: + # build: + # context: . + # dockerfile: composer.dockerfile + # container_name: composer + # volumes: + # - ./src:/var/www/html + # working_dir: /var/www/html + # depends_on: + # - php + # user: laravel + # networks: + # - laravel + # entrypoint: ['composer', '--ignore-platform-reqs'] + # npm: + # image: node:13.7 + # container_name: npm + # volumes: + # - ./src:/var/www/html + # working_dir: /var/www/html + # entrypoint: ['npm'] + # artisan: + # build: + # context: . + # dockerfile: php.dockerfile + # container_name: artisan + # volumes: + # - ./src:/var/www/html:delegated + # depends_on: + # - mysql + # working_dir: /var/www/html + # user: laravel + # entrypoint: ['php', '/var/www/html/artisan'] + # networks: + # - laravel diff --git a/setup/nginx.dockerfile b/setup/nginx.dockerfile new file mode 100644 index 0000000..12bce0b --- /dev/null +++ b/setup/nginx.dockerfile @@ -0,0 +1,10 @@ +FROM nginx:stable-alpine + +ADD ./nginx/nginx.conf /etc/nginx/nginx.conf +ADD ./nginx/default.conf /etc/nginx/conf.d/default.conf + +RUN mkdir -p /var/www/html + +RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel + +RUN chown laravel:laravel /var/www/html \ No newline at end of file diff --git a/setup/nginx/default.conf b/setup/nginx/default.conf new file mode 100644 index 0000000..2f9e96b --- /dev/null +++ b/setup/nginx/default.conf @@ -0,0 +1,20 @@ +server { + listen 80; + index index.php index.html; + server_name localhost; + root /var/www/html/public; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + try_files $uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass php:9000; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + } +} diff --git a/setup/nginx/nginx.conf b/setup/nginx/nginx.conf new file mode 100644 index 0000000..060e502 --- /dev/null +++ b/setup/nginx/nginx.conf @@ -0,0 +1,29 @@ +user laravel; +worker_processes auto; + +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx.pid; + +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; +} diff --git a/setup/php.dockerfile b/setup/php.dockerfile new file mode 100644 index 0000000..737ed1b --- /dev/null +++ b/setup/php.dockerfile @@ -0,0 +1,13 @@ +FROM php:7.4-fpm-alpine + +ADD ./php/www.conf /usr/local/etc/php-fpm.d/www.conf + +RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D laravel + +RUN mkdir -p /var/www/html + +RUN chown laravel:laravel /var/www/html + +WORKDIR /var/www/html + +RUN docker-php-ext-install pdo pdo_mysql diff --git a/setup/php/www.conf b/setup/php/www.conf new file mode 100644 index 0000000..eb028e1 --- /dev/null +++ b/setup/php/www.conf @@ -0,0 +1,439 @@ +; Start a new pool named 'www'. +; the variable $pool can be used in any directive and will be replaced by the +; pool name ('www' here) +[www] + +; Per pool prefix +; It only applies on the following directives: +; - 'access.log' +; - 'slowlog' +; - 'listen' (unixsocket) +; - 'chroot' +; - 'chdir' +; - 'php_values' +; - 'php_admin_values' +; When not set, the global prefix (or NONE) applies instead. +; Note: This directive can also be relative to the global prefix. +; Default Value: none +;prefix = /path/to/pools/$pool + +; Unix user/group of processes +; Note: The user is mandatory. If the group is not set, the default user's group +; will be used. +user = laravel +group = laravel + +; The address on which to accept FastCGI requests. +; Valid syntaxes are: +; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on +; a specific port; +; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on +; a specific port; +; 'port' - to listen on a TCP socket to all addresses +; (IPv6 and IPv4-mapped) on a specific port; +; '/path/to/unix/socket' - to listen on a unix socket. +; Note: This value is mandatory. +listen = 127.0.0.1:9000 + +; Set listen(2) backlog. +; Default Value: 511 (-1 on FreeBSD and OpenBSD) +;listen.backlog = 511 + +; Set permissions for unix socket, if one is used. In Linux, read/write +; permissions must be set in order to allow connections from a web server. Many +; BSD-derived systems allow connections regardless of permissions. The owner +; and group can be specified either by name or by their numeric IDs. +; Default Values: user and group are set as the running user +; mode is set to 0660 +;listen.owner = www-data +;listen.group = www-data +;listen.mode = 0660 +; When POSIX Access Control Lists are supported you can set them using +; these options, value is a comma separated list of user/group names. +; When set, listen.owner and listen.group are ignored +;listen.acl_users = +;listen.acl_groups = + +; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. +; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original +; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address +; must be separated by a comma. If this value is left blank, connections will be +; accepted from any ip address. +; Default Value: any +;listen.allowed_clients = 127.0.0.1 + +; Specify the nice(2) priority to apply to the pool processes (only if set) +; The value can vary from -19 (highest priority) to 20 (lower priority) +; Note: - It will only work if the FPM master process is launched as root +; - The pool processes will inherit the master process priority +; unless it specified otherwise +; Default Value: no set +; process.priority = -19 + +; Set the process dumpable flag (PR_SET_DUMPABLE prctl) even if the process user +; or group is differrent than the master process user. It allows to create process +; core dump and ptrace the process for the pool user. +; Default Value: no +; process.dumpable = yes + +; Choose how the process manager will control the number of child processes. +; Possible Values: +; static - a fixed number (pm.max_children) of child processes; +; dynamic - the number of child processes are set dynamically based on the +; following directives. With this process management, there will be +; always at least 1 children. +; pm.max_children - the maximum number of children that can +; be alive at the same time. +; pm.start_servers - the number of children created on startup. +; pm.min_spare_servers - the minimum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is less than this +; number then some children will be created. +; pm.max_spare_servers - the maximum number of children in 'idle' +; state (waiting to process). If the number +; of 'idle' processes is greater than this +; number then some children will be killed. +; ondemand - no children are created at startup. Children will be forked when +; new requests will connect. The following parameter are used: +; pm.max_children - the maximum number of children that +; can be alive at the same time. +; pm.process_idle_timeout - The number of seconds after which +; an idle process will be killed. +; Note: This value is mandatory. +pm = dynamic + +; The number of child processes to be created when pm is set to 'static' and the +; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. +; This value sets the limit on the number of simultaneous requests that will be +; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. +; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP +; CGI. The below defaults are based on a server without much resources. Don't +; forget to tweak pm.* to fit your needs. +; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' +; Note: This value is mandatory. +pm.max_children = 5 + +; The number of child processes created on startup. +; Note: Used only when pm is set to 'dynamic' +; Default Value: (min_spare_servers + max_spare_servers) / 2 +pm.start_servers = 2 + +; The desired minimum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.min_spare_servers = 1 + +; The desired maximum number of idle server processes. +; Note: Used only when pm is set to 'dynamic' +; Note: Mandatory when pm is set to 'dynamic' +pm.max_spare_servers = 3 + +; The number of seconds after which an idle process will be killed. +; Note: Used only when pm is set to 'ondemand' +; Default Value: 10s +;pm.process_idle_timeout = 10s; + +; The number of requests each child process should execute before respawning. +; This can be useful to work around memory leaks in 3rd party libraries. For +; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. +; Default Value: 0 +;pm.max_requests = 500 + +; The URI to view the FPM status page. If this value is not set, no URI will be +; recognized as a status page. It shows the following informations: +; pool - the name of the pool; +; process manager - static, dynamic or ondemand; +; start time - the date and time FPM has started; +; start since - number of seconds since FPM has started; +; accepted conn - the number of request accepted by the pool; +; listen queue - the number of request in the queue of pending +; connections (see backlog in listen(2)); +; max listen queue - the maximum number of requests in the queue +; of pending connections since FPM has started; +; listen queue len - the size of the socket queue of pending connections; +; idle processes - the number of idle processes; +; active processes - the number of active processes; +; total processes - the number of idle + active processes; +; max active processes - the maximum number of active processes since FPM +; has started; +; max children reached - number of times, the process limit has been reached, +; when pm tries to start more children (works only for +; pm 'dynamic' and 'ondemand'); +; Value are updated in real time. +; Example output: +; pool: www +; process manager: static +; start time: 01/Jul/2011:17:53:49 +0200 +; start since: 62636 +; accepted conn: 190460 +; listen queue: 0 +; max listen queue: 1 +; listen queue len: 42 +; idle processes: 4 +; active processes: 11 +; total processes: 15 +; max active processes: 12 +; max children reached: 0 +; +; By default the status page output is formatted as text/plain. Passing either +; 'html', 'xml' or 'json' in the query string will return the corresponding +; output syntax. Example: +; http://www.foo.bar/status +; http://www.foo.bar/status?json +; http://www.foo.bar/status?html +; http://www.foo.bar/status?xml +; +; By default the status page only outputs short status. Passing 'full' in the +; query string will also return status for each pool process. +; Example: +; http://www.foo.bar/status?full +; http://www.foo.bar/status?json&full +; http://www.foo.bar/status?html&full +; http://www.foo.bar/status?xml&full +; The Full status returns for each process: +; pid - the PID of the process; +; state - the state of the process (Idle, Running, ...); +; start time - the date and time the process has started; +; start since - the number of seconds since the process has started; +; requests - the number of requests the process has served; +; request duration - the duration in µs of the requests; +; request method - the request method (GET, POST, ...); +; request URI - the request URI with the query string; +; content length - the content length of the request (only with POST); +; user - the user (PHP_AUTH_USER) (or '-' if not set); +; script - the main script called (or '-' if not set); +; last request cpu - the %cpu the last request consumed +; it's always 0 if the process is not in Idle state +; because CPU calculation is done when the request +; processing has terminated; +; last request memory - the max amount of memory the last request consumed +; it's always 0 if the process is not in Idle state +; because memory calculation is done when the request +; processing has terminated; +; If the process is in Idle state, then informations are related to the +; last request the process has served. Otherwise informations are related to +; the current request being served. +; Example output: +; ************************ +; pid: 31330 +; state: Running +; start time: 01/Jul/2011:17:53:49 +0200 +; start since: 63087 +; requests: 12808 +; request duration: 1250261 +; request method: GET +; request URI: /test_mem.php?N=10000 +; content length: 0 +; user: - +; script: /home/fat/web/docs/php/test_mem.php +; last request cpu: 0.00 +; last request memory: 0 +; +; Note: There is a real-time FPM status monitoring sample web page available +; It's available in: /usr/local/share/php/fpm/status.html +; +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;pm.status_path = /status + +; The ping URI to call the monitoring page of FPM. If this value is not set, no +; URI will be recognized as a ping page. This could be used to test from outside +; that FPM is alive and responding, or to +; - create a graph of FPM availability (rrd or such); +; - remove a server from a group if it is not responding (load balancing); +; - trigger alerts for the operating team (24/7). +; Note: The value must start with a leading slash (/). The value can be +; anything, but it may not be a good idea to use the .php extension or it +; may conflict with a real PHP file. +; Default Value: not set +;ping.path = /ping + +; This directive may be used to customize the response of a ping request. The +; response is formatted as text/plain with a 200 response code. +; Default Value: pong +;ping.response = pong + +; The access log file +; Default: not set +;access.log = log/$pool.access.log + +; The access log format. +; The following syntax is allowed +; %%: the '%' character +; %C: %CPU used by the request +; it can accept the following format: +; - %{user}C for user CPU only +; - %{system}C for system CPU only +; - %{total}C for user + system CPU (default) +; %d: time taken to serve the request +; it can accept the following format: +; - %{seconds}d (default) +; - %{miliseconds}d +; - %{mili}d +; - %{microseconds}d +; - %{micro}d +; %e: an environment variable (same as $_ENV or $_SERVER) +; it must be associated with embraces to specify the name of the env +; variable. Some exemples: +; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e +; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e +; %f: script filename +; %l: content-length of the request (for POST request only) +; %m: request method +; %M: peak of memory allocated by PHP +; it can accept the following format: +; - %{bytes}M (default) +; - %{kilobytes}M +; - %{kilo}M +; - %{megabytes}M +; - %{mega}M +; %n: pool name +; %o: output header +; it must be associated with embraces to specify the name of the header: +; - %{Content-Type}o +; - %{X-Powered-By}o +; - %{Transfert-Encoding}o +; - .... +; %p: PID of the child that serviced the request +; %P: PID of the parent of the child that serviced the request +; %q: the query string +; %Q: the '?' character if query string exists +; %r: the request URI (without the query string, see %q and %Q) +; %R: remote IP address +; %s: status (response code) +; %t: server time the request was received +; it can accept a strftime(3) format: +; %d/%b/%Y:%H:%M:%S %z (default) +; The strftime(3) format must be encapsuled in a %{}t tag +; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t +; %T: time the log has been written (the request has finished) +; it can accept a strftime(3) format: +; %d/%b/%Y:%H:%M:%S %z (default) +; The strftime(3) format must be encapsuled in a %{}t tag +; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t +; %u: remote user +; +; Default: "%R - %u %t \"%m %r\" %s" +;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%" + +; The log file for slow requests +; Default Value: not set +; Note: slowlog is mandatory if request_slowlog_timeout is set +;slowlog = log/$pool.log.slow + +; The timeout for serving a single request after which a PHP backtrace will be +; dumped to the 'slowlog' file. A value of '0s' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_slowlog_timeout = 0 + +; Depth of slow log stack trace. +; Default Value: 20 +;request_slowlog_trace_depth = 20 + +; The timeout for serving a single request after which the worker process will +; be killed. This option should be used when the 'max_execution_time' ini option +; does not stop script execution for some reason. A value of '0' means 'off'. +; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) +; Default Value: 0 +;request_terminate_timeout = 0 + +; The timeout set by 'request_terminate_timeout' ini option is not engaged after +; application calls 'fastcgi_finish_request' or when application has finished and +; shutdown functions are being called (registered via register_shutdown_function). +; This option will enable timeout limit to be applied unconditionally +; even in such cases. +; Default Value: no +;request_terminate_timeout_track_finished = no + +; Set open file descriptor rlimit. +; Default Value: system defined value +;rlimit_files = 1024 + +; Set max core size rlimit. +; Possible Values: 'unlimited' or an integer greater or equal to 0 +; Default Value: system defined value +;rlimit_core = 0 + +; Chroot to this directory at the start. This value must be defined as an +; absolute path. When this value is not set, chroot is not used. +; Note: you can prefix with '$prefix' to chroot to the pool prefix or one +; of its subdirectories. If the pool prefix is not set, the global prefix +; will be used instead. +; Note: chrooting is a great security feature and should be used whenever +; possible. However, all PHP paths will be relative to the chroot +; (error_log, sessions.save_path, ...). +; Default Value: not set +;chroot = + +; Chdir to this directory at the start. +; Note: relative path can be used. +; Default Value: current directory or / when chroot +;chdir = /var/www + +; Redirect worker stdout and stderr into main error log. If not set, stdout and +; stderr will be redirected to /dev/null according to FastCGI specs. +; Note: on highloaded environement, this can cause some delay in the page +; process time (several ms). +; Default Value: no +;catch_workers_output = yes + +; Decorate worker output with prefix and suffix containing information about +; the child that writes to the log and if stdout or stderr is used as well as +; log level and time. This options is used only if catch_workers_output is yes. +; Settings to "no" will output data as written to the stdout or stderr. +; Default value: yes +;decorate_workers_output = no + +; Clear environment in FPM workers +; Prevents arbitrary environment variables from reaching FPM worker processes +; by clearing the environment in workers before env vars specified in this +; pool configuration are added. +; Setting to "no" will make all environment variables available to PHP code +; via getenv(), $_ENV and $_SERVER. +; Default Value: yes +;clear_env = no + +; Limits the extensions of the main script FPM will allow to parse. This can +; prevent configuration mistakes on the web server side. You should only limit +; FPM to .php extensions to prevent malicious users to use other extensions to +; execute php code. +; Note: set an empty value to allow all extensions. +; Default Value: .php +;security.limit_extensions = .php .php3 .php4 .php5 .php7 + +; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from +; the current environment. +; Default Value: clean env +;env[HOSTNAME] = $HOSTNAME +;env[PATH] = /usr/local/bin:/usr/bin:/bin +;env[TMP] = /tmp +;env[TMPDIR] = /tmp +;env[TEMP] = /tmp + +; Additional php.ini defines, specific to this pool of workers. These settings +; overwrite the values previously defined in the php.ini. The directives are the +; same as the PHP SAPI: +; php_value/php_flag - you can set classic ini defines which can +; be overwritten from PHP call 'ini_set'. +; php_admin_value/php_admin_flag - these directives won't be overwritten by +; PHP call 'ini_set' +; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. + +; Defining 'extension' will load the corresponding shared extension from +; extension_dir. Defining 'disable_functions' or 'disable_classes' will not +; overwrite previously defined php.ini values, but will append the new value +; instead. + +; Note: path INI options can be relative and will be expanded with the prefix +; (pool, global or /usr/local) + +; Default Value: nothing is defined by default except the values in php.ini and +; specified at startup with the -d argument +;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com +;php_flag[display_errors] = off +;php_admin_value[error_log] = /var/log/fpm-php.www.log +;php_admin_flag[log_errors] = on +;php_admin_value[memory_limit] = 32M diff --git a/setup/scripts/composer.sh b/setup/scripts/composer.sh new file mode 100644 index 0000000..a2e22b2 --- /dev/null +++ b/setup/scripts/composer.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +sudo apt-get install -y curl php-cli php-mbstring git unzip + +cd ~ +curl -sS https://getcomposer.org/installer -o composer-setup.php + +sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ No newline at end of file diff --git a/setup/scripts/docker.sh b/setup/scripts/docker.sh new file mode 100644 index 0000000..d5b185c --- /dev/null +++ b/setup/scripts/docker.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +echo "INSTALLING DOCKER" +sudo apt-get update +sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y + +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + +sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" + +sudo apt-get update +sudo apt-get install docker-ce docker-ce-cli containerd.io -y + +sudo usermod -aG docker vagrant + +sudo curl -Ls "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose +sudo chmod +x /usr/local/bin/docker-compose +echo "DOCKER INSTALLED" \ No newline at end of file diff --git a/setup/scripts/gitea.sh b/setup/scripts/gitea.sh new file mode 100644 index 0000000..20c3a1c --- /dev/null +++ b/setup/scripts/gitea.sh @@ -0,0 +1,5 @@ +cd ~ +mkdir gitea1 +cp /vagrant/gitea/docker-compose.yml gitea1/docker-compose.yml +cd gitea1 +docker-compose up -d \ No newline at end of file diff --git a/setup/scripts/nginx_proxy_manager.sh b/setup/scripts/nginx_proxy_manager.sh new file mode 100644 index 0000000..fbe73b0 --- /dev/null +++ b/setup/scripts/nginx_proxy_manager.sh @@ -0,0 +1,6 @@ +cd ~ +mkdir nginx_proxy_manager +cp /vagrant/nginx_proxy_manager/docker-compose.yml nginx_proxy_manager/docker-compose.yml +cp /vagrant/nginx_proxy_manager/npm_db.json nginx_proxy_manager/db_config.json +cd nginx_proxy_manager +docker-compose up -d \ No newline at end of file diff --git a/setup/scripts/npm.sh b/setup/scripts/npm.sh new file mode 100644 index 0000000..3a361f8 --- /dev/null +++ b/setup/scripts/npm.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +echo "INSTALLING NODEJS & NPM" +curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - +sudo apt-get install -y nodejs +echo "NODEJS INSTALLED" \ No newline at end of file diff --git a/setup/scripts/php.sh b/setup/scripts/php.sh new file mode 100644 index 0000000..0c80c3c --- /dev/null +++ b/setup/scripts/php.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +echo "INSTALLING PHP" +sudo apt-get update +sudo apt -y install software-properties-common + +sudo add-apt-repository ppa:ondrej/php +sudo apt-get update +sudo apt-get -y install php7.4 +sudo apt-get -y install php-mysql php-xml +sudo phpenmod pdo_mysql +echo "PHP INSTALLED" \ No newline at end of file diff --git a/setup/scripts/portainer.sh b/setup/scripts/portainer.sh new file mode 100644 index 0000000..22e864e --- /dev/null +++ b/setup/scripts/portainer.sh @@ -0,0 +1,2 @@ +docker volume create portainer_data +docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce \ No newline at end of file diff --git a/setup/ubuntu-bionic-18.04-cloudimg-console.log b/setup/ubuntu-bionic-18.04-cloudimg-console.log new file mode 100644 index 0000000..9d741ea --- /dev/null +++ b/setup/ubuntu-bionic-18.04-cloudimg-console.log @@ -0,0 +1,602 @@ +[ 0.000000] Linux version 4.15.0-124-generic (buildd@lgw01-amd64-029) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 (Ubuntu 4.15.0-124.127-generic 4.15.18) +[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-124-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 +[ 0.000000] KERNEL supported cpus: +[ 0.000000] Intel GenuineIntel +[ 0.000000] AMD AuthenticAMD +[ 0.000000] Centaur CentaurHauls +[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' +[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' +[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' +[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 +[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. +[ 0.000000] e820: BIOS-provided physical RAM map: +[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable +[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved +[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved +[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007ffeffff] usable +[ 0.000000] BIOS-e820: [mem 0x000000007fff0000-0x000000007fffffff] ACPI data +[ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved +[ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved +[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved +[ 0.000000] NX (Execute Disable) protection: active +[ 0.000000] SMBIOS 2.5 present. +[ 0.000000] DMI: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 +[ 0.000000] Hypervisor detected: KVM +[ 0.000000] e820: last_pfn = 0x7fff0 max_arch_pfn = 0x400000000 +[ 0.000000] MTRR: Disabled +[ 0.000000] x86/PAT: MTRRs disabled, skipping PAT initialization too. +[ 0.000000] CPU MTRRs all blank - virtualized system. +[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC +[ 0.000000] found SMP MP-table at [mem 0x0009fff0-0x0009ffff] +[ 0.000000] Scanning 1 areas for low memory corruption +[ 0.000000] RAMDISK: [mem 0x35a67000-0x36d2afff] +[ 0.000000] ACPI: Early table checksum verification disabled +[ 0.000000] ACPI: RSDP 0x00000000000E0000 000024 (v02 VBOX ) +[ 0.000000] ACPI: XSDT 0x000000007FFF0030 00003C (v01 VBOX VBOXXSDT 00000001 ASL 00000061) +[ 0.000000] ACPI: FACP 0x000000007FFF00F0 0000F4 (v04 VBOX VBOXFACP 00000001 ASL 00000061) +[ 0.000000] ACPI: DSDT 0x000000007FFF0470 002325 (v02 VBOX VBOXBIOS 00000002 INTL 20100528) +[ 0.000000] ACPI: FACS 0x000000007FFF0200 000040 +[ 0.000000] ACPI: FACS 0x000000007FFF0200 000040 +[ 0.000000] ACPI: APIC 0x000000007FFF0240 000054 (v02 VBOX VBOXAPIC 00000001 ASL 00000061) +[ 0.000000] ACPI: SSDT 0x000000007FFF02A0 0001CC (v01 VBOX VBOXCPUT 00000002 INTL 20100528) +[ 0.000000] No NUMA configuration found +[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000007ffeffff] +[ 0.000000] NODE_DATA(0) allocated [mem 0x7ffc5000-0x7ffeffff] +[ 0.000000] kvm-clock: cpu 0, msr 0:7ff44001, primary cpu clock +[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00 +[ 0.000000] kvm-clock: using sched offset of 3357968792 cycles +[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns +[ 0.000000] Zone ranges: +[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] +[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000007ffeffff] +[ 0.000000] Normal empty +[ 0.000000] Device empty +[ 0.000000] Movable zone start for each node +[ 0.000000] Early memory node ranges +[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff] +[ 0.000000] node 0: [mem 0x0000000000100000-0x000000007ffeffff] +[ 0.000000] Reserved but unavailable: 98 pages +[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000007ffeffff] +[ 0.000000] ACPI: PM-Timer IO Port: 0x4008 +[ 0.000000] IOAPIC[0]: apic_id 1, version 32, address 0xfec00000, GSI 0-23 +[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) +[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level) +[ 0.000000] Using ACPI (MADT) for SMP configuration information +[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs +[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] +[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff] +[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff] +[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff] +[ 0.000000] e820: [mem 0x80000000-0xfebfffff] available for PCI devices +[ 0.000000] Booting paravirtualized kernel on KVM +[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns +[ 0.000000] random: get_random_bytes called from start_kernel+0x99/0x500 with crng_init=0 +[ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1 +[ 0.000000] percpu: Embedded 45 pages/cpu s147456 r8192 d28672 u2097152 +[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes) +[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515961 +[ 0.000000] Policy zone: DMA32 +[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-124-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 +[ 0.000000] Memory: 2015404K/2096696K available (12300K kernel code, 2482K rwdata, 4272K rodata, 2436K init, 2724K bss, 81292K reserved, 0K cma-reserved) +[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 +[ 0.000000] Kernel/User page tables isolation: enabled +[ 0.000000] ftrace: allocating 39402 entries in 154 pages +[ 0.004000] Hierarchical RCU implementation. +[ 0.004000] RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1. +[ 0.004000] Tasks RCU enabled. +[ 0.004000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 +[ 0.004000] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16 +[ 0.004000] Console: colour VGA+ 80x25 +[ 0.004000] console [tty1] enabled +[ 0.004000] console [ttyS0] enabled +[ 0.004000] ACPI: Core revision 20170831 +[ 0.004000] ACPI: 2 ACPI AML tables successfully acquired and loaded +[ 0.004000] APIC: Switch to symmetric I/O mode setup +[ 0.004000] x2apic enabled +[ 0.004000] Switched APIC routing to physical x2apic. +[ 0.004000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 +[ 0.004003] tsc: Detected 3092.858 MHz processor +[ 0.004694] Calibrating delay loop (skipped) preset value.. 6185.71 BogoMIPS (lpj=12371432) +[ 0.005285] pid_max: default: 32768 minimum: 301 +[ 0.006031] Security Framework initialized +[ 0.006680] Yama: becoming mindful. +[ 0.008015] AppArmor: AppArmor initialized +[ 0.009297] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes) +[ 0.010862] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes) +[ 0.012029] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes) +[ 0.013077] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes) +[ 0.014331] process: using mwait in idle threads +[ 0.015087] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024 +[ 0.016002] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4 +[ 0.017013] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization +[ 0.018297] Spectre V2 : Mitigation: Full generic retpoline +[ 0.019153] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch +[ 0.020001] Speculative Store Bypass: Vulnerable +[ 0.020733] SRBDS: Unknown: Dependent on hypervisor status +[ 0.021673] MDS: Mitigation: Clear CPU buffers +[ 0.029382] Freeing SMP alternatives memory: 36K +[ 0.139528] smpboot: CPU0: Intel(R) Core(TM) i7-4770S CPU @ 3.10GHz (family: 0x6, model: 0x3c, stepping: 0x3) +[ 0.140000] Performance Events: unsupported p6 CPU model 60 no PMU driver, software events only. +[ 0.140000] Hierarchical SRCU implementation. +[ 0.140015] NMI watchdog: Perf event create on CPU 0 failed with -2 +[ 0.140954] NMI watchdog: Perf NMI watchdog permanently disabled +[ 0.142159] smp: Bringing up secondary CPUs ... +[ 0.142963] smp: Brought up 1 node, 1 CPU +[ 0.144002] smpboot: Max logical packages: 1 +[ 0.144762] smpboot: Total of 1 processors activated (6185.71 BogoMIPS) +[ 0.145973] devtmpfs: initialized +[ 0.146644] x86/mm: Memory block size: 128MB +[ 0.148010] evm: security.selinux +[ 0.148560] evm: security.SMACK64 +[ 0.149158] evm: security.SMACK64EXEC +[ 0.149760] evm: security.SMACK64TRANSMUTE +[ 0.150446] evm: security.SMACK64MMAP +[ 0.151077] evm: security.apparmor +[ 0.151637] evm: security.ima +[ 0.152002] evm: security.capability +[ 0.152653] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns +[ 0.154167] futex hash table entries: 256 (order: 2, 16384 bytes) +[ 0.155169] pinctrl core: initialized pinctrl subsystem +[ 0.156075] RTC time: 1:29:06, date: 01/30/21 +[ 0.156895] NET: Registered protocol family 16 +[ 0.157643] audit: initializing netlink subsys (disabled) +[ 0.158656] cpuidle: using governor ladder +[ 0.159388] cpuidle: using governor menu +[ 0.160026] ACPI: bus type PCI registered +[ 0.160684] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 +[ 0.161924] PCI: Using configuration type 1 for base access +[ 0.162820] audit: type=2000 audit(1611970151.825:1): state=initialized audit_enabled=0 res=1 +[ 0.164727] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages +[ 0.165917] ACPI: Added _OSI(Module Device) +[ 0.166569] ACPI: Added _OSI(Processor Device) +[ 0.167247] ACPI: Added _OSI(3.0 _SCP Extensions) +[ 0.168003] ACPI: Added _OSI(Processor Aggregator Device) +[ 0.168835] ACPI: Added _OSI(Linux-Dell-Video) +[ 0.169514] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) +[ 0.170311] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics) +[ 0.171300] ACPI: Executed 1 blocks of module-level executable AML code +[ 0.174335] ACPI: Interpreter enabled +[ 0.175125] ACPI: (supports S0 S5) +[ 0.176010] ACPI: Using IOAPIC for interrupt routing +[ 0.176930] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug +[ 0.178372] ACPI: Enabled 2 GPEs in block 00 to 07 +[ 0.184327] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff]) +[ 0.185278] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI] +[ 0.186612] acpi PNP0A03:00: _OSC: not requesting OS control; OS requires [ExtendedConfig ASPM ClockPM MSI] +[ 0.188000] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge. +[ 0.188298] PCI host bridge to bus 0000:00 +[ 0.188928] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] +[ 0.189977] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window] +[ 0.192003] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window] +[ 0.193216] pci_bus 0000:00: root bus resource [mem 0x80000000-0xfdffffff window] +[ 0.194343] pci_bus 0000:00: root bus resource [bus 00-ff] +[ 0.197471] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] +[ 0.198600] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] +[ 0.199591] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] +[ 0.200002] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] +[ 0.219460] pci 0000:00:07.0: quirk: [io 0x4000-0x403f] claimed by PIIX4 ACPI +[ 0.220013] pci 0000:00:07.0: quirk: [io 0x4100-0x410f] claimed by PIIX4 SMB +[ 0.232885] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 9 10 *11) +[ 0.233911] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 9 *10 11) +[ 0.234733] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 *9 10 11) +[ 0.235557] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 9 10 *11) +[ 0.236221] SCSI subsystem initialized +[ 0.236793] pci 0000:00:02.0: vgaarb: setting as boot VGA device +[ 0.237511] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none +[ 0.238593] pci 0000:00:02.0: vgaarb: bridge control possible +[ 0.239301] vgaarb: loaded +[ 0.240001] ACPI: bus type USB registered +[ 0.240517] usbcore: registered new interface driver usbfs +[ 0.241232] usbcore: registered new interface driver hub +[ 0.241882] usbcore: registered new device driver usb +[ 0.242821] EDAC MC: Ver: 3.0.0 +[ 0.243555] PCI: Using ACPI for IRQ routing +[ 0.244203] NetLabel: Initializing +[ 0.244756] NetLabel: domain hash size = 128 +[ 0.245445] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO +[ 0.246313] NetLabel: unlabeled traffic allowed by default +[ 0.247239] clocksource: Switched to clocksource kvm-clock +[ 0.252960] VFS: Disk quotas dquot_6.6.0 +[ 0.253636] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) +[ 0.254821] AppArmor: AppArmor Filesystem Enabled +[ 0.255779] pnp: PnP ACPI init +[ 0.257076] pnp: PnP ACPI: found 3 devices +[ 0.262833] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns +[ 0.264058] NET: Registered protocol family 2 +[ 0.264736] TCP established hash table entries: 16384 (order: 5, 131072 bytes) +[ 0.265693] TCP bind hash table entries: 16384 (order: 6, 262144 bytes) +[ 0.266518] TCP: Hash tables configured (established 16384 bind 16384) +[ 0.267379] UDP hash table entries: 1024 (order: 3, 32768 bytes) +[ 0.268122] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) +[ 0.268959] NET: Registered protocol family 1 +[ 0.269509] pci 0000:00:00.0: Limiting direct PCI/PCI transfers +[ 0.270279] pci 0000:00:01.0: Activating ISA DMA hang workarounds +[ 0.271062] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff] +[ 0.272283] Unpacking initramfs... +[ 0.483606] Freeing initrd memory: 19216K +[ 0.484369] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2c94ec9c62a, max_idle_ns: 440795256414 ns +[ 0.485964] platform rtc_cmos: registered platform RTC device (no PNP device found) +[ 0.487139] Scanning for low memory corruption every 60 seconds +[ 0.488307] Initialise system trusted keyrings +[ 0.489253] Key type blacklist registered +[ 0.489973] workingset: timestamp_bits=36 max_order=19 bucket_order=0 +[ 0.491624] zbud: loaded +[ 0.492397] squashfs: version 4.0 (2009/01/31) Phillip Lougher +[ 0.493383] fuse init (API version 7.26) +[ 0.494531] Key type asymmetric registered +[ 0.495190] Asymmetric key parser 'x509' registered +[ 0.495982] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) +[ 0.497163] io scheduler noop registered +[ 0.497786] io scheduler deadline registered +[ 0.498462] io scheduler cfq registered (default) +[ 0.499340] ACPI: AC Adapter [AC] (on-line) +[ 0.500034] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 +[ 0.501238] ACPI: Power Button [PWRF] +[ 0.501868] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1 +[ 0.503038] ACPI: Sleep Button [SLPF] +[ 0.503762] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled +[ 0.525326] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A +[ 0.527348] Linux agpgart interface v0.103 +[ 0.528791] loop: module loaded +[ 0.529685] scsi host0: ata_piix +[ 0.530269] scsi host1: ata_piix +[ 0.530881] ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xd000 irq 14 +[ 0.531988] ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xd008 irq 15 +[ 0.533422] libphy: Fixed MDIO Bus: probed +[ 0.534100] tun: Universal TUN/TAP device driver, 1.6 +[ 0.534923] PPP generic driver version 2.4.2 +[ 0.535925] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver +[ 0.536989] ehci-pci: EHCI PCI platform driver +[ 0.537725] ehci-platform: EHCI generic platform driver +[ 0.538590] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver +[ 0.539670] ohci-pci: OHCI PCI platform driver +[ 0.540378] ohci-platform: OHCI generic platform driver +[ 0.541153] uhci_hcd: USB Universal Host Controller Interface driver +[ 0.542096] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12 +[ 0.543669] serio: i8042 KBD port at 0x60,0x64 irq 1 +[ 0.544463] serio: i8042 AUX port at 0x60,0x64 irq 12 +[ 0.545268] mousedev: PS/2 mouse device common for all mice +[ 0.546270] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2 +[ 0.547895] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 +[ 0.549445] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram +[ 0.550574] i2c /dev entries driver +[ 0.551241] device-mapper: uevent: version 1.0.3 +[ 0.552070] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com +[ 0.553529] ledtrig-cpu: registered to indicate activity on CPUs +[ 0.554717] NET: Registered protocol family 10 +[ 0.558035] Segment Routing with IPv6 +[ 0.558651] NET: Registered protocol family 17 +[ 0.559370] Key type dns_resolver registered +[ 0.560144] mce: Using 0 MCE banks +[ 0.560742] RAS: Correctable Errors collector initialized. +[ 0.561552] sched_clock: Marking stable (560717103, 0)->(690396691, -129679588) +[ 0.562785] registered taskstats version 1 +[ 0.563456] Loading compiled-in X.509 certificates +[ 0.565634] Loaded X.509 cert 'Build time autogenerated kernel key: be62403dcace2d46f96dafa9f42421c610ef3c2a' +[ 0.567123] zswap: loaded using pool lzo/zbud +[ 0.569609] Key type big_key registered +[ 0.570206] Key type trusted registered +[ 0.571920] Key type encrypted registered +[ 0.572817] AppArmor: AppArmor sha1 policy hashing enabled +[ 0.573740] ima: No TPM chip found, activating TPM-bypass! (rc=-19) +[ 0.574687] ima: Allocated hash algorithm: sha1 +[ 0.575401] evm: HMAC attrs: 0x1 +[ 0.576130] Magic number: 5:253:459 +[ 0.576794] rtc_cmos rtc_cmos: setting system clock to 2021-01-30 01:29:07 UTC (1611970147) +[ 0.578067] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found +[ 0.579005] EDD information not available. +[ 0.719692] Freeing unused kernel image memory: 2436K +[ 0.728049] Write protecting the kernel read-only data: 20480k +[ 0.729891] Freeing unused kernel image memory: 2008K +[ 0.731327] Freeing unused kernel image memory: 1872K +[ 0.740685] x86/mm: Checked W+X mappings: passed, no W+X pages found. +[ 0.742165] x86/mm: Checking user space page tables +[ 0.751010] x86/mm: Checked W+X mappings: passed, no W+X pages found. +Loading, please wait... +starting version 237 +[ 0.828182] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI +[ 0.829254] e1000: Copyright (c) 1999-2006 Intel Corporation. +[ 0.833912] Fusion MPT base driver 3.04.20 +[ 0.834591] Copyright (c) 1999-2008 LSI Corporation +[ 0.844987] Fusion MPT SPI Host driver 3.04.20 +[ 0.874895] AVX2 version of gcm_enc/dec engaged. +[ 0.875618] AES CTR mode by8 optimization enabled +[ 1.046211] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 +[ 1.217356] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 02:60:71:1d:34:36 +[ 1.221652] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection +[ 1.229406] mptbase: ioc0: Initiating bringup +[ 1.325383] ioc0: LSI53C1030 A0: Capabilities={Initiator} +[ 1.572858] scsi host2: ioc0: LSI53C1030 A0, FwRev=00000000h, Ports=1, MaxQ=256, IRQ=20 +[ 1.744830] scsi 2:0:0:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 +[ 1.748108] scsi target2:0:0: Beginning Domain Validation +[ 1.756968] scsi target2:0:0: Domain Validation skipping write tests +[ 1.761315] scsi target2:0:0: Ending Domain Validation +[ 1.765017] scsi target2:0:0: asynchronous +[ 1.768115] random: fast init done +[ 1.771857] scsi 2:0:1:0: Direct-Access VBOX HARDDISK 1.0 PQ: 0 ANSI: 5 +[ 1.777929] scsi target2:0:1: Beginning Domain Validation +[ 1.785506] scsi target2:0:1: Domain Validation skipping write tests +[ 1.787995] scsi target2:0:1: Ending Domain Validation +[ 1.790707] scsi target2:0:1: asynchronous +[ 1.877777] sd 2:0:0:0: Attached scsi generic sg0 type 0 +[ 1.878927] sd 2:0:0:0: [sda] 20971520 512-byte logical blocks: (10.7 GB/10.0 GiB) +[ 1.880218] sd 2:0:0:0: [sda] Write Protect is off +[ 1.881090] sd 2:0:1:0: Attached scsi generic sg1 type 0 +[ 1.881899] sd 2:0:1:0: [sdb] 20480 512-byte logical blocks: (10.5 MB/10.0 MiB) +[ 1.883094] sd 2:0:0:0: [sda] Incomplete mode parameter data +[ 1.883936] sd 2:0:0:0: [sda] Assuming drive cache: write through +[ 1.884865] sd 2:0:1:0: [sdb] Write Protect is off +[ 1.885739] sd 2:0:1:0: [sdb] Incomplete mode parameter data +[ 1.886617] sd 2:0:1:0: [sdb] Assuming drive cache: write through +[ 1.887563] random: systemd-udevd: uninitialized urandom read (16 bytes read) +[ 1.888715] random: systemd-udevd: uninitialized urandom read (16 bytes read) +[ 1.890001] random: systemd-udevd: uninitialized urandom read (16 bytes read) +[ 1.904144] sda: sda1 +[ 1.909880] sd 2:0:0:0: [sda] Attached SCSI disk +[ 1.918991] sd 2:0:1:0: [sdb] Attached SCSI disk +[ 2.163862] e1000 0000:00:08.0 eth1: (PCI:33MHz:32-bit) 08:00:27:28:5f:f4 +[ 2.164929] e1000 0000:00:08.0 eth1: Intel(R) PRO/1000 Network Connection +[ 2.166739] e1000 0000:00:08.0 enp0s8: renamed from eth1 +[ 2.168916] e1000 0000:00:03.0 enp0s3: renamed from eth0 +Begin: Loading essential drivers ... [ 3.516509] raid6: sse2x1 gen() 12336 MB/s +[ 3.564036] raid6: sse2x1 xor() 8372 MB/s +[ 3.612195] raid6: sse2x2 gen() 14291 MB/s +[ 3.660027] raid6: sse2x2 xor() 9460 MB/s +[ 3.708434] raid6: sse2x4 gen() 17077 MB/s +[ 3.756239] raid6: sse2x4 xor() 10769 MB/s +[ 3.804045] raid6: avx2x1 gen() 23433 MB/s +[ 3.852363] raid6: avx2x1 xor() 16183 MB/s +[ 3.900183] raid6: avx2x2 gen() 27142 MB/s +[ 3.948032] raid6: avx2x2 xor() 17025 MB/s +[ 3.996356] raid6: avx2x4 gen() 30089 MB/s +[ 4.044209] raid6: avx2x4 xor() 19577 MB/s +[ 4.044933] raid6: using algorithm avx2x4 gen() 30089 MB/s +[ 4.045801] raid6: .... xor() 19577 MB/s, rmw enabled +[ 4.046568] raid6: using avx2x2 recovery algorithm +[ 4.048865] xor: automatically using best checksumming function avx +[ 4.051018] async_tx: api initialized (async) +done. +Begin: Running /scripts/init-premount ... done. +Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. +Begin: Running /scripts/local-premount ... [ 4.091925] Btrfs loaded, crc32c=crc32c-intel +Scanning for Btrfs filesystems +done. +Warning: fsck not present, so skipping root file system +[ 4.119564] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) +done. +Begin: Running /scripts/local-bottom ... done. +Begin: Running /scripts/init-bottom ... done. +[ 4.296633] ip_tables: (C) 2000-2006 Netfilter Core Team +[ 4.305443] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid) +[ 4.308434] systemd[1]: Detected virtualization oracle. +[ 4.309134] systemd[1]: Detected architecture x86-64. + +Welcome to Ubuntu 18.04.5 LTS! + +[ 4.313601] systemd[1]: Set hostname to . +[ 4.693028] systemd[1]: Reached target System Time Synchronized. +[ OK ] Reached target System Time Synchronized. +[ 4.695217] systemd[1]: Created slice User and Session Slice. +[ OK ] Created slice User and Session Slice. +[ 4.696788] systemd[1]: Started Forward Password Requests to Wall Directory Watch. +[ OK ] Started Forward Password Requests to Wall Directory Watch. +[ 4.698959] systemd[1]: Created slice System Slice. +[ OK ] Created slice System Slice. +[ 4.700304] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. +[ OK ] Listening on /dev/initctl Compatibility Named Pipe. +[ 4.702573] systemd[1]: Listening on udev Control Socket. +[ OK ] Listening on udev Control Socket. +[ OK ] Listening on Journal Socket. + Starting Uncomplicated firewall... + Mounting POSIX Message Queue File System... +[ OK ] Created slice system-serial\x2dgetty.slice. + Starting Remount Root and Kernel File Systems... +[ 4.741170] EXT4-fs (sda1): re-mounted. Opts: (null) + Starting Create list of required st…ce nodes for the current kernel... + Mounting Huge Pages File System... +[ OK ] Listening on Journal Audit Socket. + Starting Load Kernel Modules... +[ OK ] Listening on udev Kernel Socket. +[ OK ] Listening on LVM2 poll daemon socket. + Starting udev Coldplug all Devices... + Starting Set the console keyboard layout... +[ 4.795286] Loading iSCSI transport class v2.0-870. +[ OK ] Listening on Device-mapper event daemon FIFOs. +[ OK ] Set up automount Arbitrary Executab…rmats File System Automount Point. +[ 4.812906] iscsi: registered transport (tcp) +[ 4.829557] iscsi: registered transport (iser) +[ OK ] Listening on Journal Socket (/dev/log). +[ OK ] Reached target User and Group Name Lookups. + Mounting Kernel Debug File System... +[ OK ] Reached target Slices. +[ OK ] Listening on LVM2 metadata daemon socket. + Starting Monitoring of LVM2 mirrors…ng dmeventd or progress polling... +[ OK ] Reached target Swap. +[ OK ] Listening on Network Service Netlink Socket. +[ OK ] Listening on Syslog Socket. + Starting Journal Service... +[ OK ] Started Uncomplicated firewall. +[ OK ] Mounted POSIX Message Queue File System. +[ OK ] Started Remount Root and Kernel File Systems. +[ OK ] Started Create list of required sta…vice nodes for the current kernel. +[ OK ] Mounted Huge Pages File System. +[ OK ] Started Journal Service. +[ OK ] Started Load Kernel Modules. +[ OK ] Mounted Kernel Debug File System. +[ OK ] Started LVM2 metadata daemon. + Mounting FUSE Control File System... + Starting Apply Kernel Variables... + Mounting Kernel Configuration File System... + Starting Create Static Device Nodes in /dev... + Starting Load/Save Random Seed... + Starting Flush Journal to Persistent Storage... +[ OK ] Started Monitoring of LVM2 mirrors,…sing dmeventd or progress polling. +[ OK ] Started udev Coldplug all Devices. +[ OK ] Mounted FUSE Control File System. +[ OK ] Started Apply Kernel Variables. +[ OK ] Mounted Kernel Configuration File System. +[ OK ] Started Load/Save Random Seed. +[ OK ] Started Create Static Device Nodes in /dev. + Starting udev Kernel Device Manager... +[ OK ] Started udev Kernel Device Manager. +[ OK ] Started Flush Journal to Persistent Storage. +[ OK ] Found device /dev/ttyS0. +[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. +[ OK ] Started Set the console keyboard layout. +[ OK ] Reached target Local File Systems (Pre). + Mounting /vagrant... + Mounting /home/vagrant/src... +[ OK ] Reached target Local File Systems. + Starting ebtables ruleset management... + Starting AppArmor initialization... + Starting Create Volatile Files and Directories... + Starting Tell Plymouth To Write Out Runtime Data... + Starting Set console font and keymap... +[ OK ] Started Dispatch Password Requests to Console Directory Watch. +[ OK ] Reached target Local Encrypted Volumes. +[ OK ] Mounted /vagrant. +[FAILED] Failed to mount /home/vagrant/src. +See 'systemctl status home-vagrant-src.mount' for details. +[ OK ] Started Set console font and keymap. +[ OK ] Started Tell Plymouth To Write Out Runtime Data. +[ OK ] Started Create Volatile Files and Directories. + Starting Update UTMP about System Boot/Shutdown... +[ OK ] Started Update UTMP about System Boot/Shutdown. +[ OK ] Started ebtables ruleset management. +[ OK ] Started AppArmor initialization. + Starting Load AppArmor profiles managed internally by snapd... + Starting Initial cloud-init job (pre-networking)... +[ OK ] Started Load AppArmor profiles managed internally by snapd. +[ 7.287956] cloud-init[661]: Cloud-init v. 20.3-2-g371b392c-0ubuntu1~18.04.1 running 'init-local' at Sat, 30 Jan 2021 01:29:14 +0000. Up 7.14 seconds. +[ OK ] Started Initial cloud-init job (pre-networking). +[ OK ] Reached target Network (Pre). + Starting Network Service... +[ OK ] Started Network Service. + Starting Network Name Resolution... + Starting Wait for Network to be Configured... +[ OK ] Started Network Name Resolution. +[ OK ] Reached target Host and Network Name Lookups. +[ OK ] Reached target Network. +[ OK ] Started Wait for Network to be Configured. + Starting Initial cloud-init job (metadata service crawler)... +[ 9.870943] cloud-init[739]: Cloud-init v. 20.3-2-g371b392c-0ubuntu1~18.04.1 running 'init' at Sat, 30 Jan 2021 01:29:16 +0000. Up 9.75 seconds. +[ 9.880405] cloud-init[739]: ci-info: ++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++ +[ 9.881065] cloud-init[739]: ci-info: +--------+------+-----------------------------+---------------+--------+-------------------+ +[ 9.881631] cloud-init[739]: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | +[ 9.882592] cloud-init[739]: ci-info: +--------+------+-----------------------------+---------------+--------+-------------------+ +[ 9.884018] cloud-init[739]: ci-info: | enp0s3 | True | 10.0.2.15 | 255.255.255.0 | global | 02:60:71:1d:34:36 | +[ 9.886924] cloud-init[739]: ci-info: | enp0s3 | True | fe80::60:71ff:fe1d:3436/64 | . | link | 02:60:71:1d:34:36 | +[ 9.889927] cloud-init[739]: ci-info: | enp0s8 | True | 192.168.1.52 | 255.255.255.0 | global | 08:00:27:28:5f:f4 | +[ 9.891827] cloud-init[739]: ci-info: | enp0s8 | True | fe80::a00:27ff:fe28:5ff4/64 | . | link | 08:00:27:28:5f:f4 | +[ 9.894499] cloud-init[739]: ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | +[ 9.897645] cloud-init[739]: ci-info: | lo | True | ::1/128 | . | host | . | +[ 9.912255] cloud-init[739]: ci-info: +--------+------+-----------------------------+---------------+--------+-------------------+ +[ 9.912998] cloud-init[739]: ci-info: ++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++ +[ 9.913814] cloud-init[739]: ci-info: +-------+-------------+----------+-----------------+-----------+-------+ +[ 9.914771] cloud-init[739]: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | +[ 9.916041] cloud-init[739]: ci-info: +-------+-------------+----------+-----------------+-----------+-------+ +[ 9.917572] cloud-init[739]: ci-info: | 0 | 0.0.0.0 | 10.0.2.2 | 0.0.0.0 | enp0s3 | UG | +[ 9.918742] cloud-init[739]: ci-info: | 1 | 10.0.2.0 | 0.0.0.0 | 255.255.255.0 | enp0s3 | U | +[ 9.920364] cloud-init[739]: ci-info: | 2 | 10.0.2.2 | 0.0.0.0 | 255.255.255.255 | enp0s3 | UH | +[ 9.921883] cloud-init[739]: ci-info: | 3 | 192.168.1.0 | 0.0.0.0 | 255.255.255.0 | enp0s8 | U | +[ 9.924245] cloud-init[739]: ci-info: +-------+-------------+----------+-----------------+-----------+-------+ +[ 9.930071] cloud-init[739]: ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++ +[ 9.930515] cloud-init[739]: ci-info: +-------+-------------+---------+-----------+-------+ +[ 9.931213] cloud-init[739]: ci-info: | Route | Destination | Gateway | Interface | Flags | +[ 9.933147] cloud-init[739]: ci-info: +-------+-------------+---------+-----------+-------+ +[ 9.934025] cloud-init[739]: ci-info: | 1 | fe80::/64 | :: | enp0s3 | U | +[ 9.935864] cloud-init[739]: ci-info: | 2 | fe80::/64 | :: | enp0s8 | U | +[ 9.937910] cloud-init[739]: ci-info: | 4 | local | :: | enp0s3 | U | +[ 9.940369] cloud-init[739]: ci-info: | 5 | local | :: | enp0s8 | U | +[ 9.941230] cloud-init[739]: ci-info: | 6 | ff00::/8 | :: | enp0s3 | U | +[ 9.942129] cloud-init[739]: ci-info: | 7 | ff00::/8 | :: | enp0s8 | U | +[ 9.943046] cloud-init[739]: ci-info: +-------+-------------+---------+-----------+-------+ +[ OK ] Started Initial cloud-init job (metadata service crawler). +[ OK ] Reached target System Initialization. +[ OK ] Listening on Open-iSCSI iscsid Socket. +[ OK ] Listening on D-Bus System Message Bus Socket. +[ OK ] Listening on ACPID Listen Socket. +[ OK ] Started Message of the Day. + Starting LXD - unix socket. +[ OK ] Started Clean PHP session files every 30 mins. +[ OK ] Started Discard unused blocks once a week. + Starting Socket activation for snappy daemon. +[ OK ] Listening on UUID daemon activation socket. + Starting Docker Socket for the API. +[ OK ] Started Daily apt download activities. +[ OK ] Started Daily apt upgrade and clean activities. +[ OK ] Started ACPI Events Check. +[ OK ] Started Daily Cleanup of Temporary Directories. +[ OK ] Reached target Timers. +[ OK ] Reached target Paths. +[ OK ] Reached target Cloud-config availability. +[ OK ] Reached target Network is Online. +[ OK ] Reached target Remote File Systems (Pre). +[ OK ] Reached target Remote File Systems. + Starting Availability of block devices... +[ OK ] Listening on LXD - unix socket. +[ OK ] Listening on Socket activation for snappy daemon. +[ OK ] Listening on Docker Socket for the API. +[ OK ] Started Availability of block devices. +[ OK ] Reached target Sockets. +[ OK ] Reached target Basic System. + Starting Permit User Sessions... + Starting Virtualbox guest utils... + Starting Accounts Service... + Starting The Apache HTTP Server... + Starting Dispatcher daemon for systemd-networkd... + Starting LXD - container startup/shutdown... + Starting System Logging Service... + Starting containerd container runtime... +[ OK ] Started Deferred execution scheduler. + Starting OpenBSD Secure Shell server... + Starting LSB: Record successful boot for GRUB... +[ OK ] Started D-Bus System Message Bus. +[ OK ] Started FUSE filesystem for LXC. +[ OK ] Started irqbalance daemon. + Starting Login Service... + Starting Snap Daemon... + Starting LSB: automatic crash report generation... +[ OK ] Started Regular background program processing daemon. +[ OK ] Started System Logging Service. +[ OK ] Started Dispatcher daemon for systemd-networkd. +[ OK ] Started Permit User Sessions. +[ OK ] Started LXD - container startup/shutdown. +[ OK ] Started OpenBSD Secure Shell server. +[ OK ] Started The Apache HTTP Server. +[ OK ] Started Login Service. +[ OK ] Started Unattended Upgrades Shutdown. + Starting Authorization Manager... + Starting Terminate Plymouth Boot Screen... + Starting Hold until boot process finishes up... +[ OK ] Started Terminate Plymouth Boot Screen. +[ OK ] Started Hold until boot process finishes up. + Starting Set console scheme... +[ OK ] Started Serial Getty on ttyS0. +[ OK ] Started LSB: automatic crash report generation. +[ OK ] Started Authorization Manager. +[ OK ] Started Accounts Service. +[ OK ] Started Set console scheme. +[ OK ] Created slice system-getty.slice. +[ OK ] Started Getty on tty1. +[ OK ] Reached target Login Prompts. +[ OK ] Started Virtualbox guest utils. +[ OK ] Started LSB: Record successful boot for GRUB. +[ OK ] Started containerd container runtime. + Starting Docker Application Container Engine... +[ OK ] Started Snap Daemon. + Starting Wait until snapd is fully seeded... +[ OK ] Started Wait until snapd is fully seeded. + Starting Apply the settings specified in cloud-config... +[ OK ] Created slice User Slice of vagrant. + Starting User Manager for UID 1000... +[ OK ] Started Session 1 of user vagrant. +[ OK ] Started User Manager for UID 1000. +[ OK ] Started Apply the settings specified in cloud-config. +[ 12.584376] cloud-init[1212]: Cloud-init v. 20.3-2-g371b392c-0ubuntu1~18.04.1 running 'modules:config' at Sat, 30 Jan 2021 01:29:19 +0000. Up 12.39 seconds. +[ 16.716888] cloud-init[2313]: Cloud-init v. 20.3-2-g371b392c-0ubuntu1~18.04.1 running 'modules:final' at Sat, 30 Jan 2021 01:29:23 +0000. Up 16.59 seconds. +[ 16.718948] cloud-init[2313]: Cloud-init v. 20.3-2-g371b392c-0ubuntu1~18.04.1 finished at Sat, 30 Jan 2021 01:29:23 +0000. Datasource DataSourceNoCloud [seed=/dev/sdb][dsmode=net]. Up 16.71 seconds + +Ubuntu 18.04.5 LTS test ttyS0 + +test login: \ No newline at end of file diff --git a/src/.gitkeep b/src/.gitkeep new file mode 100644 index 0000000..e69de29