OpenVZ Forum


Home » General » Support » *solved* cant login to virtual machine from other computers
Re: cant login to virtual machine from other computers [message #26853 is a reply to message #26852] Sun, 03 February 2008 23:28 Go to previous messageGo to previous message
alex905 is currently offline  alex905
Messages: 8
Registered: February 2008
Location: London
Junior Member
fixed it. i had to add a virtual interface for every ip asined to a VE.

for example:
on my foirst virtual machine i assined it the IP 192.168.0.6 by issuing the command

vzctl set 102 --ipadd 192.168.0.6 --save (this is for the beifit of beginers)
then i edited a network interface created by openVZ

my /etc/sysconfig/network-scripts/ifcfg-venet0 reads
NAME=""
BOOTPROTO=none
DEVICE=venet0
NETMASK=255.255.255.0
MTU=1500
BROADCAST=192.168.0.255
IPADDR=192.168.0.6
NETWORK=192.168.0.0
ONBOOT=yes


then

because i have more then one virtual machine i need more then one IP so i assined another IP to the secound machine using the command above obviosly substituting some commands and values where nesecary. (it was asined 192.168.0.7)


then i has to create a virtual interface for the venet0 interface. to do this i created the file ifcfg-venet0:1

which can be done using this command:

vi /etc/sysconfig/network-scripts/ifcfg-venet0:0

then filled it with this data.

NAME=""
BOOTPROTO=none
DEVICE=venet0:1
NETMASK=255.255.255.0
MTU=1500
BROADCAST=192.168.0.255
ONPARENT=yes
IPADDR=192.168.0.7
NETWORK=192.168.0.0
ONBOOT=yes



if your new to this and as lost as i was i hope this mini tut helps you.

oh andim not a bad speller im just really fooking lazy.

 
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: Thu Nov 07 08:51:34 GMT 2024

Total time taken to generate the page: 0.03254 seconds