windows:hyper-v

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:hyper-v [2020/09/15 14:40] ともやんwindows:hyper-v [2020/10/05 05:33] (現在) – [Hyper-V の有効化] ともやん
行 1: 行 1:
-====== Hyper-V ====== +====== Hyper-V (はいぱ~ヴぅぃ) - ハイパーバイザベース仮想化 ====== 
-TODO: 少しずつ整理します🤤\\+{{windows:ali_hyper-v.png?110|Hyper-V これはイメージです😅💦}}\\ 
 + 
 +TODO: 少しずつ整理します🤤\\ 
 + 
 +===== Hyper-V の有効化 ===== 
 +**コントロール パネル > プログラム > Windows の機能の有効化または無効化**\\ 
 +{{windows:windows_functions_hyper-v_enabled.png?300|Windows の機能 - Hyper-V の有効化}} 
 +{{windows:windows_functions_hyper-v_enabled_001.png?300|Windows の機能 - Hyper-V の有効化 001}} 
 +{{windows:windows_functions_hyper-v_enabled_002.png?300|Windows の機能 - Hyper-V の有効化 002}}\\
  
 ===== PowerShell で Hyper-V を操作する方法 ===== ===== PowerShell で Hyper-V を操作する方法 =====
行 54: 行 62:
 <code powershell> <code powershell>
  
-Name        State   CPUUsage(%) MemoryAssigned(M) Uptime           Status     Version +Name        State CPUUsage(%) MemoryAssigned(M) Uptime   Status     Version 
-----        -----   ----------- ----------------- ------           ------     ------- +----        ----- ----------- ----------------- ------   ------     ------- 
-Android x86 Off     0                           00:00:00         正常稼働中 9.0 +Android x86 Off   0                           00:00:00 正常稼働中 9.0 
-Fedora      Running 0           775               02:28:41.8360000 正常稼働中 9.0+Fedora      Off   0           0                 00:00:00 正常稼働中 9.0
 </code> </code>
 </WRAP> </WRAP>
行 92: 行 100:
 </WRAP> </WRAP>
  
 +==== 仮想マシンの実行 ====
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Start-VM -Name 'Fedora'
 +$ Get-VM
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +
 +Name        State   CPUUsage(%) MemoryAssigned(M) Uptime           Status     Version
 +----        -----   ----------- ----------------- ------           ------     -------
 +Android x86 Off                               00:00:00         正常稼働中 9.0
 +Fedora      Running 2           2048              00:00:06.5280000 正常稼働中 9.0
 +</code>
 +</WRAP>
 +
 +==== 仮想マシンの終了 ====
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Stop-VM -Name 'Fedora'
 +$ Get-VM
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +
 +Name        State CPUUsage(%) MemoryAssigned(M) Uptime   Status     Version
 +----        ----- ----------- ----------------- ------   ------     -------
 +Android x86 Off                             00:00:00 正常稼働中 9.0
 +Fedora      Off                             00:00:00 正常稼働中 9.0
 +</code>
 +</WRAP>
 +
 +==== チェックポイントの作成/取得 ====
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Checkpoint-VM -Name 'Fedora' -SnapshotName 'Setup後'
 +$ Get-VMSnapshot -VMName 'Fedora'
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +
 +VMName Name    SnapshotType CreationTime        ParentSnapshotName
 +------ ----    ------------ ------------        ------------------
 +Fedora Setup後 Standard     2020/09/15 14:55:02
 +</code>
 +</WRAP>
 +
 +==== チェックポイントの削除 ====
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Remove-VMSnapshot -VMName 'Fedora' -Name 'Setup後'
 +$ Get-VMSnapshot -VMName 'Fedora'
 +</code>
 +</WRAP>
 +チェックポイントが存在しない場合は何も取得されない。\\
 +
 +==== 仮想マシンの一時停止/再開... 再会💕 ====
 +一時停止する場合\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Suspend-VM -Name 'Fedora'
 +$ Get-VM
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +
 +Name        State  CPUUsage(%) MemoryAssigned(M) Uptime           Status     Version
 +----        -----  ----------- ----------------- ------           ------     -------
 +Android x86 Off    0                           00:00:00         正常稼働中 9.0
 +Fedora      Paused 0           775               00:10:21.1060000 正常稼働中 9.0
 +</code>
 +</WRAP>
 +
 +再開する場合\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Resume-VM -Name 'Fedora'
 +$ Get-VM
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +
 +Name        State   CPUUsage(%) MemoryAssigned(M) Uptime           Status     Version
 +----        -----   ----------- ----------------- ------           ------     -------
 +Android x86 Off                               00:00:00         正常稼働中 9.0
 +Fedora      Running 0           775               00:10:27.0510000 正常稼働中 9.0
 +</code>
 +</WRAP>
  
  
  • windows/hyper-v.1600148454.txt.gz
  • 最終更新: 2020/09/15 14:40
  • by ともやん