OpenVZ Forum


Home » General » Support » *solved* cant login to virtual machine from other computers
*solved* cant login to virtual machine from other computers [message #26845] Sun, 03 February 2008 17:56 Go to previous message
alex905 is currently offline  alex905
Messages: 8
Registered: February 2008
Location: London
Junior Member
i can log into my virtual machine from the host machine but not from remote computers. i can log into the host machine from remote computers though.

i added the ip 192.168.0.4 to the host machine at first (yes this is all on a private network) and then added the ip 192.168.0.5 to the virtual machine. a full restart later and no luck.

i then added the ip 192.168.0.5 as a secound ip to the host machine by creating the file

ifcfg-eth0:1

the contense of the file are as fwollows

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.5
NETMASK=255.255.255.0
GATEWAY=192.168.0.1


i noticed that the ifcfg-venet0 file on the host machine contains this code:
DEVICE=venet0
ONBOOT=yes
STARTMODE=onboot


is this normal or should this contain more information.

here is the output from the ifconfig command on the virtual machine.

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4132306944 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4096 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                                                             -00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.                                                             255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8686 (8.4 KiB)  TX bytes:8091 (7.9 KiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00                                                             -00
          inet addr:192.168.0.6  P-t-P:192.168.0.6  Bcast:192.168.0.6  Mask:255.                                                             255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


seems kins jumbeled if you ask me. this is where i think the error is.

to add the ip i used the command

vzctl set 102 --ipadd 192.168.0.5 --save

any help is always greatly apriciated.

[Updated on: Sun, 03 February 2008 23:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: After Install cpanel, apache, cpanel no work
Next Topic: Possibility of using bridge in VE
Goto Forum:
  


Current Time: Sat Oct 05 00:27:43 GMT 2024

Total time taken to generate the page: 0.03707 seconds