{"id":1574,"date":"2015-04-07T12:59:16","date_gmt":"2015-04-07T10:59:16","guid":{"rendered":"http:\/\/www.moucha.cc\/charon\/?p=1574"},"modified":"2015-04-07T12:59:16","modified_gmt":"2015-04-07T10:59:16","slug":"no-ip-address-in-proxmox-openvz-centos-7-container","status":"publish","type":"post","link":"http:\/\/www.moucha.cc\/charon\/no-ip-address-in-proxmox-openvz-centos-7-container\/","title":{"rendered":"No IP address in Proxmox OpenVZ CentOS 7 container"},"content":{"rendered":"<p>I have spend couple of hours to find out what is wrong with my <a href=\"https:\/\/www.atlassian.com\/software\/jira\">JIRA<\/a> migration to find out the problem was in CentOS upgrade from 7.0 to 7.1 :( So if your container has no venet interface and thus no IP address after reboot, the problem is in broken initscripts package and you can fix it by a patch to \/etc\/sysconfig\/network-scripts\/ifup-aliases from Redhat&#8217;s <a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=1207975\">Bugzilla<\/a>:<\/p>\n<p><code><br \/>\n--- ifup-aliases.orig\t2015-04-01 08:46:08.179879018 +0200<br \/>\n+++ ifup-aliases\t2015-04-01 08:46:52.558427785 +0200<br \/>\n@@ -261,7 +261,8 @@<br \/>\n                is_available ${parent_device} && \\<br \/>\n                ( grep -qswi \"up\" \/sys\/class\/net\/${parent_device}\/operstate ||  grep -qswi \"1\" \/sys\/class\/net\/${parent_device}\/carrier ) ; then<br \/>\n                    echo $\"Determining if ip address ${IPADDR} is already in use for device ${parent_device}...\"<br \/>\n-\t\t\t\t   if ! \/sbin\/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${parent_device} ${IPADDR} ; then<br \/>\n+\t\t\t\t   \/sbin\/arping -q -c 2 -w ${ARPING_WAIT:-3} -D -I ${parent_device} ${IPADDR}<br \/>\n+\t\t\t\t   if [ $? = 1 ]; then<br \/>\n \t\t\t\t\t   net_log $\"Error, some other host already uses address ${IPADDR}.\"<br \/>\n \t\t\t\t\t   return 1<br \/>\n \t\t\t\t   fi<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have spend couple of hours to find out what is wrong with my JIRA migration to find out the problem was in CentOS upgrade from 7.0 to 7.1 :( So if your container has no venet interface and thus no IP address after reboot, the problem is in broken initscripts package and you can&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[],"class_list":["post-1574","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p20Iro-po","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/posts\/1574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/comments?post=1574"}],"version-history":[{"count":1,"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/posts\/1574\/revisions"}],"predecessor-version":[{"id":1575,"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/posts\/1574\/revisions\/1575"}],"wp:attachment":[{"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/media?parent=1574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/categories?post=1574"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moucha.cc\/charon\/wp-json\/wp\/v2\/tags?post=1574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}