{"id":197,"date":"2017-07-18T15:59:36","date_gmt":"2017-07-18T15:59:36","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2017\/07\/18\/linux-list-a-kvm-vm-guest-using-virsh-command\/"},"modified":"2017-07-18T15:59:36","modified_gmt":"2017-07-18T15:59:36","slug":"linux-list-a-kvm-vm-guest-using-virsh-command","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=197","title":{"rendered":"Linux list a KVM vm guest using virsh command"},"content":{"rendered":"<p>Use the following command to list a kvm vm on Linux based server:<br \/><code># virsh list<\/code><\/p>\n<p>To list inactive &amp; active VM\/domains:<br \/><code># virsh list --all<\/code><br \/>Here are all other options:<\/p>\n<table border=\"1\" width=\"1087\">\n<tbody>\n<tr>\n<th>Option<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td><kbd>--inactive<\/kbd><\/td>\n<td>list inactive domains<\/td>\n<\/tr>\n<tr>\n<td><kbd>--all<\/kbd><\/td>\n<td>list inactive &amp; active domains<\/td>\n<\/tr>\n<tr>\n<td><kbd>--transient<\/kbd><\/td>\n<td>list transient domains<\/td>\n<\/tr>\n<tr>\n<td><kbd>--persistent<\/kbd><\/td>\n<td>list persistent domains<\/td>\n<\/tr>\n<tr>\n<td><kbd>--with-snapshot<\/kbd><\/td>\n<td>list domains with existing snapshot<\/td>\n<\/tr>\n<tr>\n<td><kbd>--without-snapshot<\/kbd><\/td>\n<td>list domains without a snapshot<\/td>\n<\/tr>\n<tr>\n<td><kbd>--state-running<\/kbd><\/td>\n<td>list domains in running state<\/td>\n<\/tr>\n<tr>\n<td><kbd>--state-paused<\/kbd><\/td>\n<td>list domains in paused state<\/td>\n<\/tr>\n<tr>\n<td><kbd>--state-shutoff<\/kbd><\/td>\n<td>list domains in shutoff state<\/td>\n<\/tr>\n<tr>\n<td><kbd>--state-other<\/kbd><\/td>\n<td>list domains in other states<\/td>\n<\/tr>\n<tr>\n<td><kbd>--autostart<\/kbd><\/td>\n<td>list domains with autostart enabled<\/td>\n<\/tr>\n<tr>\n<td><kbd>--no-autostart<\/kbd><\/td>\n<td>list domains with autostart disabled<\/td>\n<\/tr>\n<tr>\n<td><kbd>--with-managed-save<\/kbd><\/td>\n<td>list domains with managed save state<\/td>\n<\/tr>\n<tr>\n<td><kbd>--without-managed-save<\/kbd><\/td>\n<td>list domains without managed save<\/td>\n<\/tr>\n<tr>\n<td><kbd>--uuid<\/kbd><\/td>\n<td>list uuid&rsquo;s only<\/td>\n<\/tr>\n<tr>\n<td><kbd>--name<\/kbd><\/td>\n<td>list domain names only<\/td>\n<\/tr>\n<tr>\n<td><kbd>--table<\/kbd><\/td>\n<td>list table (default)<\/td>\n<\/tr>\n<tr>\n<td><kbd>--managed-save<\/kbd><\/td>\n<td>mark inactive domains with managed save state<\/td>\n<\/tr>\n<tr>\n<td><kbd>--title<\/kbd><\/td>\n<td>show domain title<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.cyberciti.biz\/faq\/howto-linux-delete-a-running-vm-guest-on-kvm\/virsh-kvm-list-vms\/\" target=\"_blank\" rel=\"noopener noreferrer\">Credits<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use the following command to list a kvm vm on Linux based server:# virsh list To list inactive &amp; active VM\/domains:# virsh list &#8211;allHere are all other options: Option Description &#8211;inactive list inactive domains &#8211;all list inactive &amp; active domains &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=197\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[21],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-kvm"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=197"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/197\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}