- https://yum.oracle.com/boxes/
Create a working directory for your development project and from within that directory, issue the following commands, subsituting the url for one of the following, depending on the release of Oracle Linux you want:
Oracle Linux 9: https://oracle.github.io/vagrant-projects/boxes/oraclelinux/9.json
Oracle Linux 9with Btrfs root filesystem: https://oracle.github.io/vagrant-projects/boxes/oraclelinux/9-btrfs.json
Oracle Linux 8: https://oracle.github.io/vagrant-projects/boxes/oraclelinux/8.json
Oracle Linux 8with Btrfs root filesystem: https://oracle.github.io/vagrant-projects/boxes/oraclelinux/8-btrfs.json
Oracle Linux 7: https://oracle.github.io/vagrant-projects/boxes/oraclelinux/7.json
Oracle Linux 7with Btrfs root filesystem: https://oracle.github.io/vagrant-projects/boxes/oraclelinux/7-btrfs.json$ vagrant init oraclelinux/{release} <box json url>$ vagrant up
$ vagrant ssh
For example:$ vagrant init oraclelinux/8 https://oracle.github.io/vagrant-projects/boxes/oraclelinux/8.json---> 此时会新建一个Vagrantfile文件,打开里边的配置,会发现https://oracle.github.io/vagrant-projects/boxes/oraclelinux/8.json
然后,可以直接在浏览器打开,能发现 里边调用的 vbox的地址,如
{
"description":"Oracle Linux 8",
"short_description":"Oracle Linux 8",
"name":"oraclelinux/8",
"versions": [
{
"version":"8.9.511",
"status":"active",
"release_date":"24-Nov-2023",
"description_html":"<ul>\n<li>Releasing 8.9.511</li>\n</ul>\n",
"description_markdown":"* Releasing 8.9.511",
"providers": [{
"name":"virtualbox",
"url":"https://yum.oracle.com/boxes/oraclelinux/ol8/OL8U9_x86_64-vagrant-virtualbox-b511.box",
"checksum":"5ecefbf80a286904dcc6b2f922a8415dfd7210631b75fdef3b18d4730734c018",
"checksum_type":"sha256",
"size": 783460392,
"kernel":"5.15.0-200.131.27.el8uek.x86_64"
}]
},
$ vagrant up
--> 如果这里失败,可以尝试用上面的地址 按如下操作解决
>vagrant box add oraclelinux/8 https://yum.oracle.com/boxes/oraclelinux/ol8/OL8U9_x86_64-vagrant-virtualbox-b511.box$ vagrant ssh
-------------
To launch an Oracle Linux 8boxwith Btfs root filesystem :$ vagrant init oraclelinux/8-btrfs https://oracle.github.io/vagrant-projects/boxes/oraclelinux/8-btrfs.json$ vagrant up
$ vagrant ssh
Updating an Oracle Linux box
To check whether an of your installed boxes have available updates:$ vagrant box outdated --global
To update an Vagrant boxto the latest available version:$ vagrant box update --box oraclelinux/9-- vagrantfile 调用方法
define.vm.box="oraclelinux/8"
define.vm.box_url ="https://oracle.github.io/vagrant-projects/boxes/oraclelinux/8.json"
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· .NET Core 中如何实现缓存的预热?
· 三行代码完成国际化适配,妙~啊~
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?