GCE (Google Compute Engine) Instance not Receiving DHCP ipv4 address - Support required











up vote
0
down vote

favorite












Symptom



My new VM instance (Linux Ubuntu - 18.04, created from a working image) does not receive an internal ipv4 address via DHCP (provided by GCE).



Diagnostics / Steps taken so far




  1. Removed virbr0 and recreated virbr0 interface via console access.

  2. Deleted instance and recreated 2x with the same result.

  3. SSH fails due to no ipv4 address.

  4. google shell fails due to no ipv4 address.

  5. console access is accessible.

  6. Tried changing hostname via meta tag and cron job with no luck.


Notes




  1. A working machine created in the same way receives an address and a ens4 interface is created. New machines do not get this.

  2. New builds were created using the cloud console including the license for VMX capabilities.

  3. I wonder if the reason dhcp fails is due to the hostname of the machine not matching the instance name due to the build process. However, the documents i have read indicate, once the ipv4 address is received, the hostname is updated?? Need to verify this.


Any ideas / support would be appreciated.










share|improve this question






















  • Some Progress - I have now managed to get an ipv4 address by manually running the dhcp client after a boot (it stops once the machine has been restarted). Not sure why it does this when the image it was copied from did not not this but hey ho.
    – Gary Constable
    Nov 7 at 17:02










  • What does created from a working image mean? Is this a GCP image or an image from a machine outside GCP?
    – John Hanley
    Nov 7 at 19:33










  • Forgive my ignorance... what does this have to do with programming or development?
    – jww
    Nov 8 at 4:34










  • Hello, I've flagged this question as I feel it belongs on a different forum such as Serverfault. Please try asking this question on Serverfault.
    – neilH
    Nov 8 at 14:28















up vote
0
down vote

favorite












Symptom



My new VM instance (Linux Ubuntu - 18.04, created from a working image) does not receive an internal ipv4 address via DHCP (provided by GCE).



Diagnostics / Steps taken so far




  1. Removed virbr0 and recreated virbr0 interface via console access.

  2. Deleted instance and recreated 2x with the same result.

  3. SSH fails due to no ipv4 address.

  4. google shell fails due to no ipv4 address.

  5. console access is accessible.

  6. Tried changing hostname via meta tag and cron job with no luck.


Notes




  1. A working machine created in the same way receives an address and a ens4 interface is created. New machines do not get this.

  2. New builds were created using the cloud console including the license for VMX capabilities.

  3. I wonder if the reason dhcp fails is due to the hostname of the machine not matching the instance name due to the build process. However, the documents i have read indicate, once the ipv4 address is received, the hostname is updated?? Need to verify this.


Any ideas / support would be appreciated.










share|improve this question






















  • Some Progress - I have now managed to get an ipv4 address by manually running the dhcp client after a boot (it stops once the machine has been restarted). Not sure why it does this when the image it was copied from did not not this but hey ho.
    – Gary Constable
    Nov 7 at 17:02










  • What does created from a working image mean? Is this a GCP image or an image from a machine outside GCP?
    – John Hanley
    Nov 7 at 19:33










  • Forgive my ignorance... what does this have to do with programming or development?
    – jww
    Nov 8 at 4:34










  • Hello, I've flagged this question as I feel it belongs on a different forum such as Serverfault. Please try asking this question on Serverfault.
    – neilH
    Nov 8 at 14:28













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Symptom



My new VM instance (Linux Ubuntu - 18.04, created from a working image) does not receive an internal ipv4 address via DHCP (provided by GCE).



Diagnostics / Steps taken so far




  1. Removed virbr0 and recreated virbr0 interface via console access.

  2. Deleted instance and recreated 2x with the same result.

  3. SSH fails due to no ipv4 address.

  4. google shell fails due to no ipv4 address.

  5. console access is accessible.

  6. Tried changing hostname via meta tag and cron job with no luck.


Notes




  1. A working machine created in the same way receives an address and a ens4 interface is created. New machines do not get this.

  2. New builds were created using the cloud console including the license for VMX capabilities.

  3. I wonder if the reason dhcp fails is due to the hostname of the machine not matching the instance name due to the build process. However, the documents i have read indicate, once the ipv4 address is received, the hostname is updated?? Need to verify this.


Any ideas / support would be appreciated.










share|improve this question













Symptom



My new VM instance (Linux Ubuntu - 18.04, created from a working image) does not receive an internal ipv4 address via DHCP (provided by GCE).



Diagnostics / Steps taken so far




  1. Removed virbr0 and recreated virbr0 interface via console access.

  2. Deleted instance and recreated 2x with the same result.

  3. SSH fails due to no ipv4 address.

  4. google shell fails due to no ipv4 address.

  5. console access is accessible.

  6. Tried changing hostname via meta tag and cron job with no luck.


Notes




  1. A working machine created in the same way receives an address and a ens4 interface is created. New machines do not get this.

  2. New builds were created using the cloud console including the license for VMX capabilities.

  3. I wonder if the reason dhcp fails is due to the hostname of the machine not matching the instance name due to the build process. However, the documents i have read indicate, once the ipv4 address is received, the hostname is updated?? Need to verify this.


Any ideas / support would be appreciated.







linux google-compute-engine ipv4 dhcp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 7 at 16:27









Gary Constable

41




41












  • Some Progress - I have now managed to get an ipv4 address by manually running the dhcp client after a boot (it stops once the machine has been restarted). Not sure why it does this when the image it was copied from did not not this but hey ho.
    – Gary Constable
    Nov 7 at 17:02










  • What does created from a working image mean? Is this a GCP image or an image from a machine outside GCP?
    – John Hanley
    Nov 7 at 19:33










  • Forgive my ignorance... what does this have to do with programming or development?
    – jww
    Nov 8 at 4:34










  • Hello, I've flagged this question as I feel it belongs on a different forum such as Serverfault. Please try asking this question on Serverfault.
    – neilH
    Nov 8 at 14:28


















  • Some Progress - I have now managed to get an ipv4 address by manually running the dhcp client after a boot (it stops once the machine has been restarted). Not sure why it does this when the image it was copied from did not not this but hey ho.
    – Gary Constable
    Nov 7 at 17:02










  • What does created from a working image mean? Is this a GCP image or an image from a machine outside GCP?
    – John Hanley
    Nov 7 at 19:33










  • Forgive my ignorance... what does this have to do with programming or development?
    – jww
    Nov 8 at 4:34










  • Hello, I've flagged this question as I feel it belongs on a different forum such as Serverfault. Please try asking this question on Serverfault.
    – neilH
    Nov 8 at 14:28
















Some Progress - I have now managed to get an ipv4 address by manually running the dhcp client after a boot (it stops once the machine has been restarted). Not sure why it does this when the image it was copied from did not not this but hey ho.
– Gary Constable
Nov 7 at 17:02




Some Progress - I have now managed to get an ipv4 address by manually running the dhcp client after a boot (it stops once the machine has been restarted). Not sure why it does this when the image it was copied from did not not this but hey ho.
– Gary Constable
Nov 7 at 17:02












What does created from a working image mean? Is this a GCP image or an image from a machine outside GCP?
– John Hanley
Nov 7 at 19:33




What does created from a working image mean? Is this a GCP image or an image from a machine outside GCP?
– John Hanley
Nov 7 at 19:33












Forgive my ignorance... what does this have to do with programming or development?
– jww
Nov 8 at 4:34




Forgive my ignorance... what does this have to do with programming or development?
– jww
Nov 8 at 4:34












Hello, I've flagged this question as I feel it belongs on a different forum such as Serverfault. Please try asking this question on Serverfault.
– neilH
Nov 8 at 14:28




Hello, I've flagged this question as I feel it belongs on a different forum such as Serverfault. Please try asking this question on Serverfault.
– neilH
Nov 8 at 14:28

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53193705%2fgce-google-compute-engine-instance-not-receiving-dhcp-ipv4-address-support-r%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53193705%2fgce-google-compute-engine-instance-not-receiving-dhcp-ipv4-address-support-r%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini