-
Notifications
You must be signed in to change notification settings - Fork 35
buster64 on x86_64
ppggff edited this page Oct 13, 2022
·
2 revisions
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "qemu" do |qe|
qe.qemu_dir = "/usr/bin/"
qe.arch="x86_64"
# need for x86_64
qe.machine = "q35"
qe.cpu = "max"
qe.net_device = "virtio-net-pci"
# it seems this box need a VGA device (the debug serial port doesn't work... I don't know why)
qe.extra_qemu_args = %w(-vga std)
end
end
This may caused by the serial console is disabled. Following steps may fix it (tested on debian10):
- up the VM with '-vga std'
- ssh to it, and enable serial console by edit
/etc/default/grub
- add
console=tty0 console=ttyS0
toGRUB_CMDLINE_LINUX
- add
GRUB_TERMINAL="serial console" GRUB_SERIAL_COMMAND="serial"
- update grub by
update-grub -o /boot/grub/grub.cfg
- add
- stop the VM
- then you can drop the '-vga std' in the
Vagrantfile