<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VirtualBox  |  script life 千夜一夜 プログラミング別館</title>
	<atom:link href="https://www.scriptlife.jp/contents/programming/tag/virtualbox/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scriptlife.jp/contents/programming</link>
	<description>AWSとかプログラミングのこととかいろいろ</description>
	<lastBuildDate>Fri, 28 Feb 2020 16:24:55 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.7</generator>
	<item>
		<title>Windows10のVirtualBox 6.1で32bitOSしか選択できなくなっていたときの対応</title>
		<link>https://www.scriptlife.jp/contents/programming/2020/02/24/virtualbox-32bit/</link>
					<comments>https://www.scriptlife.jp/contents/programming/2020/02/24/virtualbox-32bit/#respond</comments>
		
		<dc:creator><![CDATA[かげろ]]></dc:creator>
		<pubDate>Mon, 24 Feb 2020 08:19:56 +0000</pubDate>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows10]]></category>
		<guid isPermaLink="false">https://www.scriptlife.jp/contents/programming/?p=4008</guid>

					<description><![CDATA[　Windows10にVirtualBox 6.1をインストールして、ゲストOSのセットアップをしようとしたときなぜか64bitが選択できな...]]></description>
										<content:encoded><![CDATA[<p>　Windows10にVirtualBox 6.1をインストールして、ゲストOSのセットアップをしようとしたときなぜか64bitが選択できなかったときの話です。</p>
<h2>選択に32bitしかでてこない</h2>
<p><a href="https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_仮想マシンの作成_2020-2-16_18-21-15_No-00.png"><img loading="lazy" src="https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_仮想マシンの作成_2020-2-16_18-21-15_No-00-300x216.png" alt="" width="300" height="216" class="aligncenter size-medium wp-image-4009" srcset="https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_仮想マシンの作成_2020-2-16_18-21-15_No-00-300x216.png 300w, https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_仮想マシンの作成_2020-2-16_18-21-15_No-00-320x231.png 320w, https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_仮想マシンの作成_2020-2-16_18-21-15_No-00.png 506w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>どういうわけか出てきませんでした。</p>
<h2>Hyper-Vを無効にする</h2>
<p>　検索すると、「Hyper-Vを無効にすると出てくる」とあったのでそれを行いました。</p>
<h3>チェックボックスを無効にしてみる</h3>
<p>　「コントロールパネル > プログラムと機能 > Windowsの機能の有効化または無効化」より、「Hyper-V」のチェックを外して再起動します。</p>
<p>　これで無効化されたはず (実際Dockerは動かなくなった)のですが、まだ出てきませんでした。</p>
<h3>コマンドラインから無効化する</h3>
<p>　コマンドプロンプトを右クリックして「管理者権限で実行」を行い、管理者権限のコマンドプロンプトを表示させます。</p>
<p>　そこで次のコマンドを実行して、Hyper-Vを無効にします。</p>
<pre><code>&gt; bcdedit /set hypervisorlaunchtype off
</code></pre>
<p>　これによって64bitが出てくるようになりました。</p>
<p><a href="https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_Oracle-VM-VirtualBox-マネージャー_2020-2-16_18-58-42_No-00.png"><img loading="lazy" src="https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_Oracle-VM-VirtualBox-マネージャー_2020-2-16_18-58-42_No-00-300x226.png" alt="" width="300" height="226" class="aligncenter size-medium wp-image-4011" srcset="https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_Oracle-VM-VirtualBox-マネージャー_2020-2-16_18-58-42_No-00-300x226.png 300w, https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_Oracle-VM-VirtualBox-マネージャー_2020-2-16_18-58-42_No-00-768x579.png 768w, https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_Oracle-VM-VirtualBox-マネージャー_2020-2-16_18-58-42_No-00-320x241.png 320w, https://www.scriptlife.jp/contents/programming/wp-content/uploads/SnapCrab_Oracle-VM-VirtualBox-マネージャー_2020-2-16_18-58-42_No-00.png 772w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>　設定されているかどうかの確認は</p>
<pre><code>&gt; bcdedit 
</code></pre>
<p>　で「hypervisorlaunchtype 」の項目に出てくるはずでしたが、チェックボックスを外しただけの状態では出てきませんでした。</p>
<p>　bcdeditコマンドからオフにしたら出てくるようになったので、これが拾えてなかったのかもしれません。</p>
<p>　オンにするときは</p>
<pre><code>&gt; bcdedit /set hypervisorlaunchtype auto
</code></pre>
<p>　にします。</p>
<h2>参考</h2>
<ul>
<li><a href="https://onoredekaiketsu.com/virtualbox-error-all-os-32bit/">VirtualBoxのOS選択プルダウンが全て32bitになるエラーを対策</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scriptlife.jp/contents/programming/2020/02/24/virtualbox-32bit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MacのHomebrewでvagrantが起動しないときの対処法</title>
		<link>https://www.scriptlife.jp/contents/programming/2020/01/13/brew-install-vagrant/</link>
					<comments>https://www.scriptlife.jp/contents/programming/2020/01/13/brew-install-vagrant/#respond</comments>
		
		<dc:creator><![CDATA[かげろ]]></dc:creator>
		<pubDate>Mon, 13 Jan 2020 13:44:52 +0000</pubDate>
				<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">https://www.scriptlife.jp/contents/programming/?p=3958</guid>

					<description><![CDATA[　それでvagrantとvirtualboxを再インストールしたのですが vagrant upしてくれない 自体に発展… VirtualBo...]]></description>
										<content:encoded><![CDATA[<p>　それでvagrantとvirtualboxを再インストールしたのですが <strong>vagrant upしてくれない</strong> 自体に発展…</p>
<h3>VirtualBoxをダウングレードする</h3>
<p>　vagrant upでのエラーメッセージを見ると、2020/1/13の最新バージョン(2.2.6)で対応しているvirtualboxのバージョンは <strong>6.0まで</strong> のようでした。</p>
<p>　brewでインストールされたのは <strong>6.1</strong> だったので駄目だったみたい。</p>
<p>　なのでvirtualboxを戻します。</p>
<h3>リポジトリのバージョンを戻す</h3>
<p>　最初はバージョン指定してインストールくらいの気持ちでしたが、どうもhomebrewはインストールするバージョンをgitで管理してるみたいで、ダウングレードするにはファイルをチェックアウトする必要があるみたい。</p>
<p>　「/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/virtualbox.rb」がそのファイルのようなので、ひとまず移動します。</p>
<pre><code>$ cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
</code></pre>
<p>　履歴を見ると、一つ前に戻せばよさそう。</p>
<pre><code>$ git log Casks/virtualbox.rb
commit 33de1ad39862b4d31528e62f931480c1ba8a90f8
Author: Ted Howard &lt;xxxx&gt;
Date:   Wed Dec 11 17:16:52 2019 -0600


    Update virtualbox from 6.0.14,133895 to 6.1.0,135406 (#74088)


commit 7e703e0466a463fe26ab4e253e28baa9c20d5f36
Author: commitay &lt;xxxx&gt;
Date:   Fri Nov 29 20:06:49 2019 +1000


    Update virtualbox install (#72804)

commit 45d768ed9fa4a23cc76fab675cdcd6bf409ab32e
Author: tiiiecherle &lt;xxxx&gt;
Date:   Thu Oct 17 21:20:44 2019 +0200


    Update virtualbox from 6.0.12,133076 to 6.0.14,133895 (#70970)
...
</code></pre>
<p>　git checkoutでとりあえず戻します。</p>
<pre><code>$ git checkout 7e703e0466a463fe26ab4e253e28baa9c20d5f36
</code></pre>
<p>　virtualbox.rbファイルを開いてみると、管理しているバージョンが6.0になっていることがわかります。</p>
<h3>自動更新をオフにしてインストール</h3>
<p>　ここでbrew cask installする前に、 <strong>リポジトリが自動更新されないように設定する</strong> 必要があります。</p>
<p>　brew installするとリポジトリを自動的に最新に保つようなので、環境変数HOMEBREW_NO_AUTO_UPDATEを設定して自動更新を切ります。</p>
<pre><code>$ export HOMEBREW_NO_AUTO_UPDATE=1
$ brew cask install virtualbox
</code></pre>
<p>　これで無事6.0系が入りました。</p>
<p>　vagrantのインストールではなくVirtualBoxのダウングレードの話でしたね…</p>
<p>　他のパッケージ管理ツールに慣れていたから、勝手にバージョン揃えてくれたりバージョン指定するだけでOKくらいに思ってたのですが意外とめんどかったです…分かってしまえば作業の手間だけの話ですけれど。</p>
<h3>参考</h3>
<ul>
<li><a href="https://qiita.com/KyoheiG3/items/912bcc27462871487845">Homebrewで旧バージョンのパッケージをインストールしたい</a></li>
<li><a href="https://rcmdnk.com/blog/2016/11/15/computer-mac-homebrew-brew-file/">Mac Homebrewのbrew tapでも自動アップデートがかかって余計な出力が出るので注意</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scriptlife.jp/contents/programming/2020/01/13/brew-install-vagrant/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MacのHomebrewでVirtualBoxがアンインストールできないときの対応</title>
		<link>https://www.scriptlife.jp/contents/programming/2020/01/13/brew-uninstall-virtualbox/</link>
					<comments>https://www.scriptlife.jp/contents/programming/2020/01/13/brew-uninstall-virtualbox/#respond</comments>
		
		<dc:creator><![CDATA[かげろ]]></dc:creator>
		<pubDate>Mon, 13 Jan 2020 13:22:09 +0000</pubDate>
				<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<guid isPermaLink="false">https://www.scriptlife.jp/contents/programming/?p=3954</guid>

					<description><![CDATA[　ちょっとvagrantとvirtualboxを再インストールしてみるために一旦アンインストールしようとしたらできなかったのでメモ brew...]]></description>
										<content:encoded><![CDATA[<p>　ちょっとvagrantとvirtualboxを再インストールしてみるために一旦アンインストールしようとしたらできなかったのでメモ</p>
<h3>brew cask uninstall virtualboxで失敗</h3>
<pre><code>$ brew cask uninstall virtualbox
</code></pre>
<p>を実行してみても、次のエラーが出て失敗してしまいました。</p>
<pre><code>unloading org.virtualbox.kext.VBoxDrv
(kernel) Can't remove kext org.virtualbox.kext.VBoxDrv; services failed to terminate - 0xe00002c7.
Failed to unload org.virtualbox.kext.VBoxDrv - (iokit/common) unsupported function.
An error occurred durning 'sudo /sbin/kextunload -m org.virtualbox.kext.VBoxDrv', there should be a message above. (rc=3)
Failed to unload one or more KEXTs, please reboot the machine to complete the uninstall.
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/local/Caskroom/virtualbox/6.0.8,130520/VirtualBox_Uninstall.tool --unattended` exited with 1. Here's the output:
</code></pre>
<h3>VirtualBoxのプロセスが生きていたみたい</h3>
<p>　で、いろいろ調べていると<a href="https://klim0824.hatenablog.com/entry/2018/12/17/212623">こちらの記事</a>で「VirtualBox関連のプロセスで動き続けているものが残っていたため、アップデートできなかった模様」とあったので、アクティビティモニタでプロセスを見てみると「VBoxHeadless」が動いていました。</p>
<p>　これを強制終了させてからuninstall してみると無事アンインストールできました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scriptlife.jp/contents/programming/2020/01/13/brew-uninstall-virtualbox/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
