Giter VIP home page Giter VIP logo

vmcli's Introduction

VMCLI

A set of utilities to help you manage VMs with Virtualization.framework

vmctl-demo

Installation

Prerequisites

  • macOS Ventura (13+)
  • XCode.app installed
# make sure xcode command-line tools are installed
xcode-select --install

# run build, install. This will install vmcli and vmctl to /usr/local/bin
make
sudo make install

You have now finished installing vmcli and vmctl

Set environment variable VMCTLDIR to ~/VMs so vmctl knows how to find VMs. If you don't set this, vmctl will use current working directory to find VMs.

echo 'export VMCTLDIR="$HOME/VMs"' >> ~/.zprofile
export VMCTLDIR="$HOME/VMs"

Provision a Ubuntu VM, and install that to ~/VMs. The VM will auto create your user with your ssh public key at ~/.ssh/id_rsa.pub.

make build/vm/ubuntu
mv build/vm/ubuntu "${VMCTLDIR}/ubuntu"

Optionally expand the VM volume, for example to 16G.

dd if=/dev/null of="${VMCTLDIR}/ubuntu/disk.img" bs=1g count=0 seek=16

Optionally edit the VM config for more RAM and/or CPU cores

vi "${VMCTLDIR}/ubuntu/vm.conf"

Start the VM

vmctl start ubuntu

Attach to the serial console, use (CTRL+A - D to quit)

vmctl attach ubuntu

You can use vmctl ip ubuntu to check your VM IP.

Wait for the VM to boot and ssh into the VM

vmctl ssh ubuntu

You should shutdown the VM using ssh within the VM. If that's not an option, you can forcibly shut it down.

vmctl stop ubuntu

Share folders with host

Support for sharing folders with the host was added in macOS 12 (Monterey), and this is enabled if compiled on 12.0 or later.

As of 12.1 the macOS support for this feature seems somewhat unreliable. If you want to try it anyway, use --folder <host path>:<tag> arguments. In the guest, mount these using -t virtiofs <tag> <guest mountpoint>.

If the :<tag> component is omitted, the host path will be used as a tag, but note there is a size limit of 36 UTF-8 bytes for tags.

The shared folder can be made read-only to the guest by adding ro as a third component to the shared folder argument: --folder <host path>:<tag>:ro

For example: in the host, create a foo directory in the VM directory (where the kernel and initrd live), and add this using --folder. For example, add folder=foo to vm.conf, or pass --folder=foo to vmcli directly.

In the guest, ensure /mnt/foo is an empty directory, then sudo mount -t virtiofs foo /mnt/foo.

Known Issues

  • Virtual Machine cannot be started with networking when InternetSharing is already enabled. See #5.

Usage

vmcli

USAGE: vmcli [--cpu-count <cpu-count>] [--memory-size <memory-size>] [--memory-size-suffix <memory-size-suffix>] [--disk <disk> ...] [--cdrom <cdrom> ...] [--folder <folder> ...] [--network <network> ...] [--balloon <balloon>] [--bootloader <bootloader>] [--kernel <kernel>] [--initrd <initrd>] [--cmdline <cmdline>] [--escape-sequence <escape-sequence>]

OPTIONS:
  -c, --cpu-count <cpu-count>
                          CPU count (default: 1)
  -m, --memory-size <memory-size>
                          Memory Bytes (default: 512)
  --memory-size-suffix <memory-size-suffix>
                          Memory Size Suffix (default: MiB)
  -d, --disk <disk>       Disks to use
  --cdrom <cdrom>         CD-ROMs to use
  -f, --folder <folder>   Folders to share (macOS 12.0 or later)
  -n, --network <network> Networks to use. e.g. aa:bb:cc:dd:ee:ff@nat for a nat device, or ...@en0 for bridging to en0. Omit mac address for a
                          generated address. (default: nat)
  --balloon <balloon>     Enable / Disable Memory Ballooning (default: true)
  -b, --bootloader <bootloader>
                          Bootloader to use (default: linux)
  -k, --kernel <kernel>   Kernel to use
  --initrd <initrd>       Initrd to use
  --cmdline <cmdline>     Kernel cmdline to use
  --escape-sequence <escape-sequence>
                          Escape Sequence, when using a tty (default: q)
  -h, --help              Show help information.

