New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DHCP in Virtual Router is not working #8451
Comments
@li-liwen , this is just how VPCs and isolated networks work. CloudStack administers ip addresses for client VMs, not the VR. |
@DaanHoogland @li-liwen
|
Thank you all for the quick reply. I am relatively new to cloudstack and cloud environments, so please correct me if I have any misunderstanding.
@DaanHoogland I can see that the Cloudstack has assigned the IP address to the instance in the WebUI. But I suppose that VR will use DHCP to automatically assign the IP address to the VM? As I plan to use cloud images with ssh keys (no default password), it would be impossible to assign IP address manually after the instance has been created. If there is a way to assign the IP address through cloud-init config file that is transparent to the users (e.g. vendor config?), I think it would also be acceptable.
@weizhouapache I have tried creating an isolated network with no VPC, but still the same result. (Not getting IP address through DHCP, but everything works fine after manual assigning through console. Please help me if you have any idea on how to debug. Or if there's any more information or logs I should provide, please tell me. Thanks. |
@li-liwen |
@weizhouapache Thank you for you advice. It turns out that the cloud images can get IP address properly after configure the firewall of the VR properly (I guess through cloud-init?). However, the ISO image (both ubuntu and windows) can't get IP address through DHCP. I tested the ISO image in both VPC and isolated network, neither of them is working. I am wondering is that the supposed behavior? Or I should do further debugging? Thanks. |
what rules did you add in the VR? |
@weizhouapache I first used the cloud image and set the port forwarding for ssh. I didn't configure the Egress rule so I can't connect to the instance through ssh. As cloud image doesn't have default password, I cannot login through the console. I tried an ISO image but failed to get address through DHCP. After configuring the egress rule, I was able to connect the cloud image instance through ssh. But I was still unable to get ip address through DHCP in the ISO booted instance. However, I tried a Windows ISO image today, and it acquired the IP address successfully. I am not sure what I have configured to make it working, but it just worked today. I was trying to resolve #8252 this issue and changed all my compute offering from 2.3GHz to 100MHz. I can't remember I did any other configuration since that day. Although quite curious, I believe the problem is resolved. Thank you for your help. If I have any misunderstanding or misconfiguration, please correct me. If everything seems ok, the issue can be closed. |
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
N/A
SUMMARY
VMs are not able to acquire IP address from the virtual router.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: