René's URL Explorer Experiment


Title: [VMware] Nics for routers or guest networks lose their IP on VM reboot · Issue #10640 · apache/cloudstack · GitHub

Open Graph Title: [VMware] Nics for routers or guest networks lose their IP on VM reboot · Issue #10640 · apache/cloudstack

X Title: [VMware] Nics for routers or guest networks lose their IP on VM reboot · Issue #10640 · apache/cloudstack

Description: problem I've noticed this issue a while ago and it has been present for at least 2 years since we have Cloudstack in production with VMware as hypervisor backend. Based on the logic I see here this issue should be present with other hype...

Open Graph Description: problem I've noticed this issue a while ago and it has been present for at least 2 years since we have Cloudstack in production with VMware as hypervisor backend. Based on the logic I see here this...

X Description: problem I've noticed this issue a while ago and it has been present for at least 2 years since we have Cloudstack in production with VMware as hypervisor backend. Based on the logic I see here ...

Opengraph URL: https://github.com/apache/cloudstack/issues/10640

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[VMware] Nics for routers or guest networks lose their IP on VM reboot","articleBody":"### problem\n\nI've noticed this issue a while ago and it has been present for at least 2 years since we have Cloudstack in production with VMware as hypervisor backend. Based on the logic I see here this issue should be present with other hypervisors however I did not see an issue with Xcp-ng hypervisor. I may have not tested Xcp well enough though.\n\nBased on the current logic, for external dhcp, Cloudstack tryies to fill in the gaps based on information from the hypervisor vm agent to have as much information for the NICs it is managing however this does not work well in practice especially when there is no external dhcp but only manual IP assignments. \n\nThe issue has two sides to it:\n1. VMs that have a NIC created in a shared guest network will \"randomly\" lose their IPs after a bit of time after a reboot. This is because Cloudstack as I mentioned above, will fetch wrongly the IP from the vm agent which can have one of two side effects. As an example say we have a VM with one NIC in a CS managed VPC network with DHCP, which gives the VM the IP 172.16.0.1, and one NIC in a guest network defined in CS. As an admin, I can configure an IP in Cloudstack for the 2nd NIC however on start/reboot, the external dhcp IP fetcher will attempt to get the IP from the VM guest tools. For VMware the code is getting the default IP which most of the time will be 172.16.0.1 which means we will end up in Cloudstack with two NICs having the same IP. The  2nd NIC will most likely have either \"NULL\" or 172.16.0.1 with the wrong network subnet.\n2. At the same time, I noticed that VPC routers are affected the same way sometimes, where the NIC for the control plane that is managed by ControlNetworkGuru will sometimes lose their IP. I am assuming that the issue is the same one but I am not certain, as I don't know how to reproduce this bug.\n\nI will follow up with a PR but I do believe some discussion is to be had around this whole external dhcp ip fetcher because it looks like it has some conflicts with manual assigning of ips.\n\n### versions\n\nACS: 4.19.1.0\nVMware vSphere 7.0.3\n\n### The steps to reproduce the bug\n\nFor normal VM bug:\n\nCreate a VPC and a network with DHCP. \nCreate a shared guest network with no DHCP.\n\nCreate a VM and allocate one nic in VPC network and one nic in shared network. \nRestart the VM and wait 5 minutes (or whatever time period is configured for external dhcp ip fetcher) and you will see that the nic for the shared guest network has the same ip as the dhcp nic.\n\nExample of result:\n\n![Image](https://github.com/user-attachments/assets/0b94cf72-c7d7-4d08-a6ec-7abceb232631)\n\n### What to do about it?\n\n_No response_","author":{"url":"https://github.com/alexandru-bagu","@type":"Person","name":"alexandru-bagu"},"datePublished":"2025-03-29T11:56:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/10640/cloudstack/issues/10640"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c6f420bf-a21f-4d5b-f8bb-02b455442ee6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB356:16C3D3:A7C101:E3C341:6A4ECF5A
html-safe-nonceb1f9dd2ad925c7e686eeb2601bca2586ca6a6f952fdf34a658f8cb88a337813d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzU2OjE2QzNEMzpBN0MxMDE6RTNDMzQxOjZBNEVDRjVBIiwidmlzaXRvcl9pZCI6Ijg0NTkzMzc2MjYyOTMyOTI4OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc45205c377699f79c110139fceed213560b28f37ea8d1e0bd50fa327f984b8a8
hovercard-subject-tagissue:2957969840
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/10640/issue_layout
twitter:imagehttps://opengraph.githubassets.com/13e28f5b26fcccad3d78c33c29a831a4d69e79c304f712d86fdfd97752e8196b/apache/cloudstack/issues/10640
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/13e28f5b26fcccad3d78c33c29a831a4d69e79c304f712d86fdfd97752e8196b/apache/cloudstack/issues/10640
og:image:altproblem I've noticed this issue a while ago and it has been present for at least 2 years since we have Cloudstack in production with VMware as hypervisor backend. Based on the logic I see here this...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexandru-bagu
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/10640#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F10640
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F10640
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/10640
Reloadhttps://github.com/apache/cloudstack/issues/10640
Reloadhttps://github.com/apache/cloudstack/issues/10640
Please reload this pagehttps://github.com/apache/cloudstack/issues/10640
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 536 https://github.com/apache/cloudstack/issues
Pull requests 266 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
#10641https://github.com/apache/cloudstack/pull/10641
[VMware] Nics for routers or guest networks lose their IP on VM reboothttps://github.com/apache/cloudstack/issues/10640#top
#10641https://github.com/apache/cloudstack/pull/10641
https://github.com/weizhouapache
component:vmwarehttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Avmware%22
4.20.2https://github.com/apache/cloudstack/milestone/39
https://github.com/alexandru-bagu
alexandru-baguhttps://github.com/alexandru-bagu
on Mar 29, 2025https://github.com/apache/cloudstack/issues/10640#issue-2957969840
https://private-user-images.githubusercontent.com/5436943/428311946-0b94cf72-c7d7-4d08-a6ec-7abceb232631.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM1NTAwODcsIm5iZiI6MTc4MzU0OTc4NywicGF0aCI6Ii81NDM2OTQzLzQyODMxMTk0Ni0wYjk0Y2Y3Mi1jN2Q3LTRkMDgtYTZlYy03YWJjZWIyMzI2MzEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDcwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA3MDhUMjIyOTQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDUzNTEzYjM4ZTE2MjU4MzViZjIwMDU4NTZlNDZkZGNmMGYzOTQ0NzVlMmI0Njk3NTU0ZDk2NGY3YjBiMGM0OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.1t83n8u1yydBerNIh513ULEy0_r6FpK2mkjF9zn1joU
weizhouapachehttps://github.com/weizhouapache
component:vmwarehttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Avmware%22
4.20.2https://github.com/apache/cloudstack/milestone/39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.