<?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>虛擬機器無法開機解決方法 &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/%E8%99%9B%E6%93%AC%E6%A9%9F%E5%99%A8%E7%84%A1%E6%B3%95%E9%96%8B%E6%A9%9F%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%B3%95/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Tue, 20 Jun 2023 10:00:58 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>虛擬機器無法開機解決方法 &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>1 招解決 Hyper-V 虛擬機器無法開機</title>
		<link>https://noter.tw/11781/hyper-v-%e8%99%9b%e6%93%ac%e6%a9%9f%e5%99%a8%e7%84%a1%e6%b3%95%e9%96%8b%e6%a9%9f/</link>
					<comments>https://noter.tw/11781/hyper-v-%e8%99%9b%e6%93%ac%e6%a9%9f%e5%99%a8%e7%84%a1%e6%b3%95%e9%96%8b%e6%a9%9f/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Tue, 20 Jun 2023 10:00:57 +0000</pubDate>
				<category><![CDATA[技術相關]]></category>
		<category><![CDATA[Hyper-V虛擬機器]]></category>
		<category><![CDATA[虛擬機器故障解決方案]]></category>
		<category><![CDATA[虛擬機器故障排除]]></category>
		<category><![CDATA[虛擬機器黑屏的解決方案]]></category>
		<category><![CDATA[光碟開機]]></category>
		<category><![CDATA[虛擬化技術問題]]></category>
		<category><![CDATA[虛擬機器無法開機解決方法]]></category>
		<category><![CDATA[Hyper-V無法啟動]]></category>
		<category><![CDATA[Hyper-V無法運行的解決辦法]]></category>
		<category><![CDATA[Hyper-V開機錯誤]]></category>
		<category><![CDATA[虛擬機器無法進入操作系統的解決方法]]></category>
		<category><![CDATA[Linux Live CD]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=11781</guid>

					<description><![CDATA[<p>小蛙之前有一些 Ubuntu 的服務跑在 Hyper-V 的虛擬機器上，之前有印象空間快滿了，昨天去看的時候已經沒辦法啟動了 ... 這篇文章記錄若遇到 Hyper-V 虛擬機器無法開機的狀況時，透過 Linux 安裝光碟進入到虛擬機器內把必要的東西複製出來，或是清出空間來開機。</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/11781/hyper-v-%e8%99%9b%e6%93%ac%e6%a9%9f%e5%99%a8%e7%84%a1%e6%b3%95%e9%96%8b%e6%a9%9f/" data-wpel-link="internal">1 招解決 Hyper-V 虛擬機器無法開機</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>小蛙之前有一些 Ubuntu 的服務跑在 Hyper-V 的虛擬機器上，之前有印象空間快滿了，昨天去看的時候已經沒辦法啟動了 &#8230; 這篇文章記錄若遇到 Hyper-V 虛擬機器無法開機的狀況時，透過 Linux 安裝光碟進入到虛擬機器內把必要的東西複製出來，或是清出空間來開機。</p>



<span id="more-11781"></span>



<h2 class="wp-block-heading para">什麼是 Hyper-V 虛擬機器？</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Hyper-V是Microsoft Windows作業系統中的一項虛擬化技術，它允許在單一主機上運行多個虛擬機器（VMs）。Hyper-V虛擬機是在主機操作系統之上建立的獨立環境，每個虛擬機器都具有自己的作業系統、應用程式和資源。</p>



<p>Hyper-V提供了虛擬化平台，可在Windows Server和某些Windows工作站版中使用。它是一個基於類型-1（bare-metal）架構的虛擬化解決方案，這意味著它直接在硬體上運行，而不需要額外的操作系統。這使得虛擬機器能夠更高效地運行，並提供接近原生性能的效能。</p>
<cite><a href="https://chat.openai.com/chat" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">ChatGPT<span class="wpel-icon wpel-image wpel-icon-6"></span></a><em> 產生</em></cite></blockquote>



<p>嗯嗯，Hyper-V 就是這麼回事，另外還有 VMware vSphere、Oracle VM VirtualBox &#8230; 等類似的工具提供相關虛擬機器 (Virtual Machine) 的功能。</p>



<h2 class="wp-block-heading para">Hyper-V 虛擬機器無法開機</h2>



<p>小蛙這次遇到的問題是虛擬機器 (Virtual Machine，以下簡稱 VM) 儲存空間爆了，造成 Hyper-V 沒辦法正常重啟 VM，一開始不知道怎麼辦胡亂設定了一通，結果讓 VM 完全整個無法啟動 &#8230; 原本放在 VM 裡面的資料也拿不出來 Orz &#8230;</p>



<p>後來想到以前 Windows 掛掉沒辦法開機的時候，可以使用類似 NoName XPE 的工具，把作業系統跑在光碟上或是隨身碟上，並且包含了許多修復工具，透過這種方式來修復原本出問題的作業系統，Linux 早期也有聽過 Live CD，如果以 Live CD 使用光碟機開機，就能將不能開機的 VM 空間清出來，或是把資料 copy 出來了。</p>



<h2 class="wp-block-heading para">Live CD 解決方案</h2>



<p>以小蛙的狀況為例，使用的作業系統是 Ubuntu 20.04 Desktop 版本，首先必須要先到 Ubuntu 官網下載 ISO 映像檔，接著進入 Hyper-V，在無法開機的 VM 點擊滑鼠右鍵 -&gt; 設定</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaWSWBf4I7ekYXJnxSSaCr2k3dCWuPUMmp5DzNd7crPCmfYEyH5blavTicLkywGPKX-5yJONUWxTTxFxfSzH8uYLhKiNgZbYzfH14fKUUsanX0EjJsVR5O6z4Faj4rNHwbxBMDSwKP5iBPvzcodpZXvb=w229-h327-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 1" width="172" height="245" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>左側切換到 SCSI 控制器，選擇 DVD 光碟機後，點擊右下角新增</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img fetchpriority="high" decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaWQc7Q8C8bDZjqmaGIKL9ytSjmRyZZnzs67s4bS_8v8iHEtwiUcVBeRefQLRirNpJMMWCuXN-dvU10pF37FLRvvb4tmnJkCwfgzAzWgfVFT82O_V4LR3gdIYCnnYIct-XmS7ugFYGH0snD4ngyqpZRJ=w1155-h446-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 2" width="578" height="223" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>選擇剛剛下載的映象檔後儲存設定</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaVJ_Se--PuTeupQ0F7qDVbbxR89fVyYzSDoMGkIYQI-5wMmlrf_q03VSCkwNSsM9S9MeCNyWSCt7Vt1vbDe0sCrnN0b3GUwoX4qUVj17bjvaTUxzoOnBYrQC6wZc0l-UQVwXCWi8ocCoPMWKUIjrW3j=w1151-h443-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 3" width="576" height="222" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>接著到左側韌體，將 DVD 光碟機移動到最上面，儲存後啟動 VM</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaXF1RQcSbzBvD2f6htZEEUSnNT9T1hWuDUp9DhCvWd0nfUcmcw7SGGFpwuO03qDIsM7ceYhNmVNfolpjLSxSot_1ldlRf1h6k9x66bumV3ggqh92PJeNy-uEnTF8fElK8DyU5S-59uqzK7B9pN-dvts=w1112-h440-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 4" width="556" height="220" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>若以上設定成功，開機後會見到以下畫面，選擇中文(繁體) -&gt; 試用 Ubuntu</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaU1bmIurPZ25xF9zzU567oOJaREfbciT-q7RPj5MZDUyQBLyXaiv6hhP7oSYdi-Uv6nxJGbIdr3VRYRSKdeDZhOGwRar-TAYJQWHouA9pYrrWTD6pkQNipus7uzl6ssv9_KGwiaXXEAIfw6lrJUBXzp=w901-h730-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 5" width="451" height="365" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>等待一下下就進到 Ubuntu 桌面囉</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaWAYBwJOuzwBp7T5EXUoZPecFkepDjIooR0BN_nBNv9alXboSVEtRl3QtI5UJdzVfxVJfjMEWBZy9PrwlTAGLPyGBItsv069DnIEj30K7taBF87fX_aYmBp0pYePCN3yhQMXOHSh5eeQ8nrccVi0r9m=w1053-h788-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 6" width="527" height="394" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>點擊左下角查看所有程式，找到 Disks 磁碟管理工具</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaXSI_5SH3PoT1dwgsJQPda-4SoQbWmkkzKdym40OrpfMgr4K7-twLC0WLzbFJGq8WEkBEK1WMj5rfXteFC-FRF32AcOTJ85gkFB9JNGLte943MOVIYmBo331MQpNfwM2vnUOko00akr6PKbIHsWgiBL=w1052-h786-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 7" width="526" height="393" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>左側選取 VM 使用的硬碟，右邊選取正確的磁區後，點擊像播放鍵的按鈕將硬碟掛載起來</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaW5ih80cS7J2a9FRDMFswd34Br4KGGl6Q14uPVUKZoWfbpsWvMnalVkeBY37OZqwVOaB_r91S6zVYbP1NGym-RPwCHgRavOK2sXJOVd-W9YV1Qn_R5WmS5aJO0gJk4MteOjiG0U6D6rAtqCH6gD8KQf=w977-h537-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 8" width="489" height="269" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>掛載完成會看到播放鍵變成停止鍵了，同時最下面可以看到硬碟掛載的路徑</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaXQ8-lhghkZT-HAbV4Jee78WOAyJrtQdnvpH1IJ1XJR7Kaq6EUDUTkvsGhfZJaiLgtJlS0m6Uzv_L6GG076f9CixKTh9xvgLrnXmGBaJZh16sD9cPEi-Wva1_BF2Xop9oh_SDGlvSdcP1ucPaovtXdO=w971-h509-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 9" width="486" height="255" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>開啟 Terminal，輸入 sudo su 切換成 root 使用者，再進到掛載的目錄 /media/ubuntu/desktop-rootfs/ 就可以把 VM 裡的檔案複製出來或是清裡不必要的檔案挪出空間囉！</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AJFCJaWS2Xilnz1WEL8v6r9ejY898NoDfz_Yam6qOr180KLj5v04lfEOjNeYTKlv3ujAmAhEL5EQShTNZ4nN7_X6ONiB6tonbsyWaqrQueGupt7kaKRktSiOnMHY90V9in5AGGSSChuTF9fmbsTnHaUKreW6=w765-h505-s-no?authuser=5" alt="Hyper-V 虛擬機器無法開機 10" width="574" height="379" title="1 招解決 Hyper-V 虛擬機器無法開機"></figure></div>


<p>其他<a href="https://noter.tw/share/tech/" data-wpel-link="internal">技術相關文章</a>。</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/11781/hyper-v-%e8%99%9b%e6%93%ac%e6%a9%9f%e5%99%a8%e7%84%a1%e6%b3%95%e9%96%8b%e6%a9%9f/" data-wpel-link="internal">1 招解決 Hyper-V 虛擬機器無法開機</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/11781/hyper-v-%e8%99%9b%e6%93%ac%e6%a9%9f%e5%99%a8%e7%84%a1%e6%b3%95%e9%96%8b%e6%a9%9f/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