vmctl

usage: vmctl {start|stop|attach|ip|ssh} vm
       vmctl list

References

SimpleVM is a proof-of-concept using Virtualization.framework by KhaosT

vftool is a very similar tool written by evansm7 but in Objective-C not Swift.

vmcli's People

Contributors

erjanmx avatar gyf304 avatar heywoodlh avatar nashidau avatar outcoldman avatar sigmaris avatar simonchatts avatar vsnrain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vmcli's Issues

Kernel Panic when using a Network Bridge interface inside VM

When I try using a bridge interface, I always end up with the following kernel panic. Something I miss?

Debin 10
Kernel 5.12

[    1.672712] vmbr0: port 1(enp0s1) entered disabled state
[    1.672824] ------------[ cut here ]------------
[    1.672959] kernel BUG at drivers/net/virtio_net.c:1664!
[    1.673029] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
[    1.673082] Modules linked in: bridge stp llc bonding fuse crct10dif_ce sha3_ce sha3_generic sha512_ce vhost_net vhost tap vhost_iotlb ip_tables x_tables ipv6 dm_mod
[    1.673266] CPU: 5 PID: 421 Comm: ip Tainted: G        W         5.12.12 #1
[    1.673332] pstate: 60400005 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[    1.673436] pc : virtnet_send_command+0x150/0x158
[    1.673487] lr : virtnet_send_command+0x50/0x158
[    1.673551] sp : ffff8000223db160
[    1.673568] x29: ffff8000223db160 x28: 0000000000000000 
[    1.673603] x27: ffff8000223db790 x26: ffff000035430610 
[    1.673667] x25: 0000000000000005 x24: 0000000000000000 
[    1.673704] x23: ffff8000223db248 x22: ffff80001149f948 
[    1.673756] x21: ffff0000386e3400 x20: ffff80001149f948 
[    1.673804] x19: ffff0000347f78c0 x18: 0000000000000010 
[    1.673885] x17: 0000000000000000 x16: 0000000000000000 
[    1.673950] x15: 000067afc46594a2 x14: 00000000000000da 
[    1.674023] x13: 000000000000006b x12: ffff80001149f948 
[    1.674142] x11: ffff8000223db238 x10: ffff8000223db280 
[    1.674312] x9 : ffff0000347f7000 x8 : ffff0000347f70b0 
[    1.674470] x7 : 0000000000000000 x6 : ffff0000347f7000 
[    1.674493] x5 : ffff000039cc3000 x4 : ffff800011596ae8 
[    1.674539] x3 : ffff800011596ca0 x2 : 0000000000000011 
[    1.674632] x1 : 0000000000000011 x0 : 00000005300119ab 
[    1.674686] Call trace:
[    1.674722]  virtnet_send_command+0x150/0x158
[    1.674800]  virtnet_set_guest_offloads+0x58/0xa8
[    1.674849]  virtnet_set_features+0x44/0x70
[    1.674898]  __netdev_update_features+0x1d8/0x6e0
[    1.674987]  netdev_update_features+0x2c/0x68
[    1.675074]  dev_disable_lro+0x24/0x120
[    1.675135]  br_add_if+0x4b8/0x750 [bridge]
[    1.675287]  br_add_slave+0x14/0x20 [bridge]
[    1.675358]  do_set_master+0x90/0xb8
[    1.675415]  do_setlink+0x32c/0xde0
[    1.675489]  __rtnl_newlink+0x3e8/0x798
[    1.675526]  rtnl_newlink+0x4c/0x78
[    1.675567]  rtnetlink_rcv_msg+0x120/0x338
[    1.675613]  netlink_rcv_skb+0x5c/0x120
[    1.675654]  rtnetlink_rcv+0x18/0x28
[    1.675719]  netlink_unicast+0x1b8/0x278
[    1.675748]  netlink_sendmsg+0x1ac/0x3b8
[    1.675770]  ____sys_sendmsg+0x210/0x250
[    1.675787]  ___sys_sendmsg+0x84/0xc8
[    1.675824]  __sys_sendmsg+0x5c/0xa8
[    1.675876]  __arm64_sys_sendmsg+0x24/0x30
[    1.675897]  do_el0_svc+0xe0/0x158
[    1.675927]  el0_svc+0x30/0x98
[    1.675955]  el0_sync_handler+0x90/0xd0
[    1.675978]  el0_sync+0x160/0x180
[    1.676041] Code: f94023f9 a8cc7bfd d50323bf d65f03c0 (d4210000) 
[    1.676099] ---[ end trace ad1cc8642fef743a ]---
[    1.676160] note: ip[421] exited with preempt_count 1
[    1.676298] ------------[ cut here ]------------
[    1.676435] WARNING: CPU: 5 PID: 0 at kernel/rcu/tree.c:637 rcu_eqs_enter.isra.82+0x84/0x90
[    1.676597] Modules linked in: bridge stp llc bonding fuse crct10dif_ce sha3_ce sha3_generic sha512_ce vhost_net vhost tap vhost_iotlb ip_tables x_tables ipv6 dm_mod
[    1.676851] CPU: 5 PID: 0 Comm: swapper/5 Tainted: G      D W         5.12.12 #1
[    1.676902] pstate: 204003c5 (nzCv DAIF +PAN -UAO -TCO BTYPE=--)
[    1.677002] pc : rcu_eqs_enter.isra.82+0x84/0x90
[    1.677042] lr : rcu_idle_enter+0x10/0x20
[    1.677076] sp : ffff800011863f10
[    1.677120] x29: ffff800011863f10 x28: 0000000000000000 
[    1.677207] x27: 0000000000000000 x26: ffff0000340ce000 
[    1.677277] x25: 0000000000000000 x24: ffff80001149fadc 
[    1.677325] x23: ffff8000112d78b8 x22: ffff80001149f948 
[    1.677375] x21: ffff80001149fab8 x20: 0000000000000020 
[    1.677469] x19: ffff80001149f9e0 x18: 0000000000000010 
[    1.677516] x17: 0000000000000000 x16: 0000000000000000 
[    1.677550] x15: 00009435f592f5c0 x14: 0000000000000000 
[    1.677620] x13: 0000000000000000 x12: 0000000000000002 
[    1.677676] x11: 0000000000000000 x10: ffff0000351a5800 
[    1.677705] x9 : 000000000000001f x8 : 0000000000000001 
[    1.677777] x7 : 0000000000000000 x6 : 00000160ac8446e7 
[    1.677839] x5 : 00ffffffffffffff x4 : ffff8000116145f0 
[    1.677894] x3 : 4000000000000002 x2 : 4000000000000000 
[    1.677951] x1 : ffff8000112d96c0 x0 : ffff0000afe916c0 
[    1.677990] Call trace:
[    1.678045]  rcu_eqs_enter.isra.82+0x84/0x90
[    1.678091]  rcu_idle_enter+0x10/0x20
[    1.678135]  default_idle_call+0x20/0x5c
[    1.678181]  do_idle+0x204/0x278
[    1.678230]  cpu_startup_entry+0x24/0x68
[    1.678260]  secondary_start_kernel+0x178/0x188
[    1.678291] ---[ end trace ad1cc8642fef743b ]---

