{"id":13407,"date":"2026-03-16T18:51:22","date_gmt":"2026-03-16T15:51:22","guid":{"rendered":"https:\/\/cloudspinx.com\/?p=13407"},"modified":"2026-03-16T18:51:22","modified_gmt":"2026-03-16T15:51:22","slug":"how-to-check-vm-instance-boot-logs-in-openstack","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/how-to-check-vm-instance-boot-logs-in-openstack\/","title":{"rendered":"How To Check VM Instance Boot Logs in OpenStack"},"content":{"rendered":"\n<p>Do you have an issue on your <a href=\"https:\/\/computingforgeeks.com\/how-to-fix-openstack-nova-error-novalidhost-no-valid-host-was-found-there-are-not-enough-hosts-available\/\">OpenStack<\/a> where the instance is not booting up properly?, Or cloud-init data injection to the virtual machine failing on OpenStack as a result of metadata server not being reachable?.<\/p>\n\n\n\n<p>Let&#8217;s create a test <a href=\"https:\/\/computingforgeeks.com\/deploy-vm-instance-on-openstack-with-terraform\/\">VM instance<\/a> to demonstrate how you can check <a href=\"https:\/\/computingforgeeks.com\/how-to-deploy-vm-instance-on-google-cloud-using-terraform\/\">VM instance<\/a> logs on OpenStack compute platform.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-7-color\">openstack server create --flavor linux-advanced-vps   --net public   --key-name jkmutai   --security-group allow_all   --image \"Rocky-Linux-9\"   Rocky-Linux-9<\/mark>\n+--------------------------------------+------------------------------------------------------+\n| Field                                | Value                                                |\n+--------------------------------------+------------------------------------------------------+\n| OS-DCF:diskConfig                    | MANUAL                                               |\n| OS-EXT-AZ:availability_zone          |                                                      |\n| OS-EXT-SRV-ATTR:host                 | None                                                 |\n| OS-EXT-SRV-ATTR:hypervisor_hostname  | None                                                 |\n| OS-EXT-SRV-ATTR:instance_name        |                                                      |\n| OS-EXT-STS:power_state               | NOSTATE                                              |\n| OS-EXT-STS:task_state                | scheduling                                           |\n| OS-EXT-STS:vm_state                  | building                                             |\n| OS-SRV-USG:launched_at               | None                                                 |\n| OS-SRV-USG:terminated_at             | None                                                 |\n| accessIPv4                           |                                                      |\n| accessIPv6                           |                                                      |\n| addresses                            |                                                      |\n| adminPass                            | 2DVtdhoq9PjV                                         |\n| config_drive                         |                                                      |\n| created                              | 2024-06-19T15:00:33Z                                 |\n| flavor                               | linux-advanced-vps (12)                              |\n| hostId                               |                                                      |\n| id                                   | cf1fdd2f-3118-4052-a629-797ccacbd2a4                 |\n| image                                | Rocky-Linux-9 (6774019b-df26-4841-8842-689e31aff1d7) |\n| key_name                             | jkmutai                                              |\n| name                                 | Rocky-Linux-9                                        |\n| os-extended-volumes:volumes_attached | &#91;]                                                   |\n| progress                             | 0                                                    |\n| project_id                           | 3dfc8a0aec3d409696daa2c825b85a3f                     |\n| properties                           |                                                      |\n| security_groups                      | name='7abe316b-ad8b-4dc0-9b18-d4bbe6781a96'          |\n| status                               | BUILD                                                |\n| updated                              | 2024-06-19T15:00:33Z                                 |\n| user_id                              | a381926a111e43d288f927baf92e78c8                     |\n+--------------------------------------+------------------------------------------------------+<\/code><\/pre>\n\n\n\n<p>Check server status and get the instance name or instance ID by running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-7-color\">openstack server list<\/mark>\n+--------------------------------------+---------------+--------+-----------------------+---------------+--------------------+\n| ID                                   | Name          | Status | Networks              | Image         | Flavor             |\n+--------------------------------------+---------------+--------+-----------------------+---------------+--------------------+\n| 5e7e6c8d-4d80-4102-9eb3-81a086112751 | Rocky-Linux-9 | ACTIVE | public=198.41.183.233 | Rocky-Linux-9 | linux-advanced-vps |\n+--------------------------------------+---------------+--------+-----------------------+---------------+--------------------+<\/code><\/pre>\n\n\n\n<p>To get OpenStack instance show console output, the command to use is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openstack console log show <strong>&lt;vm-instance&gt;<\/strong><\/code><\/pre>\n\n\n\n<p>Example below shows console logs for <strong>Rocky-Linux-9<\/strong> instance.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openstack console log show <strong>Rocky-Linux-9<\/strong><\/code><\/pre>\n\n\n\n<p>Sample output from command execution.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.....\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mdracut pre-udev hook&#91;0m.\n         Starting &#91;0;1;39mRule-based Manage\ufffd\ufffd\ufffdfor Device Events and Files&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Started &#91;0;1;39mRule-based Manager for Device Events and Files&#91;0m.\n         Starting &#91;0;1;39mdracut pre-trigger hook&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mdracut pre-trigger hook&#91;0m.\n         Starting &#91;0;1;39mColdplug All udev Devices&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mColdplug All udev Devices&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mSystem Initialization&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mBasic System&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mNetwork&#91;0m.\n         Starting &#91;0;1;39mdracut initqueue hook&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Started &#91;0;1;39mHardware RNG Entropy Gatherer Daemon&#91;0m.\n&#91;    1.689594] virtio_blk virtio2: 1\/0\/0 default\/read\/poll queues\n&#91;    1.701024] virtio_blk virtio2: &#91;vda] 167772160 512-byte logical blocks (85.9 GB\/80.0 GiB)\n&#91;    1.721627]  vda: vda1 vda2 vda3 vda4\n&#91;&#91;0;32m  OK  &#91;0m] Found device &#91;0;1;39m\/dev\/disk\/by-label\/rocky&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mInitrd Root Device&#91;0m.\n&#91;    1.823181] scsi host0: ata_piix\n&#91;    1.827731] scsi host1: ata_piix\n&#91;    1.827840] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0e0 irq 14 lpm-pol 0\n&#91;    1.827842] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0e8 irq 15 lpm-pol 0\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mdracut initqueue hook&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mPreparation for Remote File Systems&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mRemote Encrypted Volumes&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mRemote File Systems&#91;0m.\n         Starting &#91;0;1;39mdracut pre-mount hook&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mdracut pre-mount hook&#91;0m.\n         Starting &#91;0;1;39mFile System Check on \/dev\/disk\/by-label\/rocky&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mFile System Check on \/dev\/disk\/by-label\/rocky&#91;0m.\n         Mounting &#91;0;1;39m\/sysroot&#91;0m...\n&#91;    2.511799] SGI XFS with ACLs, security attributes, scrub, quota, no debug enabled\n&#91;    2.540954] XFS (vda4): Mounting V5 Filesystem 5b6a1614-08e4-4d63-92fe-cee0bc83425f\n&#91;    2.585105] XFS (vda4): Ending clean mount\n&#91;    2.597811] xfs filesystem being mounted at \/sysroot supports timestamps until 2038 (0x7fffffff)\n&#91;&#91;0;32m  OK  &#91;0m] Mounted &#91;0;1;39m\/sysroot&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mInitrd Root File System&#91;0m.\n         Starting &#91;0;1;39mMountpoints Configured in the Real Root&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mMountpoints Configured in the Real Root&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mInitrd File Systems&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Reached target &#91;0;1;39mInitrd Default Target&#91;0m.\n         Starting &#91;0;1;39mdracut pre-pivot and cleanup hook&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Finished &#91;0;1;39mdracut pre-pivot and cleanup hook&#91;0m.\n         Starting &#91;0;1;39mCleaning Up and Shutting Down Daemons&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mNetwork&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mRemote Encrypted Volumes&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mTimer Units&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Closed &#91;0;1;39mD-Bus System Message Bus Socket&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mdracut pre-pivot and cleanup hook&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mInitrd Default Target&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mInitrd Root Device&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mInitrd \/usr File System&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mRemote File Systems&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mPreparation for Remote File Systems&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mdracut pre-mount hook&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mdracut initqueue hook&#91;0m.\n         Stopping &#91;0;1;39mHardware RNG Entropy Gatherer Daemon&#91;0m...\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mSetup Virtual Console&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mHardware RNG Entropy Gatherer Daemon&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mBasic System&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mPath Units&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mSlice Units&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mSocket Units&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mSystem Initialization&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mLocal Encrypted Volumes&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mDispatch Password \ufffd\ufffd\ufffdts to Console Directory Watch&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mLocal File Systems&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped target &#91;0;1;39mSwaps&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mApply Kernel Variables&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mLoad Kernel Modules&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mCreate Volatile Files and Directories&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mColdplug All udev Devices&#91;0m.\n&#91;&#91;0;32m  OK  &#91;0m] Stopped &#91;0;1;39mdracut pre-trigger hook&#91;0m.\n....<\/code><\/pre>\n\n\n\n<p>You can dump the contents of the logs to a file for later review.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openstack console log show <strong>&lt;vm-instance&gt;<\/strong> &gt; <em>instance_logs_file.txt<\/em><\/code><\/pre>\n\n\n\n<p>To get VNC console access URL which can be accessed from your web browser, use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> openstack console url show <strong>&lt;vm-instance&gt;<\/strong><\/code><\/pre>\n\n\n\n<p>Here is the sample output. We can see the URL that you can open in your browser to access instance console.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>+----------+-----------------------------------------------------------------------------------------------+\n| Field    | Value                                                                                         |\n+----------+-----------------------------------------------------------------------------------------------+\n| protocol | vnc                                                                                           |\n| type     | novnc                                                                                         |\n| url      | http:\/\/198.41.183.233:6080\/vnc_auto.html?path=%3Ftoken%3D9ea9052e-0e7e-46b3-983e-198151d2e88d |\n+----------+-----------------------------------------------------------------------------------------------+<\/code><\/pre>\n\n\n\n<p>As CloudSpinx, we can help you with different OpenStack administration tasks and issue resolution. You can chat with us and we will he happy to help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you have an issue on your OpenStack where the instance is not booting up properly?, Or cloud-init data injection to the virtual machine failing on OpenStack as a result of metadata server not being reachable?. Let&#8217;s create a test VM instance to demonstrate how you can check VM instance logs on OpenStack compute platform. &#8230; <a title=\"How To Check VM Instance Boot Logs in OpenStack\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/how-to-check-vm-instance-boot-logs-in-openstack\/\" aria-label=\"Read more about How To Check VM Instance Boot Logs in OpenStack\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":14146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[256],"class_list":["post-13407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-openstack","tag-openstack"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/13407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=13407"}],"version-history":[{"count":0,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/13407\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/14146"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=13407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=13407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=13407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}