{"id":42410,"date":"2023-05-22T08:30:29","date_gmt":"2023-05-30T18:00:41","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/"},"modified":"2024-04-30T05:21:13","modified_gmt":"2024-04-29T21:21:13","slug":"%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/","title":{"rendered":"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u56e0\u4e3a\u6211\u5728\u7814\u7a76\u6d41\u6d6a\u8005\uff08vagrant\uff09\u65b9\u9762\u7684\u8bb8\u591a\u5185\u5bb9\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u6574\u7406\u4e00\u4e0b\u6211\u6240\u8c03\u67e5\u7684\u5185\u5bb9\u3002<\/p>\n<h1>\u73af\u5883<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30db\u30b9\u30c8OS : Windows10\uff0864bit\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Vagrant : 2.2.6<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4eee\u60f3S\/W : virtualbox 6.0.14<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30b2\u30b9\u30c8OS : CentOS8<\/ul>\n<h1>\u4f5c\u4e1a\u7684\u6b65\u9aa4<\/h1>\n<p>\u672c\u6b21\u5c06\u521b\u5efa\u7528\u4e8e\u6267\u884cAnsible\u548cterraform\u7684\u73af\u5883\u3002<\/p>\n<p>\uff08\u6b65\u9aa4\uff09<br \/>\n1. \u521b\u5efaBox<br \/>\n2. \u521b\u5efaVagrantfile<br \/>\n3. \u73af\u5883\u6784\u5efa<br \/>\n4. \u767b\u5f55<\/p>\n<h1>1. \u5236\u4f5c\u76d2\u5b50<\/h1>\n<p>Box\u662f\u6307\u7528\u4f5c\u865a\u62df\u673a\u64cd\u4f5c\u7cfb\u7edf\uff08Guest OS\uff09\u7684\u539f\u59cb\u955c\u50cf\u3002<\/p>\n<p>\u8fd9\u6b21\u9009\u62e9\u4e86\u6700\u65b0\u7248\u672c\u7684CentOS8\uff0c\u867d\u7136\u5e76\u6ca1\u6709\u7279\u522b\u7684\u610f\u4e49\u3002<\/p>\n<p>\u6211\u901a\u5e38\u5728\u5199\u4e0aadd\u4e4b\u540e\u7684\u53c2\u6570\u65f6\uff08\u867d\u7136\u6211\u4e0d\u786e\u5b9a\u662f\u5426\u5c5e\u4e8e\u6b63\u89c4\u8def\u5f84\uff09\uff0c\u4f1a\u53c2\u8003Vagrant Cloud\u9875\u9762\u4e0a\u7684\u5185\u5bb9\u8fdb\u884c\u586b\u5199\u3002<\/p>\n<pre class=\"post-pre\"><code>&gt; vagrant box add generic\/centos8\r\n==&gt; box: Loading metadata for box 'generic\/centos8'\r\n    box: URL: https:\/\/vagrantcloud.com\/generic\/centos8\r\nThis box can work with multiple providers! The providers that it\r\ncan work with are listed below. Please review the list and choose\r\nthe provider you will be working with.\r\n\r\n1) docker\r\n2) hyperv\r\n3) libvirt\r\n4) parallels\r\n5) virtualbox\r\n6) vmware_desktop\r\n\r\nEnter your choice: 5   ### &lt;=\u4eca\u56de\u306fvirtualbox\u306a\u306e\u3067\"5\"\u3092\u9078\u629e ###\r\n==&gt; box: Adding box 'generic\/centos8' (v2.0.6) for provider: virtualbox\r\n    box: Downloading: https:\/\/vagrantcloud.com\/generic\/boxes\/centos8\/versions\/2.0.6\/providers\/virtualbox.box\r\n    box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com\r\n    box:\r\n==&gt; box: Successfully added box 'generic\/centos8' (v2.0.6) for 'virtualbox'!\r\n<\/code><\/pre>\n<p>\u5982\u679c\u5728list\u547d\u4ee4\u4e2d\u770b\u5230CentOS 8\uff0c\u5219\u8868\u793a\u6210\u529f\u3002<\/p>\n<pre class=\"post-pre\"><code>&gt; vagrant box list\r\ngeneric\/centos8 (virtualbox, 2.0.6)\r\n<\/code><\/pre>\n<h1>2. \u521b\u5efaVagrantfile<\/h1>\n<p>\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u5b9a\u4e49\u865a\u62df\u673a\u6784\u5efa\u7684Vagrantfile\u3002\uff08\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u6ce8\u610f\u5927\u5c0f\u5199\u7684\u533a\u5206\u3002\uff09<\/p>\n<p>\u4f60\u53ef\u4ee5\u4ece\u5934\u521b\u5efa\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528init\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u793a\u4f8b\uff08\u6a21\u677f\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>&gt; vagrant init\r\nA `Vagrantfile` has been placed in this directory. You are now\r\nready to `vagrant up` your first virtual environment! Please read\r\nthe comments in the Vagrantfile as well as documentation on\r\n`vagrantup.com` for more information on using Vagrant.\r\n<\/code><\/pre>\n<p>\u8fd9\u6b21\u6211\u4eec\u4e0d\u4f7f\u7528\u6837\u672c\uff0c\u800c\u662f\u4f7f\u7528\u4e8b\u5148\u51c6\u5907\u597d\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>Vagrant.configure('2') do |config|      ### &lt;= Vagrant\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3002\"2\"\u3092\u6307\u5b9a\r\n  config.vm.box = \"centos\/8\"            ### &lt;= \u30b2\u30b9\u30c8OS\u306e\u30bd\u30fc\u30b9\u3068\u306a\u308bbox\r\n  config.vm.hostname = \"ansible.local\"  ### &lt;= \u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30db\u30b9\u30c8\u540d\r\n  config.vm.network \"private_network\",ip: \"192.168.33.10\" ### &lt;= \u4eee\u60f3\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9\r\n  config.vm.synced_folder '.', '\/vagrant', disabled: true ### &lt;= \u30d5\u30a9\u30eb\u30c0\u540c\u671f\u3092OFF\u306b\u8a2d\u5b9a\r\n  config.vm.define 'ansible' do |host|\r\n  end\r\n  config.vm.provider \"virtualbox\" do |vb| ### &lt;= \u4eee\u60f3\u30de\u30b7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u4eee\u60f3S\/W\u3002\u4eca\u56de\u306fvirtualbox\r\n    vb.name = \"ansible.local\"           ### &lt;= vitrualbox\u4e0a\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u540d\r\n  end\r\n  config.vm.provider \"virtualbox\" do |vb|\r\n    config.vm.provision \"shell\", inline: &lt;&lt;-SHELL ### &lt;= \u8d77\u52d5\u5f8c\u306b\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\r\n      yum install epel-release -y\r\n      yum install ansible -y\r\n      yum install wget unzip python3 git -y\r\n    SHELL\r\n  end\r\nend\r\n<\/code><\/pre>\n<h2>\u9009\u98791: IP\u5730\u5740\u7684\u8865\u5145<\/h2>\n<p>\u5982\u679c\u53ea\u662f\u8981\u521b\u5efa\u4e00\u4e2a\u73af\u5883\uff08\u4e3a\u4e86\u4f7f\u7528\u7aef\u53e3\u8f6c\u53d1\u8fdb\u884c\u8fde\u63a5\uff09\uff0c\u90a3\u4e48\u4e0d\u9700\u8981\u8bbe\u7f6eIP\u5730\u5740\uff0c\u4f46\u662f\u4e3a\u4e86\u8fde\u63a5\u5230\u5176\u4ed6\u673a\u5668\u8fdb\u884c\u9a8c\u8bc1\uff0c\u6211\u8981\u914d\u7f6eAnsible\u548cTerraform\u3002\u6211\u4f1a\u8bbe\u7f6eIP\u5730\u5740\u4e0eVirtualBox\u7684Host-Only Adapter\u7684IP\u5730\u5740\u8303\u56f4\u76f8\u5339\u914d\u3002\uff08\u53ef\u4ee5\u901a\u8fc7ipconfig\u7b49\u547d\u4ee4\u6765\u786e\u8ba4Host-Only Adapter\u7684IP\u5730\u5740\uff09\u3002<\/p>\n<h2>\u8865\u51452\uff1a\u5173\u4e8e\u6587\u4ef6\u5939\u540c\u6b65\u3002<\/h2>\n<p>\u5728\u4e2d\u56fd\uff0cFolder Sync OFF\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u4f46\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u201c\u540c\u6b65\u653e\u7f6eVagrantfile\u7684\u6587\u4ef6\u5939\u5230\u865a\u62df\u673a\u7684\/Vagrant\u76ee\u5f55\u4e0b\uff08\u4f7f\u7528rsync\uff09\u201d\u3002<br \/>\n\u8d77\u521d\u8fdb\u884c\u540c\u6b65\u540e\uff0c\u968f\u540e\u7684vagrant up\u547d\u4ee4\u6c38\u8fdc\u65e0\u6cd5\u5b8c\u6210\uff0c\u6211\u4ee5\u4e3a\u5b83\u5728\u505a\u4ec0\u4e48\uff0c\u7ed3\u679c\u5b83\u8bd5\u56fe\u5b8c\u5168\u540c\u6b65\u7528\u6237\u5bb6\u76ee\u5f55\u4e0b\uff08\u5305\u62ecDocument\u3001Download\u7b49\u5de8\u5927\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\uff09\u3002\u56e0\u6b64\uff0c\u9664\u975e\u6709\u7279\u6b8a\u9700\u6c42\uff0c\u5426\u5219\u5efa\u8bae\u5c06\u5176\u8bbe\u4e3aOFF\u3002<br \/>\n\uff08\u5f88\u5c11\u6709\u6587\u7ae0\u63d0\u5230\u8fd9\u4e00\u70b9\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u6700\u8fd1\u7684\u66f4\u65b0\uff0c\u6216\u8005\u7528\u6237\u5bb6\u76ee\u5f55\u4e0b\u6ca1\u6709\u4eba\u505a\u8fd9\u6837\u7684\u4e8b\u60c5\uff0c\u5177\u4f53\u539f\u56e0\u4e0d\u660e\uff09\u3002<\/p>\n<h1>3. \u73af\u5883\u5efa\u8bbe<\/h1>\n<p>\u6267\u884cvagrant up\u547d\u4ee4\u540e\uff0c\u8f93\u51fa\u4e00\u4e9b\u5185\u5bb9\u540e\u5373\u53ef\u767b\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code>&gt; vagrant up\r\nBringing machine 'ansible' up with 'virtualbox' provider...\r\n==&gt; ansible: Importing base box 'centos\/8'...\r\n==&gt; ansible: Matching MAC address for NAT networking...\r\n==&gt; ansible: Checking if box 'centos\/8' version '1905.1' is up to date...\r\n==&gt; ansible: Setting the name of the VM: ansible.local\r\n==&gt; ansible: Clearing any previously set network interfaces...\r\n==&gt; ansible: Preparing network interfaces based on configuration...\r\n    ansible: Adapter 1: nat\r\n    ansible: Adapter 2: hostonly\r\n==&gt; ansible: Forwarding ports...\r\n    ansible: 22 (guest) =&gt; 2222 (host) (adapter 1)\r\n==&gt; ansible: Booting VM...\r\n==&gt; ansible: Waiting for machine to boot. This may take a few minutes...\r\n    ansible: SSH address: 127.0.0.1:2222\r\n    ansible: SSH username: vagrant\r\n    ansible: SSH auth method: private key\r\n    ansible:\r\n    ansible: Vagrant insecure key detected. Vagrant will automatically replace\r\n    ansible: this with a newly generated keypair for better security.\r\n    ansible:\r\n    ansible: Inserting generated public key within guest...\r\n    ansible: Removing insecure key from the guest if it's present...\r\n    ansible: Key inserted! Disconnecting and reconnecting using new SSH key...\r\n==&gt; ansible: Machine booted and ready!\r\n==&gt; ansible: Checking for guest additions in VM...\r\n    ansible: No guest additions were detected on the base box for this VM! Guest\r\n    ansible: additions are required for forwarded ports, shared folders, host only\r\n    ansible: networking, and more. If SSH fails on this machine, please install\r\n    ansible: the guest additions and repackage the box to continue.\r\n    ansible:\r\n    ansible: This is not an error message; everything may continue to work properly,\r\n    ansible: in which case you may ignore this message.\r\n==&gt; ansible: Setting hostname...\r\n==&gt; ansible: Configuring and enabling network interfaces...\r\n==&gt; ansible: Running provisioner: shell...\r\n\uff08\u4e2d\u7565\uff09\r\n    ansible: Complete!\r\n<\/code><\/pre>\n<h1>4. \u767b\u5f55<\/h1>\n<p>\u767b\u5f55\u975e\u5e38\u65b9\u4fbf\uff0c\u53ea\u9700\u8981\u4e00\u6761\u547d\u4ee4\u5c31\u80fd\u5b8c\u6210\uff08\u65e0\u9700\u5bc6\u7801\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>&gt; vagrant ssh\r\n[vagrant@ansible ~]$ cat \/etc\/centos-release\r\nCentOS Linux release 8.0.1905 (Core)\r\n[vagrant@ansible ~]$\r\n<\/code><\/pre>\n<p>\u5982\u679c\u8981\u5bf9root\u8fdb\u884csu\u64cd\u4f5c\uff0c\u9700\u8981\u8f93\u5165\u5bc6\u7801\uff0c\u4f46\u9ed8\u8ba4\u5bc6\u7801\u662f&#8221;vagrant&#8221;\uff08\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0cvagrant\u7528\u6237\u7684\u5bc6\u7801\u4e5f\u662f\u4e00\u6837\u7684\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u56e0\u4e3a\u6211\u5728\u7814\u7a76\u6d41\u6d6a\u8005\uff08vagrant\uff09\u65b9\u9762\u7684\u8bb8\u591a\u5185\u5bb9\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u6574\u7406\u4e00\u4e0b\u6211\u6240\u8c03\u67e5\u7684\u5185\u5bb9\u3002 \u73af\u5883 \u30db\u30b9\u30c8OS [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42410","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528vagrant\u548cvirtualbox\u521b\u5efa\u865a\u62df\u673a\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u56e0\u4e3a\u6211\u5728\u7814\u7a76\u6d41\u6d6a\u8005\uff08vagrant\uff09\u65b9\u9762\u7684\u8bb8\u591a\u5185\u5bb9\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u6574\u7406\u4e00\u4e0b\u6211\u6240\u8c03\u67e5\u7684\u5185\u5bb9\u3002 \u73af\u5883 \u30db\u30b9\u30c8OS [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528vagrant\u548cvirtualbox\u521b\u5efa\u865a\u62df\u673a\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-30T18:00:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T21:21:13+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/\",\"name\":\"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-30T18:00:41+00:00\",\"dateModified\":\"2024-04-29T21:21:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528vagrant\u548cvirtualbox\u521b\u5efa\u865a\u62df\u673a\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a","og_description":"\u9996\u5148 \u56e0\u4e3a\u6211\u5728\u7814\u7a76\u6d41\u6d6a\u8005\uff08vagrant\uff09\u65b9\u9762\u7684\u8bb8\u591a\u5185\u5bb9\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u6574\u7406\u4e00\u4e0b\u6211\u6240\u8c03\u67e5\u7684\u5185\u5bb9\u3002 \u73af\u5883 \u30db\u30b9\u30c8OS [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528vagrant\u548cvirtualbox\u521b\u5efa\u865a\u62df\u673a\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-30T18:00:41+00:00","article_modified_time":"2024-04-29T21:21:13+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/","name":"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-30T18:00:41+00:00","dateModified":"2024-04-29T21:21:13+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Vagrant\u548cVirtualBox\u521b\u5efa\u865a\u62df\u673a"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8vagrant%e5%92%8cvirtualbox%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=42410"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42410\/revisions"}],"predecessor-version":[{"id":89937,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/42410\/revisions\/89937"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=42410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=42410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=42410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}