Unable to compile - seems to require Xcode.app

Hi! I am unable to compile with only the Xcode command line tools installed:

$ make
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcodebuild -project vmcli.xcodeproj -scheme vmcli -configuration Release
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
make: *** [build/vmcli] Error 1

Do we need the big Xcode.app installed too?

Since I'm still on macOS 10.14.6 "Mojave", I don't think it's going to work at all.
So maybe add a requirement, just as vftool states: "Requires macOS >= 11."

Proper configuration using a nocloud iso image

The provided "vmbuilders/ubuntu.sh" is a good start but it didn't work for me to configure the ubuntu cloud image: The openssh-server failed to initialize, my user was not created, no network connection. Instead of using the initramfs we can just provide an iso image with the necessary 'user-data' and 'meta-data' files to initialize the image at the first boot.

# create cloudinit config iso
rm -rf iso_folder seed.iso
mkdir iso_folder

cat << EOF > iso_folder/user-data
#cloud-config
users:
  - default
  - name: $USER
    lock_passwd: False
    gecos: $USER
    groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
    shell: /bin/bash
    ssh-authorized-keys:
      - $(cat ~/.ssh/id_rsa.pub | head -n 1)
bootcmd:
  - apt remove -y irqbalance
network:
    version: 2
    renderer: networkd
    ethernets:
        enp0s1:
            dhcp4: true
