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

Box CentOS9 for VirtualBox with ARM architecture #1582

Open
aymg01 opened this issue Oct 8, 2024 · 10 comments
Open

Box CentOS9 for VirtualBox with ARM architecture #1582

aymg01 opened this issue Oct 8, 2024 · 10 comments
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@aymg01
Copy link

aymg01 commented Oct 8, 2024

Describe the Enhancement

My environment is with a MBP with chipset M1. Vagrant can create Ubuntu machines that meet the architecture. Can you add the box here: https://portal.cloud.hashicorp.com/vagrant/discover/bento/centos-stream-9

Thanks!

@aymg01 aymg01 added the Status: Untriaged An issue that has yet to be triaged. label Oct 8, 2024
@Stromweld
Copy link
Collaborator

virtualbox 7.1 finally added apple silicon support. My testing so far I've been able to get packer to build a box but it fails at the last step when it needs to export the vm.

@betalb
Copy link

betalb commented Dec 3, 2024

I also managed to get to the last step, and found this thread in vbox forum https://forums.virtualbox.org/viewtopic.php?t=112717 plus ticket https://www.virtualbox.org/ticket/22196. Both links don't have useful info.

@betalb
Copy link

betalb commented Jan 27, 2025

@Stromweld Virtualbox 7.1.6 was released recently. And seems that it fixed export. I've managed to build Ubuntu 24.04, though had some problems with very slow grub rendering which caused issues with boot command, so I had to put timeouts here and there. Not sure if this slowness was caused by update of Virtualbox.

@Stromweld
Copy link
Collaborator

can you share your configuration you used. It's been a while since I've tried to get virtualbox to work and I can't seem to get VM's to boot. I keep getting a session error.

@betalb
Copy link

betalb commented Jan 28, 2025

Here it is https://github.com/betalb/bento/tree/ubuntu-arm-vbox

And to run it in vagrant, you will need to monkey-patch it a little bit, VirtioSCSI adapter is added to supported

class VagrantPlugins::ProviderVirtualBox::Model::StorageController
    SCSI_CONTROLLER_TYPES = ["LsiLogic", "BusLogic", "VirtioSCSI"].map(&:freeze).freeze
end

@betalb
Copy link

betalb commented Jan 29, 2025

I see that almost the same changes were made for SUSE builds. And it seems that they can be made common for all vbox builds on ARM, because according to manual:

  • EFI is the only option
  • VirtioSCSI also the only option for disk subsystem on ARM

I've pushed changes to linked branch to make code more generic.
But I'm not sure about changes in boot command. Is it my local issues or new VBox version introduced some issues and now RDP is too slow on inital boot phase and grub is painting very slow.

@Stromweld
Copy link
Collaborator

I'm testing that out now. I found adding to vbox manage array ["modifyvm", "{{.Name}}", "--graphicscontroller", "qemuramfb"], helps with the slow load of boot menu. It doesn't like the vmsvga gfx adapter. But if you shutdown and start back up the vm with vmsvga adapter the issue goes away. weird. have you submitted the vagrant patch back to the vagrant repo?

@betalb
Copy link

betalb commented Jan 29, 2025

I also observed this behavior with restart.
Also strange that according to VBox docs vmsvga is the only supported option for ARM.

No, haven't yet submitted patch, but was planning to do so.

@betalb
Copy link

betalb commented Jan 29, 2025

Raised PR to vagrant: hashicorp/vagrant#13587

@Stromweld
Copy link
Collaborator

I have a new branch and PR that is now working for virtualbox arm systems. #1596

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants