You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "frankpersist@gmail.com" <fr...@gmail.com> on 2016/01/27 15:38:17 UTC

vm doesn't hava ip address

Hi, all
   My cloudstack version is 4.6 and I have created a vm, in UI the ip address is 192.168.85.200, but  when I used vnc to login in the vm there is only one address 127.0.0.1 when I input "ifconfig". I would like to access Internet from this vm, what should I do?
   Thank you.



frankpersist@gmail.com

Re: Re: vm doesn't hava ip address

Posted by "frankpersist@gmail.com" <fr...@gmail.com>.
Thank you ilya.
     My question has been solved. The reason is in my vm, dhcp client not been configured.



frankpersist@gmail.com
 
From: ilya
Date: 2016-01-28 09:52
To: users
Subject: Re: vm doesn't hava ip address
several possibilities,
 
usually implies router vm could not reach the guest vm - due to various
reasons, i would check the network and trunking.
 
secondly it could also relate to networking on the linux os, if you do
"ifconfig -a", do you see eth1 perhaps?
 
1) assuming its rhel based os, you may want to confirm ifcfg-eth0 does
not have UUID or MAC hardcoded
2) udev rules for network stack could also map the MAC to specific eth
interface. its is safe to delete 70-net-persistent.rules file from
/ec/udev.d/
 
if 1 and 2 are true for you, fix the issue and reboot
 
try dhclient -r && dhclient ethX
 
otherwise, we are missing context here - you told us nothing about your
setup, hence i cant be any more helpful
 
 
goodluck
ilya
 
 
 
On 1/27/16 6:38 AM, frankpersist@gmail.com wrote:
> Hi, all
>    My cloudstack version is 4.6 and I have created a vm, in UI the ip address is 192.168.85.200, but  when I used vnc to login in the vm there is only one address 127.0.0.1 when I input "ifconfig". I would like to access Internet from this vm, what should I do?
>    Thank you.
> 
> 
> 
> frankpersist@gmail.com
> 

Re: vm doesn't hava ip address

Posted by ilya <il...@gmail.com>.
several possibilities,

usually implies router vm could not reach the guest vm - due to various
reasons, i would check the network and trunking.

secondly it could also relate to networking on the linux os, if you do
"ifconfig -a", do you see eth1 perhaps?

1) assuming its rhel based os, you may want to confirm ifcfg-eth0 does
not have UUID or MAC hardcoded
2) udev rules for network stack could also map the MAC to specific eth
interface. its is safe to delete 70-net-persistent.rules file from
/ec/udev.d/

if 1 and 2 are true for you, fix the issue and reboot

try dhclient -r && dhclient ethX

otherwise, we are missing context here - you told us nothing about your
setup, hence i cant be any more helpful


goodluck
ilya



On 1/27/16 6:38 AM, frankpersist@gmail.com wrote:
> Hi, all
>    My cloudstack version is 4.6 and I have created a vm, in UI the ip address is 192.168.85.200, but  when I used vnc to login in the vm there is only one address 127.0.0.1 when I input "ifconfig". I would like to access Internet from this vm, what should I do?
>    Thank you.
> 
> 
> 
> frankpersist@gmail.com
> 

Re: RE: vm doesn't hava ip address

Posted by "frankpersist@gmail.com" <fr...@gmail.com>.
Hi Angus,
  Thank you for your reply.
  yse, I used the built-in vm template and console proxy to log in my vm.
  
  vm infor:
  vm Ip Address: 10.1.1.248
  vm Gateway 10.1.1.1
  Zone infor:
  Guest CIDR 10.1.1.0/24
  Virtual router info:
  public ip add:192.168.1.102
  guest ip address 10.1.1.1
  link local ip address 169.254.0.59
  host info:
   ip add: 192.168.85.135
   
  Above information from cloudstack UI.
  




frankpersist@gmail.com
 
From: Paul Angus
Date: 2016-01-27 23:16
To: users@cloudstack.apache.org
Subject: RE: vm doesn't hava ip address
Hi Frank,

By 'VNC' do you mean the console proxy? Did you use the built-in vm template or your own?
And can you tell us a little more about your environment? Your physical infra may not be configured correctly for guest networking 


Paul Angus 
VP Technology ,  ShapeBlue 
d:  +44 203 617 0528 | s: +44 203 603 0540  |  m:  +44 7711 418784 
e:  paul.angus@shapeblue.com | t: @cloudyangus  |  w:  www.shapeblue.com 
a:  53 Chandos Place, Covent Garden London WC2N 4HS UK 
Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.


-----Original Message-----
From: frankpersist@gmail.com [mailto:frankpersist@gmail.com] 
Sent: 27 January 2016 23:38
To: users <us...@cloudstack.apache.org>
Subject: vm doesn't hava ip address

Hi, all
My cloudstack version is 4.6 and I have created a vm, in UI the ip address is 192.168.85.200, but when I used vnc to login in the vm there is only one address 127.0.0.1 when I input "ifconfig". I would like to access Internet from this vm, what should I do?
Thank you.



frankpersist@gmail.com
Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build | CSForge – rapid IaaS deployment framework
CloudStack Consulting | CloudStack Software Engineering
CloudStack Infrastructure Support | CloudStack Bootcamp Training Courses

RE: vm doesn't hava ip address

Posted by Paul Angus <pa...@shapeblue.com>.
Hi Frank,

By 'VNC' do you mean the console proxy? Did you use the built-in vm template or your own?
And can you tell us a little more about your environment? Your physical infra may not be configured correctly for guest networking


[ShapeBlue]<http://www.shapeblue.com>
Paul Angus
VP Technology   ,       ShapeBlue


d:      +44 203 617 0528 | s: +44 203 603 0540<tel:+44%20203%20617%200528%20|%20s:%20+44%20203%20603%200540>     |      m:      +44 7711 418784<tel:+44%207711%20418784>

e:      paul.angus@shapeblue.com | t: @cloudyangus<ma...@cloudyangus>      |      w:      www.shapeblue.com<http://www.shapeblue.com>

a:      53 Chandos Place, Covent Garden London WC2N 4HS UK


[cid:image3079e6.png@b39699ff.4cb23af0]


Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.




-----Original Message-----
From: frankpersist@gmail.com [mailto:frankpersist@gmail.com]
Sent: 27 January 2016 23:38
To: users <us...@cloudstack.apache.org>
Subject: vm doesn't hava ip address

Hi, all
My cloudstack version is 4.6 and I have created a vm, in UI the ip address is 192.168.85.200, but when I used vnc to login in the vm there is only one address 127.0.0.1 when I input "ifconfig". I would like to access Internet from this vm, what should I do?
Thank you.



frankpersist@gmail.com
Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//> | CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> | CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> | CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>