Jochen Hebbrecht
2007-Feb-07 14:13 UTC
[Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
I''m having a script that fires up one of the Xen instances on demand: 2 little questions: a) my Xen instances use DHCP to get internet access, how can I know the IP-address of that Xen instance? I could login with the "xm console" and do: "ifconfig", but this is not a possibilty b) when do you know your Xen instance is fully loaded? ( like when it''s ready for SSH transfer .. ) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gregor Perner
2007-Feb-07 14:46 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jochen Hebbrecht wrote:> a) my Xen instances use DHCP to get internet access, how can I know the > IP-address of that Xen instance? I could login with the "xm console" and > do: > "ifconfig", but this is not a possibiltyIf you have access to the dhcp server you just have to bind the mac-adress of the DomU to a specific IP. If not, you could use dyndns.org and ddclient installed on your DomU to update a dns-entry (like myDomU.dyndns.org) you then just have to wait until the entry is updated (thats usually quick) and login via the hostname.> b) when do you know your Xen instance is fully loaded? ( like when it''s > ready for SSH transfer .. )You can ping the hostname... hth, gregor PS: sorry Jochen, i hit the wrong reply-button... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFyeZAE4YGwYU0j3cRAoBwAKCnPu0v8A66N+KcSLazn+/W8MOC+QCgodAp hQM++Hrv92Nk5F7bbgbzcpc=zvRH -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jochen Hebbrecht
2007-Feb-07 14:48 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
2007/2/7, Gregor Perner <gregor@perners.at>:> > > If you have access to the dhcp server you just have to bind the > mac-adress of the DomU to a specific IP. > If not, you could use dyndns.org and ddclient installed on your DomU to > update a dns-entry (like myDomU.dyndns.org) > you then just have to wait until the entry is updated (thats usually > quick) and login via the hostname.I don''t have access to the DHCP-server. Dyndns.org could be a solution yes :-) ! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jochen Hebbrecht
2007-Feb-07 14:52 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
2007/2/7, Gregor Perner <gregor@perners.at>:> > You can ping the hostname... >That would be a good idea ... only, that doesn''t work: on dom0 ---- root@Jochus:~# cat /etc/xen/guestdom1 ... hostname = "guestdom1" ---- on domU ---- root@guest:~# echo $HOSTNAME guest ---- on dom0 ---- root@Jochus:~# ping guest ping: unknown host guest root@Jochus:~# ping guestdom1 ping: unknown host guestdom1 ---- :-( ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gregor Perner
2007-Feb-07 15:02 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jochen Hebbrecht wrote:> 2007/2/7, Gregor Perner <gregor@perners.at>: >> >> You can ping the hostname... > > That would be a good idea ... only, that doesn''t work: > > on dom0 > [...] > > :-( ...sorry, i meant the dyndns-updated Fully Qualified Domain Name... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFyeodE4YGwYU0j3cRAnG0AJ9XNvH/qy/spBMrE9AmuJqzXGxyKwCeOdhf jlhEo69p6tFLRenKmsELz6U=5zXM -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jochen Hebbrecht
2007-Feb-07 15:05 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
2007/2/7, Gregor Perner <gregor@perners.at>: sorry, i meant the dyndns-updated Fully Qualified Domain Name...>Sorry, stupid of me :-) ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thorolf Godawa
2007-Feb-07 21:36 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
> a) my Xen instances use DHCP to get internet access, how can I know> IP-address of that Xen instance? I could login with the "xm console" > b) when do you know your Xen instance is fully loaded? ( like when > it''s ready for SSH transfer .. ) if there is no possibility to get it from Xen directly, why not write a small script that starts at the end of the boot process inside the domu and sends the actual ip address via scp or ftp to the local dom0? -- Chau y hasta luego, Thorolf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bill Denney
2007-Feb-08 02:03 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
Thorolf Godawa wrote:> > a) my Xen instances use DHCP to get internet access, how can I know > > IP-address of that Xen instance? I could login with the "xm console" > > b) when do you know your Xen instance is fully loaded? ( like when > > it''s ready for SSH transfer .. ) > if there is no possibility to get it from Xen directly, why not write > a small script that starts at the end of the boot process inside the > domu and sends the actual ip address via scp or ftp to the local dom0?One thing you could try would be looking into the arp cache since Xen''s bridge will be able to map the MAC address to the IP address. Bill _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jochen Hebbrecht
2007-Feb-08 07:50 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
2007/2/8, Bill Denney <denney@seas.upenn.edu>:> > Thorolf Godawa wrote: > > > a) my Xen instances use DHCP to get internet access, how can I know > > > IP-address of that Xen instance? I could login with the "xm console" > > > b) when do you know your Xen instance is fully loaded? ( like when > > > it''s ready for SSH transfer .. ) > > if there is no possibility to get it from Xen directly, why not write > > a small script that starts at the end of the boot process inside the > > domu and sends the actual ip address via scp or ftp to the local dom0? >One thing you could try would be looking into the arp cache since Xen''s> bridge will be able to map the MAC address to the IP address.I checked the ARP-cache, but there was no MAC / IP-address of my Xen instance :-( ... _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bill Denney
2007-Feb-09 02:30 UTC
Re: [Xen-users] How to receive the IP-address of an Xen instance that is using DHCP?
Jochen Hebbrecht wrote:> 2007/2/8, Bill Denney <denney@seas.upenn.edu > <mailto:denney@seas.upenn.edu>>: > > One thing you could try would be looking into the arp cache since > Xen''s > bridge will be able to map the MAC address to the IP address. > > > I checked the ARP-cache, but there was no MAC / IP-address of my Xen > instance :-( ...You could make the domU ping the dom0, and that should put its IP into the ARP cache assuming that you''re not routing the domUs. Bill _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users