OpenVZ Forum


Home » Mailing lists » Users » Fwd: boot error - unable to mount root fs on unknown-block(0, 0)
Fwd: boot error - unable to mount root fs on unknown-block(0, 0) [message #21947] Thu, 18 October 2007 06:19 Go to next message
Ian jonhson is currently offline  Ian jonhson
Messages: 11
Registered: October 2007
Junior Member
---------- Forwarded message ----------
From: Ian jonhson <jonhson.ian@gmail.com>
Date: Oct 18, 2007 2:17 PM
Subject: Re: [Users] boot error - unable to mount root fs on unknown-block(0, 0)
To: frankb@frankb.us


Thank you very much!

I have created my own VE, however how can I login VE by ssh? I used
the IP setting described in
http://wiki.openvz.org/Installation_on_Debian.

Thanks again,

Ian

On 10/17/07, E Frank Ball III <frankb@frankb.us> wrote:
> On Wed, Oct 17, 2007 at 12:20:01PM +0800, Ian jonhson wrote:
>  > >  > Where can I get the pre-built kernel image?
>  > >
>  > > http://download.openvz.org/debian/dists/etch/main/binary-i386/base/
>  > >
>  > > In your sources list add:
>  > >
>  > > deb http://download.openvz.org/debian etch main
>  > >
>  >
>  > I added the line in source.list, but apt-cache search said it can not
>  > open the website.
>
>
>
> "apt-cache search linux-image-2.6.18-openvz" shows the openvz kernels
> for me.
>
>
>
>  > > I'm using linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb
>  > >
>  >
>  > I opened the link given above and found the image file, but I don't
>  > know how to use it after download the image file.
>  >
>  > Could you give me some advices?
>
>
> If you manually downloaded it then install it with
> "dpkg -i linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb"
>
>
> --
>
>    E Frank Ball                frankb@frankb.us
>
Re: Fwd: boot error - unable to mount root fs on unknown-block(0, 0) [message #21959 is a reply to message #21947] Thu, 18 October 2007 08:35 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Ian,

just like to any other usual machine using
ssh from your workstation.

1. assign IP address to some VE using
ve0# vzctl set <VEID> --ipadd <VEIP> --save

2. just in case, check that VE is pingable from your workstation:
ws# ping <VEIP>

3. just in case, check that VE is running sshd service:
ve0# vzctl exec <VEID> ps axf | grep sshd

if it is not running sshd then enter to VE using vzctl enter command
and install/start sshd service.

4. don't forget to set root user password
ve0: vzctl set <VEID> --userpasswd root:mypassword

5. now you can login to VE as to usual machine using it's IP

Kirill


Ian jonhson wrote:
> ---------- Forwarded message ----------
> From: Ian jonhson <jonhson.ian@gmail.com>
> Date: Oct 18, 2007 2:17 PM
> Subject: Re: [Users] boot error - unable to mount root fs on unknown-block(0, 0)
> To: frankb@frankb.us
> 
> 
> Thank you very much!
> 
> I have created my own VE, however how can I login VE by ssh? I used
> the IP setting described in
> http://wiki.openvz.org/Installation_on_Debian.
> 
> Thanks again,
> 
> Ian
> 
> On 10/17/07, E Frank Ball III <frankb@frankb.us> wrote:
> 
>>On Wed, Oct 17, 2007 at 12:20:01PM +0800, Ian jonhson wrote:
>> > >  > Where can I get the pre-built kernel image?
>> > >
>> > > http://download.openvz.org/debian/dists/etch/main/binary-i386/base/
>> > >
>> > > In your sources list add:
>> > >
>> > > deb http://download.openvz.org/debian etch main
>> > >
>> >
>> > I added the line in source.list, but apt-cache search said it can not
>> > open the website.
>>
>>
>>
>>"apt-cache search linux-image-2.6.18-openvz" shows the openvz kernels
>>for me.
>>
>>
>>
>> > > I'm using linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb
>> > >
>> >
>> > I opened the link given above and found the image file, but I don't
>> > know how to use it after download the image file.
>> >
>> > Could you give me some advices?
>>
>>
>>If you manually downloaded it then install it with
>>"dpkg -i linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb"
>>
>>
>>--
>>
>>   E Frank Ball                frankb@frankb.us
>>
>
Re: Fwd: boot error - unable to mount root fs on unknown-block(0, 0) [message #21965 is a reply to message #21959] Thu, 18 October 2007 09:57 Go to previous messageGo to next message
Ian jonhson is currently offline  Ian jonhson
Messages: 11
Registered: October 2007
Junior Member
Thank you very much~~

But it seems that I can not connect internet in VE. It is OK when ping
to its host system, however when ping external IP address, it dumps. I
google the internet to find how to set the netwrok in VE, but I can
not find any hint to do it.

Could anybody give some advices how to configure network?

Thanks again,

Ian

On 10/18/07, Kirill Korotaev <dev@sw.ru> wrote:
> Ian,
>
> just like to any other usual machine using
> ssh from your workstation.
>
> 1. assign IP address to some VE using
> ve0# vzctl set <VEID> --ipadd <VEIP> --save
>
> 2. just in case, check that VE is pingable from your workstation:
> ws# ping <VEIP>
>
> 3. just in case, check that VE is running sshd service:
> ve0# vzctl exec <VEID> ps axf | grep sshd
>
> if it is not running sshd then enter to VE using vzctl enter command
> and install/start sshd service.
>
> 4. don't forget to set root user password
> ve0: vzctl set <VEID> --userpasswd root:mypassword
>
> 5. now you can login to VE as to usual machine using it's IP
>
> Kirill
>
>
> Ian jonhson wrote:
> > ---------- Forwarded message ----------
> > From: Ian jonhson <jonhson.ian@gmail.com>
> > Date: Oct 18, 2007 2:17 PM
> > Subject: Re: [Users] boot error - unable to mount root fs on unknown-block(0, 0)
> > To: frankb@frankb.us
> >
> >
> > Thank you very much!
> >
> > I have created my own VE, however how can I login VE by ssh? I used
> > the IP setting described in
> > http://wiki.openvz.org/Installation_on_Debian.
> >
> > Thanks again,
> >
> > Ian
> >
> > On 10/17/07, E Frank Ball III <frankb@frankb.us> wrote:
> >
> >>On Wed, Oct 17, 2007 at 12:20:01PM +0800, Ian jonhson wrote:
> >> > >  > Where can I get the pre-built kernel image?
> >> > >
> >> > > http://download.openvz.org/debian/dists/etch/main/binary-i386/base/
> >> > >
> >> > > In your sources list add:
> >> > >
> >> > > deb http://download.openvz.org/debian etch main
> >> > >
> >> >
> >> > I added the line in source.list, but apt-cache search said it can not
> >> > open the website.
> >>
> >>
> >>
> >>"apt-cache search linux-image-2.6.18-openvz" shows the openvz kernels
> >>for me.
> >>
> >>
> >>
> >> > > I'm using linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb
> >> > >
> >> >
> >> > I opened the link given above and found the image file, but I don't
> >> > know how to use it after download the image file.
> >> >
> >> > Could you give me some advices?
> >>
> >>
> >>If you manually downloaded it then install it with
> >>"dpkg -i linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb"
> >>
> >>
> >>--
> >>
> >>   E Frank Ball                frankb@frankb.us
> >>
> >
Re: Fwd: boot error - unable to mount root fs on unknown-block(0, 0) [message #21977 is a reply to message #21965] Thu, 18 October 2007 10:35 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Have you enabled IP forwarding (as per 
http://wiki.openvz.org/Quick_installation#sysctl)? Are you using real IP 
for your VE?

Ian jonhson wrote:
> Thank you very much~~
>
> But it seems that I can not connect internet in VE. It is OK when ping
> to its host system, however when ping external IP address, it dumps. I
> google the internet to find how to set the netwrok in VE, but I can
> not find any hint to do it.
>
> Could anybody give some advices how to configure network?
>
> Thanks again,
>
> Ian
>
> On 10/18/07, Kirill Korotaev <dev@sw.ru> wrote:
>   
>> Ian,
>>
>> just like to any other usual machine using
>> ssh from your workstation.
>>
>> 1. assign IP address to some VE using
>> ve0# vzctl set <VEID> --ipadd <VEIP> --save
>>
>> 2. just in case, check that VE is pingable from your workstation:
>> ws# ping <VEIP>
>>
>> 3. just in case, check that VE is running sshd service:
>> ve0# vzctl exec <VEID> ps axf | grep sshd
>>
>> if it is not running sshd then enter to VE using vzctl enter command
>> and install/start sshd service.
>>
>> 4. don't forget to set root user password
>> ve0: vzctl set <VEID> --userpasswd root:mypassword
>>
>> 5. now you can login to VE as to usual machine using it's IP
>>
>> Kirill
>>
>>
>> Ian jonhson wrote:
>>     
>>> ---------- Forwarded message ----------
>>> From: Ian jonhson <jonhson.ian@gmail.com>
>>> Date: Oct 18, 2007 2:17 PM
>>> Subject: Re: [Users] boot error - unable to mount root fs on unknown-block(0, 0)
>>> To: frankb@frankb.us
>>>
>>>
>>> Thank you very much!
>>>
>>> I have created my own VE, however how can I login VE by ssh? I used
>>> the IP setting described in
>>> http://wiki.openvz.org/Installation_on_Debian.
>>>
>>> Thanks again,
>>>
>>> Ian
>>>
>>> On 10/17/07, E Frank Ball III <frankb@frankb.us> wrote:
>>>
>>>       
>>>> On Wed, Oct 17, 2007 at 12:20:01PM +0800, Ian jonhson wrote:
>>>>         
>>>>>>  > Where can I get the pre-built kernel image?
>>>>>>
>>>>>> http://download.openvz.org/debian/dists/etch/main/binary-i386/base/
>>>>>>
>>>>>> In your sources list add:
>>>>>>
>>>>>> deb http://download.openvz.org/debian etch main
>>>>>>
>>>>>>             
>>>>> I added the line in source.list, but apt-cache search said it can not
>>>>> open the website.
>>>>>           
>>>>
>>>> "apt-cache search linux-image-2.6.18-openvz" shows the openvz kernels
>>>> for me.
>>>>
>>>>
>>>>
>>>>         
>>>>>> I'm using linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb
>>>>>>
>>>>>>             
>>>>> I opened the link given above and found the image file, but I don't
>>>>> know how to use it after download the image file.
>>>>>
>>>>> Could you give me some advices?
>>>>>           
>>>> If you manually downloaded it then install it with
>>>> "dpkg -i linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb"
>>>>
>>>>
>>>> --
>>>>
>>>>   E Frank Ball                frankb@frankb.us
>>>>
>>>>
Re: Fwd: boot error - unable to mount root fs on unknown-block(0, 0) [message #21979 is a reply to message #21977] Thu, 18 October 2007 10:40 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Or, in case of Debian which you use, more relevant howto is 
http://wiki.openvz.org/Installation_on_Debian#modify_needed_settings

Kir Kolyshkin wrote:
> Have you enabled IP forwarding (as per 
> http://wiki.openvz.org/Quick_installation#sysctl)? Are you using real 
> IP for your VE?
>
> Ian jonhson wrote:
>> Thank you very much~~
>>
>> But it seems that I can not connect internet in VE. It is OK when ping
>> to its host system, however when ping external IP address, it dumps. I
>> google the internet to find how to set the netwrok in VE, but I can
>> not find any hint to do it.
>>
>> Could anybody give some advices how to configure network?
>>
>> Thanks again,
>>
>> Ian
>>
>> On 10/18/07, Kirill Korotaev <dev@sw.ru> wrote:
>>  
>>> Ian,
>>>
>>> just like to any other usual machine using
>>> ssh from your workstation.
>>>
>>> 1. assign IP address to some VE using
>>> ve0# vzctl set <VEID> --ipadd <VEIP> --save
>>>
>>> 2. just in case, check that VE is pingable from your workstation:
>>> ws# ping <VEIP>
>>>
>>> 3. just in case, check that VE is running sshd service:
>>> ve0# vzctl exec <VEID> ps axf | grep sshd
>>>
>>> if it is not running sshd then enter to VE using vzctl enter command
>>> and install/start sshd service.
>>>
>>> 4. don't forget to set root user password
>>> ve0: vzctl set <VEID> --userpasswd root:mypassword
>>>
>>> 5. now you can login to VE as to usual machine using it's IP
>>>
>>> Kirill
>>>
>>>
>>> Ian jonhson wrote:
>>>    
>>>> ---------- Forwarded message ----------
>>>> From: Ian jonhson <jonhson.ian@gmail.com>
>>>> Date: Oct 18, 2007 2:17 PM
>>>> Subject: Re: [Users] boot error - unable to mount root fs on 
>>>> unknown-block(0, 0)
>>>> To: frankb@frankb.us
>>>>
>>>>
>>>> Thank you very much!
>>>>
>>>> I have created my own VE, however how can I login VE by ssh? I used
>>>> the IP setting described in
>>>> http://wiki.openvz.org/Installation_on_Debian.
>>>>
>>>> Thanks again,
>>>>
>>>> Ian
>>>>
>>>> On 10/17/07, E Frank Ball III <frankb@frankb.us> wrote:
>>>>
>>>>      
>>>>> On Wed, Oct 17, 2007 at 12:20:01PM +0800, Ian jonhson wrote:
>>>>>        
>>>>>>>  > Where can I get the pre-built kernel image?
>>>>>>>
>>>>>>> http://download.openvz.org/debian/dists/etch/main/binary-i386/base/
>>>>>>>
>>>>>>> In your sources list add:
>>>>>>>
>>>>>>> deb http://download.openvz.org/debian etch main
>>>>>>>
>>>>>>>             
>>>>>> I added the line in source.list, but apt-cache search said it can 
>>>>>> not
>>>>>> open the website.
>>>>>>           
>>>>>
>>>>> "apt-cache search linux-image-2.6.18-openvz" shows the openvz kernels
>>>>> for me.
>>>>>
>>>>>
>>>>>
>>>>>        
>>>>>>> I'm using 
>>>>>>> linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb
>>>>>>>
>>>>>>>             
>>>>>> I opened the link given above and found the image file, but I don't
>>>>>> know how to use it after download the image file.
>>>>>>
>>>>>> Could you give me some advices?
>>>>>>           
>>>>> If you manually downloaded it then install it with
>>>>> "dpkg -i linux-image-2.6.18-openvz-13-39.1d2-686_028.39.1d2_i386.deb"
>>>>>
>>>>>
>>>>> -- 
>>>>>
>>>>>   E Frank Ball                frankb@frankb.us
>>>>>
>>>>>
Re: Fwd: boot error - unable to mount root fs on unknown-block(0, 0) [message #21983 is a reply to message #21977] Thu, 18 October 2007 11:10 Go to previous messageGo to next message
Ian jonhson is currently offline  Ian jonhson
Messages: 11
Registered: October 2007
Junior Member
> Have you enabled IP forwarding (as per
> http://wiki.openvz.org/Quick_installation#sysctl)? Are you using real IP
> for your VE?

In where I should enable the IP forwarding, host system or VE (Sysem
image file)?
I enabled the IP forwarding in /etc/sysctl.conf in host system (by
copying configuration directly from
http://wiki.openvz.org/Quick_installation#sysctl), but it isn't work;
it is same when enabled in VE.

I used the real IP. For example, host IP address is 192.168.8.54, and
I set the IP of VE is
192.168.8.55. Both are effective IP addresses.

Then, I started VE.

Under above setting, I entered VE and run  apt-get update. However, I
got error message.
No matter what IPs I pinged, all can not make connection.


What should I do next? Could anybody give me some advices?

Thanks,

Ian
Re: Fwd: boot error - unable to mount root fs on unknown-block(0, 0) [message #22034 is a reply to message #21983] Fri, 19 October 2007 05:30 Go to previous message
Ian jonhson is currently offline  Ian jonhson
Messages: 11
Registered: October 2007
Junior Member
Hi,

I guess maybe some configuration in VE is wrong. So I reseted my VE
network as follows.
If there are something wrong, please correct me. Thank you very much.

I booted my system and selected the openvz environment, then

# cat /etc/network/interfaces
...
The primary network interface
allow-hotplug eth0
iface eth0 inet static
    address 192.168.8.54
    netmask 255.255.255.0
    network 10.61.0.0
    broadcast 10.61.0.255
    gateway 192.168.8.1
    dns-nameservers 10.61.0.254
    dns-search anqin-test-debian4
auto eth0

Before I started VE, I set the network by vzctl command,

# vzctl set 777 --ipadd 192.168.8.60 --nameserver 10.61.0.254
--hostname anqin-test-debian4  --save

OK, then I started VE:

# vzctl start 777
# vactl enter 777
# ping 192.168.8.1

The ping command said it can not connect to gateway:192.168.8.1. However,

# ping 192.168.8.54

is OK, VE can connect to VPS.

What is wrong with my setting?

On 10/18/07, Ian jonhson <jonhson.ian@gmail.com> wrote:
> > Have you enabled IP forwarding (as per
> > http://wiki.openvz.org/Quick_installation#sysctl)? Are you using real IP
> > for your VE?
>
> In where I should enable the IP forwarding, host system or VE (Sysem
> image file)?
> I enabled the IP forwarding in /etc/sysctl.conf in host system (by
> copying configuration directly from
> http://wiki.openvz.org/Quick_installation#sysctl), but it isn't work;
> it is same when enabled in VE.
>
> I used the real IP. For example, host IP address is 192.168.8.54, and
> I set the IP of VE is
> 192.168.8.55. Both are effective IP addresses.
>
> Then, I started VE.
>
> Under above setting, I entered VE and run  apt-get update. However, I
> got error message.
> No matter what IPs I pinged, all can not make connection.
>
>
Previous Topic: any openvz-on-xen users?
Next Topic: Running DHCP on VPS, ( on a router.. )
Goto Forum:
  


Current Time: Thu Mar 28 19:41:34 GMT 2024

Total time taken to generate the page: 0.01761 seconds