EOF

Plenty of examples here. Then to create the iso file:

touch iso_folder/meta-data

hdiutil makehybrid -iso -joliet -iso-volume-name cidata -joliet-volume-name cidata -o seed.iso iso_folder

Then add the seed.iso file to the vm.conf

cat << EOF > vm.conf
kernel=vmlinux
initrd=initrd
cmdline=console=hvc0 irqfixup root=/dev/vda
cpu-count=1
memory-size=1024
disk=disk.img
cdrom=seed.iso
network=nat
EOF

There's no need to launch the initramfs anymore to edit the image. The openssh initialization, user creation and networking do work for me now. Full example: https://gist.github.com/alexsarmiento/c52874738c3bdb96424c57b297b2678d

FIlesystem corruption after every shutdown

I am unable to find a way to cleanly stop the VM without it corrupting the ext4 filesystem in disk.img. I am using the default ubuntu setup as built with the makefile. I have tried:

  • In the VM guest: sudo shutdown -h now
  • In the VM guest: sudo init 0
  • From macOS host: vmctl stop ubuntu

All of these leave me with a disk.img that is corrupted. Eventually the corruption builds to the point that the system doesn't start properly. I have the Paragon extfs drivers for macOS, and I can perform the following in macOS:

hdiutil attach -nomount ubuntu/disk.img

After that if I verify the filesystem using the paragon extfs driver it says it needs to be repaired. I can repair it using the paragon extfs driver.

This happens after every shutdown, and from what I understand what I'm doing should exit the VM cleanly.

Can anyone shed light on this or recommend an approach that will prevent the VM from corrupting the ext4 filesystem?

Thanks!

Debian doesn't boot properly or console input doesn't work

When trying to boot a Debian 10.8 installation, boot process got stuck (picture below).
MacBook Pro 2020, M1
Debian 10.8
Linux-Kernel 4

vmcli --kernel=linux --initrd=initrd --cpu-count=4 --memory-size=3072 --disk=disk.img --cmdline='console=tty0 console=hvc0 root=/dev/mapper/vm--vg-root ro apparmor=0' --network=nat
image

VM Creation Step fails - 'VZErrorDomain error 1.'

Hey Everyone!

Im working with an M1 MBP 11.2.1

When trying to create an ubuntu vm (make build/vm/ubuntu), it gets through the first few steps, but then errors after the following command: spawn vmcli -k vmlinux --initrd=initrd -d disk.img --cmdline=console=hvc0 irqfixup

With the following output:

The operation couldn’t be completed. (VZErrorDomain error 1.)
send: spawn id exp6 not open
    while executing
"send -- "mkdir /mnt\r""
0+0 records in
0+0 records out
0 bytes transferred in 0.000014 secs (0 bytes/sec)

Screenshot for completeness:

Screenshot 2021-03-22 at 13 40 15

Any idea whats going on here? Arm incompatability? Or have you guys been able to run this on m1/arm64 already successfully?

How to make a connection between two guest VMs?

I have create two guest VMs(w1, w2)and can ssh into both of them from the host Mac.
But I can't ping or anything from w1 to w2 or from w2 to w1.
Please someone help me to resolve this issue.

Network configuration

  • Host Mac: 192.168.64.1
  • w1: 192.168.64.8
  • w2: 192.168.64.9

Ping test result

  • Success: host Mac -> w1, w2
  • Success: w1, w2 -> host Mac
  • Fail: w1 -> w2 (Destination Host Unreachable)
  • Fail: w2 -> w1 (Destination Host Unreachable)

HTTP test result (via curl)

  • Success: host Mac -> w1, w2
  • Success: w1, w2 -> host Mac
  • Fail: w1 -> w2, w2 -> w1
  • Success: w1 -> w1, w2 -> w2

Shared folder or separate image for folder

I have once encountered cloud init error after restarting Ubuntu, probably due to bug or wrongly remove essential packages would cause major problematics and not able to SSH with vmctl.

Linux partition could be customize with separate home image or allow user definite separate partition would be essential to avoid data loss in case we screw up?

