dkorzhevin
(Dmitry Korzhevin)
1
Hi guys!
I use opennebula 4.12.1 on centos 6 with KVM and all latest updates installed. I’m trying to use Centos 7 kvm template from marketplace (https://marketplace.c12g.com/appliance/53e7bf928fb81d6a69000002)
But have problems with network.
WM is booted without any problems, I can see it via VNC and perform basic interaction, but can’t connect to it via ssh and even ping.
Here is my template context: http://dpaste.com/1D29PFG
Please advice
Do you added network to the template after import, as noted in the VM description on Marketplace:
Note: Remember to update the template in order to add a network after importing it.
dkorzhevin
(Dmitry Korzhevin)
3
Anton, here is context that I use:
http://dpaste.com/1D29PFG
NIC=[NETWORK=“private”]
This works with other systems (centos 6, ubuntu 12.04, ubuntu 14.04)
dkorzhevin
(Dmitry Korzhevin)
4
Guys, thank you for support, I found source of problem - firewalld.
First of all, here is working context:
NIC=[NETWORK="private"]
MEMORY="1024"
GRAPHICS=[TYPE="vnc",LISTEN="0.0.0.0"]
CONTEXT=[SEARCH_DOMAIN="testlab.domain.com",DNS="8.8.8.8 8.8.4.4",SSH_PUBLIC_KEY="ssh-dss YOUR SSH KEY",SET_HOSTNAME="$name",NETWORK="YES"]
VCPU="1"
HYPERVISOR="kvm"
DISK=[IMAGE="CentOS-7"]
OS=[ARCH="x86_64"]
LOGO="images/logos/centos.png"
CPU="1.0"
After, you should manage firewalld zones, because default one in template - public zone, wich blocks all except ssh service.
As temporary test solution you can change default zone to trusted:
firewall-cmd --set-default-zone=trusted
After, you should check your routes and if need - add default GW:
ip route
ip route add default via GW