# Hyper V Graylog

**URL:** <https://community.graylog.org/t/hyper-v-graylog/12697>\
**Category:** Graylog Central (peer support)\
**Created:** [November 10, 2019, 4:57pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697 "2019-11-10T16:57:03Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 10, 2019, 4:57pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/1 "2019-11-10T16:57:04Z")

</div>

I run Graylog on Hyper V, but there is no network connection, there is message about “failed to connect to lvmetad”

![Annotation%202019-11-10%20104044](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/1/1fae854df033eeb49f931a61c6fdb6914705cc95.png)

---

<div class="post-metadata">

**Author:** ![shoothub](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/shoothub/32/6412_2.png) [@shoothub](https://community.graylog.org/u/shoothub)\
**Post date:** [November 11, 2019, 9:05am UTC](https://community.graylog.org/t/hyper-v-graylog/12697/2 "2019-11-11T09:05:44Z")

</div>

If you use OVA, this VM by default support obtaining IP address from DHCP.  
So first check your network interface loging into ubuntu using username: `ubuntu` and password: `ubuntu`.  
After that check your interface name and ip adress using command: `sudo ip addr show`  
If you don’t have DHCP in your network, you have to configure IP address manualy using netplat like this:

`sudo vim /etc/netplan/01-netcfg.yaml`

> network:  
> version: 2  
> renderer: networkd  
> ethernets:  
> ens160:  
> addresses:  
> - 10.0.0.10/24  
> gateway4: 10.0.0.1  
> nameservers:  
> addresses: [10.0.0.1]

_Change line ens160: to your real interface name (output of command: sudo ip addr show)_  
`sudo netplat apply`

Graylog show default web interface password for admin user only first time on console (it’s generated). So if you restart your VM second time, you can’t see it. If so you have 2 options:

1. Either generate your own password and setup it to parameter `root_password_sha2`  
sudo vim /etc/graylog/server/server.conf  
[https://docs.graylog.org/en/3.1/pages/configuration/server.conf.html#general](https://docs.graylog.org/en/3.1/pages/configuration/server.conf.html#general)
2. Or remove generated password on parameter `root_password_sha2` so line like will look like this: `root_password_sha2 = `. After that create file /var/lib/graylog-server using command: `sudo touch /var/lib/graylog-server/firstboot` and reboot. After reboot you should see new password on console before login.

> sudo vim /etc/graylog/server/server.conf  
> sudo touch /var/lib/graylog-server/firstboot  
> sudo reboot

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 11, 2019, 11:39am UTC](https://community.graylog.org/t/hyper-v-graylog/12697/3 "2019-11-11T11:39:22Z")

</div>

Can you tell me how to save the file after editing, i edited the file in ova but how do i exit and save. In terminal.

---

<div class="post-metadata">

**Author:** ![shoothub](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/shoothub/32/6412_2.png) [@shoothub](https://community.graylog.org/u/shoothub)\
**Post date:** [November 11, 2019, 11:51am UTC](https://community.graylog.org/t/hyper-v-graylog/12697/4 "2019-11-11T11:51:52Z")

</div>

To save file in vim editor, simply press: `Esc` and type `:wq` and press `Enter`

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 11, 2019, 12:30pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/5 "2019-11-11T12:30:56Z")

</div>

and what shortcut for editing

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 11, 2019, 12:41pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/6 "2019-11-11T12:41:47Z")

</div>

![Annotation%202019-11-11%20061845](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/c/cd23dadb6bebfadc2ec87954771e991c482ee98d.png)

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 11, 2019, 12:42pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/7 "2019-11-11T12:42:31Z")

</div>

![Annotation%202019-11-11%20062425](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/6/695b5b96156d7d9aa48d5902fa10aa2ac7d4a6f8.png)

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 11, 2019, 12:42pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/8 "2019-11-11T12:42:53Z")

</div>

![Annotation%202019-11-11%20062532](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/5/5d25d35422bc7d1bbab7f0bda8eb1b8fd7298b83.png)

---

<div class="post-metadata">

**Author:** ![shoothub](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/shoothub/32/6412_2.png) [@shoothub](https://community.graylog.org/u/shoothub)\
**Post date:** [November 11, 2019, 1:42pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/9 "2019-11-11T13:42:43Z")

</div>

Please use this indentation… so either add space to desired lines, or replace with next block

```
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s10f0:
      addresses:
        - 192.168.40.62/24
      gateway4: 192.168.40.1
      nameservers:
        addresses: [192.168.40.1]
```

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 11, 2019, 9:48pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/10 "2019-11-11T21:48:01Z")

</div>

@shoothub hanks, all up and running 🙂

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 11, 2019, 11:45pm UTC](https://community.graylog.org/t/hyper-v-graylog/12697/11 "2019-11-11T23:45:06Z")

</div>

Can you tell me how do I login as root, in terminal

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 12, 2019, 12:01am UTC](https://community.graylog.org/t/hyper-v-graylog/12697/12 "2019-11-12T00:01:36Z")

</div>

![Annotation%202019-11-11%20174547](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/8/82f41bd57dbfc1d622a5d2465afc228ea43dd00a.png)

---

<div class="post-metadata">

**Author:** ![Karlis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/karlis/32/4798_2.png) [@Karlis](https://community.graylog.org/u/Karlis)\
**Post date:** [November 12, 2019, 7:00am UTC](https://community.graylog.org/t/hyper-v-graylog/12697/13 "2019-11-12T07:00:48Z")

</div>

`sudo (your command)`  
[https://wiki.centos.org/TipsAndTricks/BecomingRoot](https://wiki.centos.org/TipsAndTricks/BecomingRoot)

---

<div class="post-metadata">

**Author:** ![manjotsc](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/manjotsc/32/5306_2.png) [@manjotsc](https://community.graylog.org/u/manjotsc)\
**Post date:** [November 12, 2019, 8:20am UTC](https://community.graylog.org/t/hyper-v-graylog/12697/14 "2019-11-12T08:20:00Z")

</div>

Used sudo -i to get as root

Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [November 26, 2019, 8:20am UTC](https://community.graylog.org/t/hyper-v-graylog/12697/15 "2019-11-26T08:20:01Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