Or a shared folder we can work from Linux and macOS is a neat feature.

Unable to resize vm volume

Hi there,

I followed the instructions in the readme and tried to increase the vm volume to 16G by:
dd if=/dev/null of="${VMCTLDIR}/ubuntu/disk.img" bs=1g count=0 seek=16

I can see that in my vm folder the disk.img size increase to 16G

total 3171224
-rw-r--r-- 1 ctsai staff 17179869184 Sep 13 10:51 disk.img
drwx------ 3 ctsai staff 96 Sep 12 15:00 screen
-rw-r--r-- 1 ctsai staff 13 Sep 7 11:17 0.ipaddr
-rw-r--r-- 1 ctsai staff 128 Sep 7 10:25 vm.conf
drwxr-xr-x 7 ctsai staff 224 Sep 7 10:20 ubuntu
-rw-r--r-- 1 ctsai staff 13 Jun 14 08:54 0.macaddr
-rw-r--r-- 1 ctsai staff 851 Jun 14 08:53 user.yaml
-rw-r--r-- 1 ctsai staff 27621838 Jun 14 08:52 initrd
-rw-r--r-- 1 ctsai staff 13672704 Jun 14 08:52 vmlinux

but when I start the vm I only see 1.4G storage:

Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-117-generic x86_64)

System information as of Tue Sep 13 17:53:47 UTC 2022

System load: 0.05
Usage of /: 98.9% of 1.40GB
Memory usage: 9%
Swap usage: 0%
Processes: 109
Users logged in: 0
IPv4 address for enp0s1: 192.168.65.3
IPv6 address for enp0s1: fd73:e176:203:8e05:4c8c:42ff:fe46:31b8

=> / is using 98.9% of 1.40GB

0 updates can be applied immediately.

The list of available updates is more than a week old.
To check for new updates run: sudo apt update

Last login: Mon Sep 12 22:00:34 UTC 2022 on hvc0

Can anyone point me in the right direction here?
Thanks

Unable to start VM with networking

Hi,

Firstly, thanks for this project. Extremely useful. 😄

I have noticed an issue, and found the root cause, but I'd like to discuss the direction of any PR.

The issue:

When running vmcli on main with the networking portion left in, the VM never starts and silently fails. If I remove the networking code, then vmcli starts the VM with no issues (except no networking, obviously).

Debugging this, found the following log in console: default 08:55:10.482714+0000 InternetSharing VMNet in NAT mode can't be started now due to an active InternetSharing session on en0.

The fix:

