Bridged only? Cannot use Host only networking?

All docs seem to say OVA has to use bridged networking and don’t use NAT … but simply cannot do that, have to use host only network as using openvswitch to control the networks. However at command line when run the grep cloud-init /tmp/pmm-server-console.log I get:

Starting Initial cloud-init job (pre-networking)…
[ 13.547195] cloud-init[733]: Cloud-init v. 0.7.5 running ‘init-local’ at Tue, 09 May 2017 09:44:46 +0000. Up 13.40 seconds.
localhost login: [ 45.375352] cloud-init[1044]: Cloud-init v. 0.7.5 running ‘init’ at Tue, 09 May 2017 09:45:18 +0000. Up 45.20 seconds.
[ 45.500484] cloud-init[1044]: ci-info: +++++++++++++++++++++++Net device info+++++++++++++++++++++++
[ 45.500774] cloud-init[1044]: ci-info: ±-------±-----±----------±----------±------------------+
[ 45.500878] cloud-init[1044]: ci-info: | Device | Up | Address | Mask | Hw-Address |
[ 45.500977] cloud-init[1044]: ci-info: ±-------±-----±----------±----------±------------------+
[ 45.501118] cloud-init[1044]: ci-info: | lo: | True | 127.0.0.1 | 255.0.0.0 | . |
[ 45.502071] cloud-init[1044]: ci-info: | eth0: | True | . | . | 08:00:27:ff:d0:4d |
[ 45.502185] cloud-init[1044]: ci-info: ±-------±-----±----------±----------±------------------+
[ 45.502285] cloud-init[1044]: ci-info: !!!Route info failed!!!
[ 46.352303] cloud-init[1044]: 2017-05-09 09:45:19,494 - util.py[WARNING]: Failed accessing user data.
[ 47.198576] cloud-init[1758]: Cloud-init v. 0.7.5 running ‘modules:config’ at Tue, 09 May 2017 09:45:20 +0000. Up 47.12 seconds.
[ 47.477027] cloud-init[1819]: Cloud-init v. 0.7.5 running ‘modules:final’ at Tue, 09 May 2017 09:45:20 +0000. Up 47.40 seconds.
[ 47.520166] cloud-init[1819]: 2017-05-09 09:45:20,663 - util.py[WARNING]: Failed running /var/lib/cloud/scripts/per-boot/show-pmm-url [1]
[ 47.520298] cloud-init[1819]: 2017-05-09 09:45:20,663 - cc_scripts_per_boot.py[WARNING]: Failed to run module scripts-per-boot (per-boot in /var/lib/cloud/scripts/per-boot)
[ 47.520426] cloud-init[1819]: 2017-05-09 09:45:20,663 - util.py[WARNING]: Running scripts-per-boot (<module ‘cloudinit.config.cc_scripts_per_boot’ from ‘/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_per_boot.pyc’>) failed
[ 47.534614] cloud-init[1819]: Cloud-init v. 0.7.5 finished at Tue, 09 May 2017 09:45:20 +0000. Datasource DataSourceNone. Up 47.52 seconds
[ 47.534772] cloud-init[1819]: 2017-05-09 09:45:20,672 - cc_final_message.py[WARNING]: Used fallback datasource

Which would seem a bit obvious… no networking address applied to eth0 so the DHCP bit isn’t working. Anyone else got OVA to run using host only networking? I can start up another vm and it picks up an IP address fine.

Or anyone done this with a vagrantfile? Build a Centos/Debian box and then install in the normal way (if there was an install available? I could not find one)?

PMM-Server is closed right I couldn’t find any source?

Dom

Hi rdab100 ,
You can add a DHCP server to VirtualBox in a Host Only Adapter, then attach that network to your PMM server. Then you should get a DHCP address.

In fact PMM is fully open source, if you look at [url]https://github.com/percona[/url] you can find either our forks of the core products or links back to the relevant GitHub locations. If you’re unable to find a particular product please let me know and I’ll get you the link. Thanks for your question,

Hi Dom,

you can use Host-only network, but it is not simple to configure VirtualBox itself, you need to enable DHCP and configure port-forwarding externally.

how to enable DHCP in [url]http://coding4streetcred.com/blog/post/VirtualBox-Configuring-Static-IPs-for-VMs[/url]
after that, you can run database VMs inside this Host-only network or you need to configure port-forwarding for PMM Server externally via iptables .
internal VirtualBox port-forwarding doesn’t work in Host-only network, see [url]virtualbox.org • View topic - Port forward to host-only networked guests possible?

about vagrantfile - it is hard to run PMM image inside vagrant,
because we don’t want to place publically available vagrant ssh key inside our image (it is not secure).

OK looking in the github.

Michael,

[URL]https://github.com/percona/pmm-server[/URL] tnx AND [url]Percona Monitoring and Management contain lots of info for sure.