├── .gitignore ├── headless.sh ├── start.sh ├── install-16.05-log.txt ├── prepare.sh ├── variadico.xhyve.ubuntu.plist ├── create.sh ├── LICENSE ├── README.md └── desktop-install-fail-log.txt /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | boot 3 | storage.img 4 | *.swp 5 | uuid.xhyve 6 | logs/ 7 | -------------------------------------------------------------------------------- /headless.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eox pipefail 4 | IFS=$'\n\t' 5 | 6 | if [ "$(whoami)" != "root" ]; then 7 | echo "missing sudo" 8 | exit 1 9 | fi 10 | 11 | memgb=2 12 | cpus=1 13 | 14 | /usr/local/bin/xhyve \ 15 | -A \ 16 | -U "$(cat uuid.xhyve)" \ 17 | -c "$cpus" \ 18 | -m "${memgb}G" \ 19 | -s 0,hostbridge \ 20 | -s 2,virtio-net \ 21 | -s 4,virtio-blk,storage.img \ 22 | -f "kexec,boot/vmlinuz-4.4.0-31-generic,boot/initrd.img-4.4.0-31-generic,root=/dev/vda1 ro" 23 | -------------------------------------------------------------------------------- /start.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eox pipefail 4 | IFS=$'\n\t' 5 | 6 | if [ "$(whoami)" != "root" ]; then 7 | echo "missing sudo" 8 | exit 1 9 | fi 10 | 11 | memgb=2 12 | cpus=1 13 | 14 | xhyve \ 15 | -A \ 16 | -U "$(cat uuid.xhyve)" \ 17 | -c "$cpus" \ 18 | -m "${memgb}G" \ 19 | -s 0,hostbridge \ 20 | -s 2,virtio-net \ 21 | -s 4,virtio-blk,storage.img \ 22 | -s 31,lpc \ 23 | -l com1,stdio \ 24 | -f "kexec,boot/vmlinuz-4.4.0-131-generic,boot/initrd.img-4.4.0-131-generic,earlyprintk=serial console=ttyS0 root=/dev/vda1 ro" 25 | -------------------------------------------------------------------------------- /install-16.05-log.txt: -------------------------------------------------------------------------------- 1 | BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash) 2 | Enter 'help' for a list of built-in commands. 3 | 4 | ~ # /sbin/ip addr show enp0s2 5 | 2: enp0s2: mtu 1500 qdisc pfifo_fast qlen 1000 6 | link/ether 6e:7d:9f:a5:49:d0 brd ff:ff:ff:ff:ff:ff 7 | inet 192.168.64.3/24 brd 192.168.64.255 scope global enp0s2 8 | valid_lft forever preferred_lft forever 9 | inet6 fe80::6c7d:9fff:fea5:49d0/64 scope link 10 | valid_lft forever preferred_lft forever 11 | ~ # 12 | 13 | # 192.168.64.3/24 14 | 15 | -------------------------------------------------------------------------------- /prepare.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euo pipefail 4 | IFS=$'\n\t' 5 | 6 | if [ -z "$1" ]; then 7 | echo "missing path to iso" 8 | exit 1 9 | fi 10 | 11 | dd if=/dev/zero of=tmp.iso bs=$[2*1024] count=1 12 | dd if="$1" bs=$[2*1024] skip=1 >> tmp.iso 13 | 14 | diskinfo=$(hdiutil attach tmp.iso) 15 | 16 | set +e 17 | mkdir -p boot 18 | mnt=$(echo "$diskinfo" | perl -ne '/(\/Volumes.*)/ and print $1') 19 | cp "$mnt/install/vmlinuz" boot 20 | cp "$mnt/install/initrd.gz" boot 21 | set -e 22 | 23 | disk=$(echo "$diskinfo" | cut -d' ' -f1) 24 | hdiutil eject "$disk" 25 | rm tmp.iso 26 | -------------------------------------------------------------------------------- /variadico.xhyve.ubuntu.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Label 6 | variadico.xhyve.ubuntu 7 | WorkingDirectory 8 | /Users/dndom/Downloads/xhyve-ubuntu 9 | ProgramArguments 10 | 11 | ./headless.sh 12 | 13 | RunAtLoad 14 | 15 | StandardErrorPath 16 | /Users/dndom/Downloads/xhyve-ubuntu/logs/variadico.xhyve.ubuntu.error.log 17 | StandardOutPath 18 | /Users/dndom/Downloads/xhyve-ubuntu/logs/variadico.xhyve.ubuntu.out.log 19 | 20 | 21 | -------------------------------------------------------------------------------- /create.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -euo pipefail 4 | IFS=$'\n\t' 5 | 6 | if [ -z "$1" ]; then 7 | echo "missing path to iso" 8 | exit 1 9 | fi 10 | 11 | if [ "$(whoami)" != "root" ]; then 12 | echo "missing sudo" 13 | exit 1 14 | fi 15 | 16 | storagegb=16 17 | memgb=2 18 | cpus=1 19 | MB=$[1024*1024] 20 | GB=$[1024*$MB] 21 | 22 | #has to check if it exist do not override it or ... and has to do it once 23 | dd if=/dev/zero of=storage.img bs=$[1*$GB] count=$storagegb 24 | 25 | # cannot point to ~/Downloads/storage.img, or ../ has to run this script outside??? 26 | 27 | xhyve \ 28 | -A \ 29 | -c "$cpus" \ 30 | -m "${memgb}G" \ 31 | -s 0,hostbridge \ 32 | -s 2,virtio-net \ 33 | -s "3,ahci-cd,$1" \ 34 | -s 4,virtio-blk,storage.img \ 35 | -s 31,lpc \ 36 | -l com1,stdio \ 37 | -f "kexec,boot/vmlinuz,boot/initrd.gz,earlyprintk=serial console=ttyS0" 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Jaime Piña 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # macOS Ubuntu 2 | 3 | Install an Ubuntu 16.04 VM on macOS using [xhyve]. 4 | 5 | ## Download ubuntu 6 | 7 | 16.04.1 server work for author and 8 | 16.04.5 works for me 9 | 10 | ## Install xhyve 11 | 12 | ``` 13 | brew install xhyve 14 | ``` 15 | 16 | ## Get booting kernel 17 | 18 | ``` 19 | sudo ./prepare.sh ~/Downloads/ubuntu-16.04.5-server-amd64.iso 20 | ``` 21 | 22 | ## Create storage and boot to ISO 23 | 24 | ``` 25 | sudo ./create.sh ~/Downloads/ubuntu-16.04.5-server-amd64.iso 26 | ``` 27 | 28 | After booting, install Ubuntu just like you normally would. 29 | 30 | Pro tip: Don't resize your terminal while you're going through the installer. 31 | 32 | When you get to this question. 33 | 34 | ``` 35 | Install the GRUB boot loader to the master boot record? 36 | ``` 37 | 38 | Make sure you say, "yes". 39 | 40 | ## Very important DO NOT QUIT Installation 41 | 42 | ### Grab newer kernel from install 43 | 44 | When you get to "Installation complete", select "Go Back". Then, "Execute a 45 | shell". 46 | 47 | Find your current IP address. 48 | 49 | ``` 50 | /sbin/ip addr show enp0s2 51 | 2: enp0s2: mtu 1500 qdisc pfifo_fast qlen 1000 52 | inet 192.168.64.8/24 brd 192.168.64.255 scope global enp0s2 53 | ``` 54 | 55 | Next, we're gonna copy some files back to the host. The exact name of the 56 | following files might be slightly different, depending on when you download the 57 | Ubuntu server ISO. 58 | 59 | In the guest, run this. 60 | 61 | ``` 62 | cd /target/boot 63 | cat initrd.img-4.4.0-131-generic | nc -l -p 1234 64 | # run the host command and make sure the ip addres is right 65 | cat vmlinuz-4.4.0-131-generic | nc -l -p 1234 66 | # run the host command and make sure the ip addres is right 67 | ls -al 68 | # check the size is correct 69 | ``` 70 | 71 | On the host, run this. 72 | 73 | ``` 74 | cd boot/ 75 | nc 192.168.64.8 1234 > initrd.img-4.4.0-131-generic 76 | nc 192.168.64.8 1234 > vmlinuz-4.4.0-131-generic 77 | ls -al 78 | # check the size is correct 79 | cd ../ 80 | ``` 81 | 82 | Now, you can `exit` the shell and finish the installation. 83 | 84 | ## Modify the start.sh 85 | 86 | If the file change e.g. under 16.04.1 it is 4.4.0.31 but 16.04.5, you have modify the start.sh to say it is now 4.4.0.131 87 | 88 | ## Start your new OS 89 | 90 | ``` 91 | sudo ./start.sh 92 | ``` 93 | 94 | ## First steps 95 | 96 | Here are some things you should probably do after logging in. 97 | 98 | ``` 99 | sudo apt-get update 100 | sudo apt-get upgrade -y 101 | sudo apt-get dist-upgrade -y 102 | sudo apt-get install -y xterm 103 | echo "export TERM=xterm-256color" >> $HOME/.bashrc 104 | ``` 105 | 106 | `xterm` is important because it'll install the `resize` command. You'll need to 107 | manually resize the terminal dimensions because we're using a serial TTY or 108 | something. 109 | 110 | The default terminal is `vt220`, which doesn't have colors by default. We're 111 | probably more used to `xterm`. 112 | 113 | Everytime you resize your terminal, you need to run `resize`. Otherwise, your 114 | output will get jacked. 115 | 116 | ## Reboot 117 | 118 | That's it! You don't really need to reboot, but here's what that looks like. 119 | 120 | ``` 121 | jaime@xhyve:~$ sudo poweroff 122 | [ 636.675689] reboot: System halted 123 | jaime@mac:~$ sudo ./start.sh 124 | ``` 125 | 126 | ## Launch Daemons 127 | 128 | The purpose is unclear. But I think it may be because the author want to boot the ubuntu when MacOS reboot. 129 | Not sure it is what you want and hence if you are not sure, there is no need. 130 | And if you need it, you have to modify the file variadico.xhyve.ubuntu.plist as it contains the directory where the file belong 131 | 132 | ``` 133 | sudo chown root variadico.xhyve.ubuntu.plist 134 | sudo ln -s $(pwd)/variadico.xhyve.ubuntu.plist /Library/LaunchDaemons/ 135 | sudo launchctl load /Library/LaunchDaemons/variadico.xhyve.ubuntu.plist 136 | 137 | # Verify status 138 | sudo launchctl list | grep "xhyve" 139 | 140 | # Stop 141 | sudo launchctl unload /Library/LaunchDaemons/variadico.xhyve.ubuntu.plist 142 | ``` 143 | 144 | 145 | [xhyve]: https://github.com/mist64/xhyve 146 | -------------------------------------------------------------------------------- /desktop-install-fail-log.txt: -------------------------------------------------------------------------------- 1 | Need to use sudo ... 2 | and not sure about 1801 but 1605 work 3 | 4 | Last login: Wed Dec 19 17:39:02 on ttys000 5 | TERM_PROGRAM=Apple_Terminal 6 | TERM=xterm-256color 7 | SHELL=/bin/bash 8 | TMPDIR=/var/folders/1f/9n7tl2sn5x91ypygv3t4hh440000gn/T/ 9 | CONDA_SHLVL=1 10 | Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.Z8uKKAfIcX/Render 11 | CONDA_PROMPT_MODIFIER= 12 | TERM_PROGRAM_VERSION=404.1 13 | TERM_SESSION_ID=C31A67F2-09D7-4700-8071-1B10E81BF5A7 14 | USER=dndom 15 | CONDA_EXE=/Users/dndom/anaconda3/bin/conda 16 | SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.nGOUGVOEY0/Listeners 17 | PATH=/Developer/NVIDIA/CUDA-10.0/bin:/Users/dndom/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public 18 | CONDA_PREFIX=/Users/dndom/anaconda3 19 | PWD=/Users/dndom/Documents/GitHub/xhyve-ubuntu 20 | XPC_FLAGS=0x0 21 | XPC_SERVICE_NAME=0 22 | SHLVL=2 23 | HOME=/Users/dndom 24 | CONDA_PYTHON_EXE=/Users/dndom/anaconda3/bin/python 25 | LOGNAME=dndom 26 | LC_CTYPE=UTF-8 27 | CONDA_DEFAULT_ENV=base 28 | _=/usr/bin/printenv 29 | dndom-mbp2013:xhyve-ubuntu dndom$ ls 30 | LICENSE prepare.sh 31 | README.md start.sh 32 | create.sh variadico.xhyve.ubuntu.plist 33 | headless.sh 34 | dndom-mbp2013:xhyve-ubuntu dndom$ ./prepare.sh ~/Downloads/ubuntu-16.04.1-server-amd64.iso 35 | 1+0 records in 36 | 1+0 records out 37 | 2048 bytes transferred in 0.000060 secs (34087042 bytes/sec) 38 | dd: /Users/dndom/Downloads/ubuntu-16.04.1-server-amd64.iso: No such file or directory 39 | dndom-mbp2013:xhyve-ubuntu dndom$ ./prepare.sh ~/Downloads/ubuntu-16.04.1-server-amd64.iso 40 | 1+0 records in 41 | 1+0 records out 42 | 2048 bytes transferred in 0.000058 secs (35349525 bytes/sec) 43 | dd: /Users/dndom/Downloads/ubuntu-16.04.1-server-amd64.iso: No such file or directory 44 | dndom-mbp2013:xhyve-ubuntu dndom$ ./prepare.sh ~/Downloads/ubuntu-18.04.1-desktop-amd64.iso 45 | 1+0 records in 46 | 1+0 records out 47 | 2048 bytes transferred in 0.000057 secs (35941149 bytes/sec) 48 | 953783+0 records in 49 | 953783+0 records out 50 | 1953347584 bytes transferred in 13.730055 secs (142268010 bytes/sec) 51 | cp: /Volumes/Ubuntu 18.04.1 L/install/vmlinuz: No such file or directory 52 | cp: /Volumes/Ubuntu 18.04.1 L/install/initrd.gz: No such file or directory 53 | "disk4" unmounted. 54 | "disk4" ejected. 55 | dndom-mbp2013:xhyve-ubuntu dndom$ sudo ./create.sh ~/Downloads/ubuntu-18.04.1-desktop-amd64.iso 56 | Password: 57 | 16+0 records in 58 | 16+0 records out 59 | 17179869184 bytes transferred in 60.012046 secs (286273678 bytes/sec) 60 | kexec: failed to load kernel boot/vmlinuz 61 | ./create.sh: line 34: 21906 Abort trap: 6 xhyve -A -c "$cpus" -m "${memgb}G" -s 0,hostbridge -s 2,virtio-net -s "3,ahci-cd,$1" -s 4,virtio-blk,storage.img -s 31,lpc -l com1,stdio -f "kexec,boot/vmlinuz,boot/initrd.gz,earlyprintk=serial console=ttyS0" 62 | dndom-mbp2013:xhyve-ubuntu dndom$ LICENSE prepare.sh 63 | README.md start.sh 64 | boot storage.img 65 | create.sh variadico.xhyve.ubuntu.plist 66 | headless.sh 67 | dndom-mbp2013:xhyve-ubuntu dndom$ LICENSEprepare.sh 68 | README.md start.sh 69 | boot storage.img 70 | create.sh variadico.xhyve.ubuntu.plist 71 | headless.sh 72 | dndom-mbp2013:xhyve-ubuntu dndom$ LICENSE prepare.sh 73 | README.md start.sh 74 | boot storage.img 75 | create.sh variadico.xhyve.ubuntu.plist 76 | headless.sh 77 | dndom-mbp2013:xhyve-ubuntu dndom$ LICENSE prepare.sh 78 | README.md start.sh 79 | boot storage.img 80 | create.sh variadico.xhyve.ubuntu.plist 81 | headless.sh 82 | dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ LICENSE prepare.sh 83 | README.md start.sh 84 | boot storage.img 85 | create.sh variadico.xhyve.ubuntu.plist 86 | headless.sh 87 | dndom-mbp2013:xhyve-ubuntu dndom$ LICENSE prepare.sh 88 | README.md start.sh 89 | boot storage.img 90 | create.sh variadico.xhyve.ubuntu.plist 91 | headless.sh 92 | dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ dndom-mbp2013:xhyve-ubuntu dndom$ 93 | 94 | 95 | 96 | 97 | Last login: Tue Dec 18 22:29:13 on ttys000 98 | TERM_PROGRAM=Apple_Terminal 99 | SHELL=/bin/bash 100 | TERM=xterm-256color 101 | TMPDIR=/var/folders/1f/9n7tl2sn5x91ypygv3t4hh440000gn/T/ 102 | CONDA_SHLVL=1 103 | Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.Z8uKKAfIcX/Render 104 | CONDA_PROMPT_MODIFIER= 105 | TERM_PROGRAM_VERSION=404.1 106 | TERM_SESSION_ID=EC578A6C-7CDD-41D1-B6E1-8C3B53BDD5B9 107 | USER=dndom 108 | CONDA_EXE=/Users/dndom/anaconda3/bin/conda 109 | SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.nGOUGVOEY0/Listeners 110 | PATH=/Developer/NVIDIA/CUDA-10.0/bin:/Users/dndom/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public 111 | CONDA_PREFIX=/Users/dndom/anaconda3 112 | PWD=/Users/dndom 113 | XPC_FLAGS=0x0 114 | XPC_SERVICE_NAME=0 115 | HOME=/Users/dndom 116 | SHLVL=2 117 | CONDA_PYTHON_EXE=/Users/dndom/anaconda3/bin/python 118 | LOGNAME=dndom 119 | LC_CTYPE=UTF-8 120 | CONDA_DEFAULT_ENV=base 121 | _=/usr/bin/printenv 122 | dndom-mbp2013:~ dndom$ brew install --HEAD xhyve 123 | Updating Homebrew... 124 | ==> Auto-updated Homebrew! 125 | Updated 1 tap (homebrew/core). 126 | ==> New Formulae 127 | dav1d gambit-scheme interactive-rebase-tool 128 | dnscontrol goreman postgresql@10 129 | ==> Updated Formulae 130 | cmake ✔ gnome-latex opam 131 | meson ✔ gnupg open-mpi 132 | aircrack-ng go opencoarrays 133 | alexjs go-bindata openfortivpn 134 | amazon-ecs-cli go@1.10 openmsx 135 | ammonite-repl gobject-introspection osmium-tool 136 | angle-grinder gocryptfs osrm-backend 137 | angular-cli godep packer 138 | ansible goenv paket 139 | ansifilter goreleaser pandoc-citeproc 140 | apache-geode gpsbabel parallelstl 141 | arangodb grafana pdftoedn 142 | aws-sdk-cpp grpc pdftoipe 143 | awslogs gstreamermm petsc 144 | b2-tools gtk+3 petsc-complex 145 | ballerina gtkmm3 phoronix-test-suite 146 | basex gupnp-tools phpmyadmin 147 | bcal haproxy phpunit 148 | bigloo healpix picard-tools 149 | binaryen helmfile pixman 150 | bind highlight platformio 151 | bitrise hub plplot 152 | blink1 hyperfine pmd 153 | bundletool icemon pngquant 154 | cabextract imagemagick poppler 155 | cake immortal presto 156 | catimg influxdb protobuf 157 | ceres-solver jboss-forge pulumi 158 | certbot jenkins pumba 159 | cfitsio jhipster qbs 160 | chakra jsonnet qemu 161 | checkbashisms kapacitor qpid-proton 162 | chronograf kibana redis 163 | circleci kotlin riemann-client 164 | citus kubeless rke 165 | clblast kubernetes-cli rustup-init 166 | clojure leiningen sbcl 167 | cockroach leptonica scalapack 168 | conan libassuan sceptre 169 | convox libatomic_ops scipy 170 | cp2k libbi shfmt 171 | cppcheck libbladerf skinny 172 | create-dmg libdazzle skopeo 173 | curl libedit solr 174 | curl-openssl libgpg-error source-to-image 175 | cython libjwt spotbugs 176 | dasht libosmium sqlcipher 177 | dependency-check libphonenumber stellar-core 178 | diff-pdf libpng sundials 179 | dmd libressl swiftformat 180 | dnscrypt-wrapper librsvg syncthing 181 | docfx libtins sysbench 182 | docker libuv telegraf 183 | docker-machine-nfs libvirt terraform 184 | doctl libvmaf tippecanoe 185 | dub libxmlsec1 tmuxinator-completion 186 | dwm logtalk tomcat 187 | easyengine lxc tomee-webprofile 188 | eigen macvim topgrade 189 | elasticsearch@5.6 makensis tox 190 | envconsul mapserver traefik 191 | erlang media-info typescript 192 | erlang@20 mesa ubertooth 193 | eslint minio ucloud 194 | ethereum minio-mc vert.x 195 | exploitdb mint vim 196 | fauna-shell mkvtoolnix vips 197 | firebase-cli mosquitto vte3 198 | fluent-bit mruby weaver 199 | flyway mutt webpack 200 | fn mycli wolfssl 201 | fonttools nativefier wp-cli 202 | freetds nghttp2 wtf 203 | frugal nmh xcodegen 204 | fx node xsimd 205 | gcab node-build xtensor 206 | geos node@10 you-get 207 | git node@8 youtube-dl 208 | git-archive-all nuxeo zim 209 | git-standup nwchem znc 210 | github-markdown-toc octave zola 211 | gitlab-runner oniguruma 212 | gmsh opa 213 | ==> Deleted Formulae 214 | apple-gcc42 gradle@2.14 215 | 216 | ==> Cloning https://github.com/machyve/xhyve.git 217 | Cloning into '/Users/dndom/Library/Caches/Homebrew/xhyve--git'... 218 | ==> Checking out branch master 219 | Already on 'master' 220 | Your branch is up to date with 'origin/master'. 221 | ==> make 222 | Error: An exception occurred within a child process: 223 | Errno::ENOENT: No such file or directory - xhyverun.sh 224 | dndom-mbp2013:~ dndom$ ls 225 | Applications Pictures 226 | Creative Cloud Files Public 227 | Desktop Samsung 228 | Documents anaconda3 229 | Downloads j64-807-user 230 | Library lc0 231 | Movies leela-zero 232 | Music leela-zero.zip 233 | NVIDIA_CUDA-10.0_Samples 234 | dndom-mbp2013:~ dndom$ brew install xhyve 235 | Updating Homebrew... 236 | ==> Downloading https://homebrew.bintray.com/bottles/xhyve-0.2.0.high_sierra.bot 237 | ######################################################################## 100.0% 238 | ==> Pouring xhyve-0.2.0.high_sierra.bottle.1.tar.gz 239 | 🍺 /usr/local/Cellar/xhyve/0.2.0: 10 files, 11.2MB 240 | dndom-mbp2013:~ dndom$ 241 | 242 | 243 | ============ububtu 18 244 | 245 | sudo ./create.sh ~/Downloads/ubuntu-18.04.1-server-amd64.iso 246 | [ 0.000000] Linux version 4.15.0-29-generic (buildd@lgw01-amd64-057) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 (Ubuntu 4.15.0-29.31-generic 4.15.18) 247 | [ 0.000000] Command line: earlyprintk=serial console=ttyS0 248 | [ 0.000000] KERNEL supported cpus: 249 | [ 0.000000] Intel GenuineIntel 250 | [ 0.000000] AMD AuthenticAMD 251 | [ 0.000000] Centaur CentaurHauls 252 | [ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' 253 | [ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' 254 | [ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' 255 | [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 256 | [ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. 257 | [ 0.000000] e820: BIOS-provided physical RAM map: 258 | [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable 259 | [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007fffffff] usable 260 | [ 0.000000] bootconsole [earlyser0] enabled 261 | [ 0.000000] ERROR: earlyprintk= earlyser already used 262 | [ 0.000000] NX (Execute Disable) protection: active 263 | [ 0.000000] SMBIOS 2.6 present. 264 | [ 0.000000] DMI: BHYVE, BIOS 1.00 03/14/2014 265 | [ 0.000000] e820: last_pfn = 0x80000 max_arch_pfn = 0x400000000 266 | [ 0.000000] MTRR: Disabled 267 | [ 0.000000] x86/PAT: MTRRs disabled, skipping PAT initialization too. 268 | [ 0.000000] CPU MTRRs all blank - virtualized system. 269 | [ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC 270 | Memory KASLR using RDRAND RDTSC... 271 | [ 0.000000] found SMP MP-table at [mem 0x000f0000-0x000f000f] mapped at [ (ptrval)] 272 | [ 0.000000] Scanning 1 areas for low memory corruption 273 | [ 0.000000] RAMDISK: [mem 0x0204e000-0x02fc2fff] 274 | [ 0.000000] ACPI: Early table checksum verification disabled 275 | [ 0.000000] ACPI: RSDP 0x00000000000F2400 000024 (v02 BHYVE ) 276 | [ 0.000000] ACPI: XSDT 0x00000000000F2480 000044 (v01 BHYVE BVXSDT 00000001 INTL 20140828) 277 | [ 0.000000] ACPI: APIC 0x00000000000F2500 00005A (v01 BHYVE BVMADT 00000001 INTL 20140828) 278 | [ 0.000000] ACPI: FACP 0x00000000000F2600 00010C (v05 BHYVE BVFACP 00000001 INTL 20140828) 279 | [ 0.000000] ACPI: DSDT 0x00000000000F2800 000A2D (v02 BHYVE BVDSDT 00000001 INTL 20140828) 280 | [ 0.000000] ACPI: FACS 0x00000000000F27C0 000040 281 | [ 0.000000] ACPI: FACS 0x00000000000F27C0 000040 282 | [ 0.000000] ACPI: HPET 0x00000000000F2740 000038 (v01 BHYVE BVHPET 00000001 INTL 20140828) 283 | [ 0.000000] ACPI: MCFG 0x00000000000F2780 00003C (v01 BHYVE BVMCFG 00000001 INTL 20140828) 284 | [ 0.000000] Setting APIC routing to physical flat. 285 | [ 0.000000] No NUMA configuration found 286 | [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000007fffffff] 287 | [ 0.000000] NODE_DATA(0) allocated [mem 0x7ffd5000-0x7fffffff] 288 | [ 0.000000] tsc: Using PIT calibration value 289 | [ 0.000000] Zone ranges: 290 | [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff] 291 | [ 0.000000] DMA32 [mem 0x0000000001000000-0x000000007fffffff] 292 | [ 0.000000] Normal empty 293 | [ 0.000000] Device empty 294 | [ 0.000000] Movable zone start for each node 295 | [ 0.000000] Early memory node ranges 296 | [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff] 297 | [ 0.000000] node 0: [mem 0x0000000000100000-0x000000007fffffff] 298 | [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000007fffffff] 299 | [ 0.000000] Reserved but unavailable: 98 pages 300 | [ 0.000000] ACPI: PM-Timer IO Port: 0x408 301 | [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1]) 302 | [ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 303 | [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge) 304 | [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level) 305 | [ 0.000000] Using ACPI (MADT) for SMP configuration information 306 | [ 0.000000] ACPI: HPET id: 0x80860701 base: 0xfed00000 307 | [ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs 308 | [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] 309 | [ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x000fffff] 310 | [ 0.000000] e820: [mem 0x80000000-0xffffffff] available for PCI devices 311 | [ 0.000000] Booting paravirtualized kernel on bare hardware 312 | [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns 313 | [ 0.000000] random: get_random_bytes called from start_kernel+0x99/0x4fd with crng_init=0 314 | [ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1 315 | [ 0.000000] percpu: Embedded 46 pages/cpu @ (ptrval) s151552 r8192 d28672 u2097152 316 | [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515977 317 | [ 0.000000] Policy zone: DMA32 318 | [ 0.000000] Kernel command line: earlyprintk=serial console=ttyS0 319 | [ 0.000000] Memory: 2019720K/2096760K available (12300K kernel code, 2470K rwdata, 4240K rodata, 2408K init, 2416K bss, 77040K reserved, 0K cma-reserved) 320 | [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 321 | [ 0.000000] Kernel/User page tables isolation: enabled 322 | [ 0.000000] ftrace: allocating 39092 entries in 153 pages 323 | [ 0.000000] Hierarchical RCU implementation. 324 | [ 0.000000] RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1. 325 | [ 0.000000] Tasks RCU enabled. 326 | [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 327 | [ 0.000000] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16 328 | [ 0.000000] Console: colour dummy device 80x25 329 | [ 0.000000] console [ttyS0] enabled 330 | [ 0.000000] console [ttyS0] enabled 331 | [ 0.000000] bootconsole [earlyser0] disabled 332 | [ 0.000000] bootconsole [earlyser0] disabled 333 | [ 0.000000] ACPI: Core revision 20170831 334 | [ 0.000000] ACPI BIOS Warning (bug): Incorrect checksum in table [DSDT] - 0x00, should be 0x5D (20170831/tbprint-211) 335 | [ 0.000000] ACPI: 1 ACPI AML tables successfully acquired and loaded 336 | [ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044627 ns 337 | [ 0.000000] APIC: Switch to symmetric I/O mode setup 338 | [ 0.000000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 339 | [ 0.028000] tsc: PIT calibration matches PMTIMER. 2 loops 340 | [ 0.028000] tsc: Detected 2691.773 MHz processor 341 | [ 0.028000] Calibrating delay loop (skipped), value calculated using timer frequency.. 5383.54 BogoMIPS (lpj=10767092) 342 | [ 0.032003] pid_max: default: 32768 minimum: 301 343 | [ 0.032864] Security Framework initialized 344 | [ 0.033588] Yama: becoming mindful. 345 | [ 0.034256] AppArmor: AppArmor initialized 346 | [ 0.040000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes) 347 | [ 0.042204] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes) 348 | [ 0.044089] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes) 349 | [ 0.045325] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes) 350 | [ 0.047164] CPU: Physical Processor ID: 0 351 | rdmsr to register 0x140 on vcpu 0 352 | [ 0.048101] mce: CPU supports 0 MCE banks 353 | [ 0.048862] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 8 354 | [ 0.049821] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32, 1GB 0 355 | [ 0.052003] Spectre V2 : Mitigation: Full generic retpoline 356 | [ 0.052975] Speculative Store Bypass: Vulnerable 357 | [ 0.068000] Freeing SMP alternatives memory: 36K 358 | [ 0.072000] smpboot: CPU0: Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz (family: 0x6, model: 0x3a, stepping: 0x9) 359 | [ 0.072000] Performance Events: unsupported p6 CPU model 58 no PMU driver, software events only. 360 | [ 0.072000] Hierarchical SRCU implementation. 361 | [ 0.072659] NMI watchdog: Perf event create on CPU 0 failed with -2 362 | [ 0.073781] NMI watchdog: Perf NMI watchdog permanently disabled 363 | [ 0.074961] smp: Bringing up secondary CPUs ... 364 | [ 0.076005] smp: Brought up 1 node, 1 CPU 365 | [ 0.076718] smpboot: Max logical packages: 1 366 | [ 0.077469] smpboot: Total of 1 processors activated (5383.54 BogoMIPS) 367 | [ 0.079342] devtmpfs: initialized 368 | [ 0.080104] x86/mm: Memory block size: 128MB 369 | [ 0.081936] evm: security.selinux 370 | [ 0.082699] evm: security.SMACK64 371 | [ 0.083459] evm: security.SMACK64EXEC 372 | [ 0.084004] evm: security.SMACK64TRANSMUTE 373 | [ 0.084936] evm: security.SMACK64MMAP 374 | [ 0.085787] evm: security.apparmor 375 | [ 0.086567] evm: security.ima 376 | [ 0.087251] evm: security.capability 377 | [ 0.088145] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns 378 | [ 0.089987] futex hash table entries: 256 (order: 2, 16384 bytes) 379 | [ 0.091280] pinctrl core: initialized pinctrl subsystem 380 | [ 0.092304] RTC time: 10:15:48, date: 12/19/18 381 | [ 0.093345] NET: Registered protocol family 16 382 | [ 0.094219] audit: initializing netlink subsys (disabled) 383 | [ 0.096234] cpuidle: using governor ladder 384 | [ 0.096957] cpuidle: using governor menu 385 | [ 0.097711] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it 386 | [ 0.099025] ACPI: bus type PCI registered 387 | [ 0.099731] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 388 | [ 0.100005] audit: type=2000 audit(1545214547.096:1): state=initialized audit_enabled=0 res=1 389 | [ 0.101728] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000) 390 | [ 0.103357] PCI: not using MMCONFIG 391 | [ 0.104005] PCI: Using configuration type 1 for base access 392 | [ 0.106613] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages 393 | [ 0.108479] ACPI: Added _OSI(Module Device) 394 | [ 0.109246] ACPI: Added _OSI(Processor Device) 395 | [ 0.110058] ACPI: Added _OSI(3.0 _SCP Extensions) 396 | [ 0.112013] ACPI: Added _OSI(Processor Aggregator Device) 397 | [ 0.113038] ACPI: Added _OSI(Linux-Dell-Video) 398 | [ 0.114549] ACPI: Interpreter enabled 399 | [ 0.115266] ACPI: (supports S0 S5) 400 | [ 0.116038] ACPI: Using IOAPIC for interrupt routing 401 | [ 0.116950] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000) 402 | [ 0.118651] PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in ACPI motherboard resources 403 | [ 0.120012] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug 404 | [ 0.123622] ACPI: PCI Root Bridge [PC00] (domain 0000 [bus 00]) 405 | [ 0.124008] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI] 406 | [ 0.125431] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM 407 | [ 0.126597] acpi PNP0A03:00: host bridge window [mem 0x00000000-0xd0000fffff window] ([0x1000000000-0xd0000fffff] ignored, not CPU addressable) 408 | [ 0.128003] acpi PNP0A03:00: host bridge window expanded to [mem 0x00000000-0xfffffffff window]; [mem 0x00000000-0xfffffffff window] ignored 409 | [ 0.130229] PCI host bridge to bus 0000:00 410 | [ 0.132004] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window] 411 | [ 0.133183] pci_bus 0000:00: root bus resource [io 0x0d00-0x1fff window] 412 | [ 0.134384] pci_bus 0000:00: root bus resource [io 0x2000-0x209f window] 413 | [ 0.136005] pci_bus 0000:00: root bus resource [mem 0x00000000-0xfffffffff window] 414 | [ 0.137316] pci_bus 0000:00: root bus resource [bus 00] 415 | [ 0.143463] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 9 10 11 12 14 15) 416 | [ 0.144211] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 *6 7 9 10 11 12 14 15) 417 | [ 0.145652] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 *7 9 10 11 12 14 15) 418 | [ 0.148119] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. 419 | [ 0.149797] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. 420 | [ 0.152111] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. 421 | [ 0.153672] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. 422 | [ 0.155224] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled. 423 | [ 0.156512] SCSI subsystem initialized 424 | [ 0.157371] vgaarb: loaded 425 | [ 0.158029] ACPI: bus type USB registered 426 | [ 0.158766] usbcore: registered new interface driver usbfs 427 | [ 0.160013] usbcore: registered new interface driver hub 428 | [ 0.160979] usbcore: registered new device driver usb 429 | [ 0.161984] EDAC MC: Ver: 3.0.0 430 | [ 0.162898] PCI: Using ACPI for IRQ routing 431 | [ 0.265133] NetLabel: Initializing 432 | [ 0.266127] NetLabel: domain hash size = 128 433 | [ 0.268004] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO 434 | [ 0.269661] NetLabel: unlabeled traffic allowed by default 435 | [ 0.271382] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0 436 | [ 0.272003] hpet0: 8 comparators, 32-bit 10.000000 MHz counter 437 | [ 0.275124] clocksource: Switched to clocksource hpet 438 | [ 0.299474] VFS: Disk quotas dquot_6.6.0 439 | [ 0.300228] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) 440 | [ 0.301873] AppArmor: AppArmor Filesystem Enabled 441 | [ 0.302732] pnp: PnP ACPI init 442 | [ 0.303681] system 00:00: [io 0x0220-0x0223] has been reserved 443 | [ 0.304909] system 00:00: [io 0x0224-0x0227] has been reserved 444 | [ 0.305946] system 00:00: [io 0x04d0-0x04d1] has been reserved 445 | [ 0.306977] system 00:00: [io 0x0400-0x0407] has been reserved 446 | [ 0.308035] system 00:00: [mem 0xe0000000-0xefffffff] has been reserved 447 | [ 0.309400] pnp: PnP ACPI: found 4 devices 448 | [ 0.316785] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns 449 | [ 0.318392] pci 0000:00:02.0: BAR 6: assigned [mem 0x80000000-0x800007ff pref] 450 | [ 0.319651] pci 0000:00:03.0: BAR 6: assigned [mem 0x80000800-0x80000fff pref] 451 | [ 0.320161] pci 0000:00:04.0: BAR 6: assigned [mem 0x80001000-0x800017ff pref] 452 | [ 0.322203] pci 0000:00:1f.0: BAR 6: assigned [mem 0x80001800-0x80001fff pref] 453 | [ 0.323513] NET: Registered protocol family 2 454 | [ 0.325236] TCP established hash table entries: 16384 (order: 5, 131072 bytes) 455 | [ 0.326819] TCP bind hash table entries: 16384 (order: 6, 262144 bytes) 456 | [ 0.328323] TCP: Hash tables configured (established 16384 bind 16384) 457 | [ 0.329970] UDP hash table entries: 1024 (order: 3, 32768 bytes) 458 | [ 0.331179] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) 459 | [ 0.332578] NET: Registered protocol family 1 460 | [ 0.333462] pci 0000:00:1f.0: Activating ISA DMA hang workarounds 461 | [ 0.334576] Unpacking initramfs... 462 | [ 0.427008] Initramfs unpacking failed: uncompression error 463 | [ 0.432189] Freeing initrd memory: 15828K 464 | rdmsr to register 0x34 on vcpu 0 465 | [ 0.433170] Scanning for low memory corruption every 60 seconds 466 | [ 0.434832] Initialise system trusted keyrings 467 | [ 0.435621] Key type blacklist registered 468 | [ 0.436448] workingset: timestamp_bits=36 max_order=19 bucket_order=0 469 | [ 0.438552] zbud: loaded 470 | [ 0.439388] squashfs: version 4.0 (2009/01/31) Phillip Lougher 471 | [ 0.440607] fuse init (API version 7.26) 472 | [ 0.442824] Key type asymmetric registered 473 | [ 0.443548] Asymmetric key parser 'x509' registered 474 | [ 0.444422] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246) 475 | [ 0.445812] io scheduler noop registered 476 | [ 0.446507] io scheduler deadline registered 477 | [ 0.447298] io scheduler cfq registered (default) 478 | [ 0.448354] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 479 | [ 0.449681] ACPI: Power Button [PWRF] 480 | [ 0.450615] virtio-pci 0000:00:02.0: virtio_pci: leaving for legacy driver 481 | [ 0.452016] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver 482 | [ 0.453412] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled 483 | [ 0.476941] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A 484 | [ 0.500686] 00:02: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A 485 | [ 0.503326] Linux agpgart interface v0.103 486 | [ 0.505087] loop: module loaded 487 | [ 0.505805] libphy: Fixed MDIO Bus: probed 488 | [ 0.506530] tun: Universal TUN/TAP device driver, 1.6 489 | [ 0.507450] PPP generic driver version 2.4.2 490 | [ 0.508307] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver 491 | [ 0.509447] ehci-pci: EHCI PCI platform driver 492 | [ 0.510236] ehci-platform: EHCI generic platform driver 493 | [ 0.511166] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver 494 | [ 0.512243] ohci-pci: OHCI PCI platform driver 495 | [ 0.513160] ohci-platform: OHCI generic platform driver 496 | [ 0.514088] uhci_hcd: USB Universal Host Controller Interface driver 497 | [ 0.515365] i8042: PNP: No PS/2 controller found. 498 | [ 0.516661] mousedev: PS/2 mouse device common for all mice 499 | [ 0.518294] ACPI Error: Could not enable RealTimeClock event (20170831/evxfevnt-218) 500 | [ 0.519671] ACPI Warning: Could not enable fixed event - RealTimeClock (4) (20170831/evxface-654) 501 | [ 0.521936] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0 502 | [ 0.523170] rtc_cmos 00:03: alarms up to one day, y3k, 114 bytes nvram 503 | [ 0.524447] i2c /dev entries driver 504 | [ 0.525130] device-mapper: uevent: version 1.0.3 505 | [ 0.526065] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com 506 | [ 0.527533] ledtrig-cpu: registered to indicate activity on CPUs 507 | [ 0.528402] NET: Registered protocol family 10 508 | [ 0.530185] Segment Routing with IPv6 509 | [ 0.530865] NET: Registered protocol family 17 510 | [ 0.531739] Key type dns_resolver registered 511 | [ 0.532672] RAS: Correctable Errors collector initialized. 512 | [ 0.533649] sched_clock: Marking stable (532536100, 0)->(614021625, -81485525) 513 | [ 0.535135] registered taskstats version 1 514 | [ 0.535871] Loading compiled-in X.509 certificates 515 | [ 0.537554] Loaded X.509 cert 'Build time autogenerated kernel key: 1cc37f41791529df57507d3747a6804ab53f482b' 516 | [ 0.539364] zswap: loaded using pool lzo/zbud 517 | [ 0.540771] Key type big_key registered 518 | [ 0.541510] Key type trusted registered 519 | [ 0.542380] Key type encrypted registered 520 | [ 0.543147] AppArmor: AppArmor sha1 policy hashing enabled 521 | [ 0.544117] ima: No TPM chip found, activating TPM-bypass! (rc=-19) 522 | [ 0.545296] evm: HMAC attrs: 0x1 523 | [ 0.546180] Magic number: 14:244:275 524 | [ 0.546892] tty tty12: hash matches 525 | [ 0.547512] edac mc: hash matches 526 | [ 0.548408] rtc_cmos 00:03: setting system clock to 2018-12-19 10:15:48 UTC (1545214548) 527 | [ 0.550060] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found 528 | [ 0.551170] EDD information not available. 529 | [ 0.554555] Freeing unused kernel memory: 2408K 530 | [ 0.561006] Write protecting the kernel read-only data: 20480k 531 | [ 0.562408] Freeing unused kernel memory: 2008K 532 | [ 0.566264] Freeing unused kernel memory: 1904K 533 | [ 0.572254] x86/mm: Checked W+X mappings: passed, no W+X pages found. 534 | [ 0.573450] x86/mm: Checking user space page tables 535 | [ 0.579359] x86/mm: Checked W+X mappings: passed, no W+X pages found. 536 | [ 0.580692] Failed to execute /init (error -2) 537 | [ 0.581489] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. 538 | [ 0.583938] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.15.0-29-generic #31-Ubuntu 539 | [ 0.585245] Hardware name: BHYVE, BIOS 1.00 03/14/2014 540 | [ 0.586158] Call Trace: 541 | [ 0.586603] dump_stack+0x63/0x8b 542 | [ 0.587263] ? rest_init+0xa0/0xb0 543 | [ 0.587866] panic+0xe4/0x244 544 | [ 0.588477] ? putname+0x4c/0x60 545 | [ 0.589184] ? rest_init+0xb0/0xb0 546 | [ 0.589901] kernel_init+0xf0/0x110 547 | [ 0.590540] ret_from_fork+0x35/0x40 548 | [ 0.591335] Kernel Offset: 0x3c200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) 549 | [ 0.593302] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. 550 | 551 | 552 | --------------------------------------------------------------------------------