Disable InternetSharing. Simple as that. Then everything works as expected (with a NAT device, haven't tested bridge mode).

How should we "fix" this? A note in documentation? Or a check in the code for this scenario (if possible?)?

Add vmcli to Homebrew

Thanks a lot for vmcli, it works great!

It would be nice if it could be added to brew for easy installation and updates?

Virtualization.framework is crashing on start

I followed the README on a MacBook Air M1 in order to start an ubuntu VM.
Nothing was printed after executing vmctl start ubuntu and vmctl attach ubuntu was not able to find a screen.
A new crash report was created with the information:

Generic Platform
FIXME: "Unhandled system register S3_0_C0_C6_2"

I am running macOS 12.2.1

vmctl list lists directories not VMs

./build/vmctl list
● stopped Applications
● stopped Library
● stopped System
● stopped Users
● stopped Volumes
● stopped bin
● stopped cores
● stopped dev
● stopped etc
● stopped home
● stopped opt
● stopped private
● stopped sbin
● stopped tmp
● stopped usr
● stopped var

Working in monterey, however VM Linux not full configured

In Monterey 12.0.1, using an Intel i7 MacBook Pro, the virtual machine is created, however the Linux/provisioning script is lacking proper steps of initialization.

Found these issues:

  • ansible seems not to be running, so user is never created ; better create it via the command line.
  • sudo is not needed when running as root.
  • Also network interface not configured, Ubuntu uses netplan.
  • ssh host keys are also not initialized.

I ended up changing root password, adding to the ubuntu.sh script :

send -- "echo 'root:root' | chpasswd\r"
expect "# "

Then I added a netplan configuration, creating file /etc/netplan/00-installer-config.yaml

network:
version: 2
renderer: networkd
ethernets:
enp0s1:
dhcp4: true

(netplan file not well rendered here for some reason. There are indenting spaces)

Ran "netplan apply" as root, and enp0s1 immediately got an IP address.

Nevertheless, ssh service still did not go up at boot time, for the lack of host keys.

After creating a non-privileged user and running as root:

ssh-keygen -A

Was then able to use the ssh service, and copied manually my ssh keys.

Unrelated question, would the virtual disk image support qcow2?

vm gzip error

I continue to get the following error:

❯ sudo make build/vm/ubuntu
mkdir -p build
mkdir -p build/vm
mkdir -p build/vm/ubuntu
cd build/vm/ubuntu && ../../../vmbuilders/ubuntu.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11.1M 100 11.1M 0 0 3169k 0 0:00:03 0:00:03 --:--:-- 3168k
gunzip: vmlinux.gz: not in gzip format
make: *** [build/vm/ubuntu] Error 1

Does this work for Intel based Macs?

Hi! Thanks for building this, seems really cool and I'd love to try it out. I haven't put much time into seeing the code and I was just trying to follow the instructions.

The tool itself builds and runs well, but when I try to create a new VM using the make build/vm/ubuntu command, it exits abruptly and I'm not sure if it finished

image

When starting the host, I can attach to the host, but it fails to start the SSH service. Once it reaches the login screen, I can't see the IP of the machine because the file $VMCTL/ubuntu/0.ipaddr doesn't exist.

image

Is there any additional configuration that I need to for getting it to run on x86 based machines. I do see the ubuntu.sh script checks for architecture before downloading, and I was hoping I would be able to run this on an Intel mac

0.ipaddr is not generated

when i start a vm, it boots up except the SSH server,

[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: automatic crash report generation...
         Starting Deferred execution scheduler...
         Starting Availability of block devices...
[  OK  ] Started Regular background program processing daemon.
         Starting Pollinate to seed…udo random number generator...
         Starting Service for snap application lxd.activate...
         Starting Permit User Sessions...
[  OK  ] Finished Remove Stale Onli…ext4 Metadata Check Snapshots.
[  OK  ] Started Deferred execution scheduler.
[  OK  ] Finished Availability of block devices.
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started System Logging Service.
[  OK  ] Finished GRUB failed boot detection.
         Starting Hold until boot process finishes up...
         Starting Terminate Plymouth Boot Screen...
[  OK  ] Finished Hold until boot process finishes up.
[  OK  ] Started Serial Getty on hvc0.
         Starting Set console scheme...
[  OK  ] Finished Terminate Plymouth Boot Screen.
[  OK  ] Started LSB: automatic crash report generation.
[  OK  ] Finished Set console scheme.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: Record successful boot for GRUB.
[  OK  ] Started Login Service.
[  OK  ] Started Unattended Upgrades Shutdown.
         Starting Authorization Manager...
[  OK  ] Started Authorization Manager.
[  OK  ] Started Accounts Service.
[  OK  ] Finished Pollinate to seed…seudo random number generator.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Started Dispatcher daemon for systemd-networkd.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Started Snap Daemon.
         Starting Wait until snapd is fully seeded...
[  OK  ] Stopped OpenBSD Secure Shell server.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Finished Wait until snapd is fully seeded.
[  OK  ] Finished Service for snap application lxd.activate.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Finished Update UTMP about System Runlevel Changes.

Ubuntu 20.04.1 LTS ubuntu hvc0

ubuntu login:

and it seems like 0.macaddr is created, but not 0.ipaddr.

BTW, my internet sharing is already off.

How can i debug further ?

"make build/vm/ubuntu" failed

After replacing id_rsa.pub w/ id_ecdsa.pub, I ran "make build/vm/ubuntu" which downloaded a bunch of stuff and eventually failed w/:

(initramfs) [6ndd: invalid number: '1m'

Feature Request: Read configuration from file

command line:

$ vmcli --config ubuntu/vm.conf
shutdown-timeout=15
cpu-count=1
memory-size=256
kernel=kernel
initrd=rootfs
disk=disk-0.img
disk=disk-1.img
network=e6:64:3d:68:5c:78@nat
cmdline=console=hvc0 irqfixup root=/dev/vda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.