Closed BlackLIonz closed 2 years ago
This seems to be the problem with the box. I tried to solve this problem locally.
updated to v0.1.8: vagrant plugin update vagrant-qemu
vagrant up --provider qemu
use nc
to connect to the serial port
# get the id of this virtual machine
cat .vagrant/machines/default/qemu/id
k-2sGaa94eE%
# get the path to qemu_socket_serial
ls ~/.vagrant.d/tmp/vagrant-qemu/k-2sGaa94eE/qemu_socket_serial
# connect to it
nc -U ~/.vagrant.d/tmp/vagrant-qemu/k-2sGaa94eE/qemu_socket_serial
# press Enter, it may show
ubuntu login:
you may see different outputs
after login to ubuntu, enable the network
# check network, you will see that eth0 has no ip address
ip a
# update netplan config
sudo su -
sed -i -e 's/enp6s0/eth0/' /etc/netplan/00-installer-config.yaml
# quit nc by Ctrl+C
stop machine: vagrant halt
wait a few minutes, until ps -ef|grep qemu
shows no running qemu process
restart machine: vagrant up
Notes, you also need add config.vm.synced_folder ".", "/vagrant", type: "smb", smb_host: "10.0.2.2"
to the Vagrantfile
due to a know issue.
This works for me, please try it.
Awesome, it's worked for me. Thank you a lot
Great.
I tried use vagrant with qemu to run ubuntu vm. This box was used https://app.vagrantup.com/javiervela/boxes/ubuntu20.04-arm64 . Settings are default.
vagrant up
froze with:And when I'm trying to run
vagrant ssh
it's just hanging. And breaks with timeout.MacOS 12.2.1 (M1 Pro) Vagrant 2.2.19 vagrant-qemu (0.1.7, global)