Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working in monterey, however VM Linux not full configured #24

Open
ruyrybeyro opened this issue Nov 2, 2021 · 1 comment
Open

Working in monterey, however VM Linux not full configured #24

ruyrybeyro opened this issue Nov 2, 2021 · 1 comment

Comments

@ruyrybeyro
Copy link

ruyrybeyro commented Nov 2, 2021

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?

@dmarkey
Copy link

dmarkey commented Feb 14, 2022

Cloud-init looks to be a bit busted in my tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants