Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password needed.

2013-11-06 Thread Javier Fontan
ROOT_PUBKEY should be the public key itself, not the name of the file.
For example:

ROOT_PUBKEY = "ssh-rsa
B3NzaC1yc2EDAQABAAABAQC+vPFFwem49zcepQxsyO51YMSpuywwt6GazgpJe9vQzw3BA97tFrU5zABDLV6GHnI0/ARqsXRX1mWGwOlZkVBl4yhGSK9xSnzBPXqmKdb4TluVgV5u7R5ZjmVGjCYyYVaK7BtIEx3ZQGMbLQ6Av3IFND+EEzf04NeSJYcg9LA3lKIueLHNED1x/6e7uoNW2/VvNhKK5Ajt56yupRS9mnWTjZUM9cTvlhp/Ss1T10iQ51XEVTQfS2VM2y0ZLdfY5nivIIvj5ooGLaYfv8L4VY57zTKBafyWyRZk1PugMdGHxycEh8ek8VZ3wUgltnK+US3rYUTkX9jj+Km/VGhDRehp
user@host"

On Sat, Nov 2, 2013 at 10:42 AM, yuchang_subscribe
 wrote:
> Hi,
>
> The problem is still bothering me.
> Now I run this router with opennebula,and the following configuration:
> router-template.one:
> NAME   = router
> CPU= 0.1
> MEMORY = 256
> DISK   = [ IMAGE = router ]
> NIC= [ NETWORK = "cloud" ]
> FEATURES=[ acpi="no" ]
> GRAPHICS = [
> TYPE= "vnc",
> LISTEN  = "0.0.0.0"
> ]
> CONTEXT= [
> hostname = "router",
> ip_public = "172.16.100.210",
> files = "/var/lib/one/init.sh /var/lib/one/.ssh/id_dsa.pub",
> target= "hdb",
> root_pubkey = "id_dsa.pub"
> ]
> init.sh:
> #!/usr/bin/env bash
> if [ -n "$HOSTNAME" ];then
>echo $HOSTNAME >/etc/HOSTNAME
>hostname $HOSTNAME
> fi
> if [ -n "$IP_PUBLIC" ];then
>ifconfig eth0 $IP_PUBLIC
> fi
> echo "context initing..."
> if [ -f /mnt/context/$ROOT_PUBKEY ];then
> cat /mnt/context/$ROOT_PUBKEY >>/root/.ssh/authorized_keys
> fi
>
> But ttylinux-template works.In ttylinux-template.one,the context's target
> was modified to "hdc".I saw the log "context initing..." from ttylinux's
> console.
>
> Where was my configuration wrong?
>
> Best Regards
> yuchang
> 2013-11-02
> 
> yuchang_subscribe
> 
> 发件人:yuchangw 
> 发送时间:2013-10-31 16:43
> 主题:Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password
> needed.
> 收件人:"Valentin Bud"
> 抄送:"openNebulaGroup"
>
> Sorry,I didn't setup ROOT_PUBKEY,because I tried to run this router without
> opennebula environment.
> So I should try this Router under opennebula next  time.
>
> thank you .
>
>
>
>
>
>
> At 2013-10-31 16:36:11,"Valentin Bud"  wrote:
>
> Hello Yuchang,
>
> Have you set up ROOT_PUBKEY or ROOT_PASSWORD in the CONTEXT of the Virtual
> Router VMs' template, as stated in the Virtual Router documentation [1] in
> Configuration section?
>
> [1]: http://opennebula.org/documentation:rel4.2:router
>
> Good Will,
>
>
> On Thu, Oct 31, 2013 at 3:38 AM, yuchangw  wrote:
>>
>>  Hi,
>>
>> I download OpenNebual Virtual Router 4.2 which is apline linux based.When
>> I start the virutal machine with libvirt's virtual machine manager,
>> I cannot login without password,the account used is root.
>>
>> So I try  Virtual Router 3.8(root,password:router).It works ok.
>>
>> Anyone help me?
>>
>> thanks yuchang
>>
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Valentin Bud
> http://databus.pro | valen...@databus.pro
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password needed.

2013-11-03 Thread yuchangw
Hi,
I have resolved this problem.Now I can login  to the router.
Steps:
1) losetup /dev/loop0 Opennebula-VR.img
2) mount /dev/mapper/loop0p1 tmp
3) mkdir tmp/root/.ssh
4) cp /var/lib/one/.ssh/* tmp/root/.ssh/

In the router's img the dir /root/.ssh is not exsited by default.may this cause 
my script error:
if [ -f /mnt/context/$ROOT_PUBKEY ];then
cat /mnt/context/$ROOT_PUBKEY >>/root/.ssh/authorized_keys ##.ssh not 
existed,maybe error here.
fi

Best Regards
yuchang




At 2013-11-02 17:42:46,yuchang_subscribe  wrote:

Hi,
 
The problem is still bothering me.
Now I run this router with opennebula,and the following configuration:
router-template.one:
NAME   = router
CPU= 0.1
MEMORY = 256
DISK   = [ IMAGE = router ]
NIC= [ NETWORK = "cloud" ]
FEATURES=[ acpi="no" ]
GRAPHICS = [
TYPE= "vnc",
LISTEN  = "0.0.0.0"
]
CONTEXT= [
hostname = "router",
ip_public = "172.16.100.210",
files = "/var/lib/one/init.sh /var/lib/one/.ssh/id_dsa.pub",
target= "hdb",
root_pubkey = "id_dsa.pub"
]
init.sh:
#!/usr/bin/env bash
if [ -n "$HOSTNAME" ];then
   echo $HOSTNAME >/etc/HOSTNAME
   hostname $HOSTNAME
fi
if [ -n "$IP_PUBLIC" ];then
   ifconfig eth0 $IP_PUBLIC
fi
echo "context initing..."
if [ -f /mnt/context/$ROOT_PUBKEY ];then
cat /mnt/context/$ROOT_PUBKEY >>/root/.ssh/authorized_keys
fi
 
But ttylinux-template works.In ttylinux-template.one,the context's target was 
modified to "hdc".I saw the log "context initing..." from ttylinux's console.
 
Where was my configuration wrong?
 
Best Regards
yuchang
2013-11-02
yuchang_subscribe
发件人:yuchangw 
发送时间:2013-10-31 16:43
主题:Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password needed.
收件人:"Valentin Bud"
抄送:"openNebulaGroup"
 
Sorry,I didn't setup ROOT_PUBKEY,because I tried to run this router without 
opennebula environment.
So I should try this Router under opennebula next  time.

thank you .






At 2013-10-31 16:36:11,"Valentin Bud"  wrote:

Hello Yuchang,


Have you set up ROOT_PUBKEY or ROOT_PASSWORD in the CONTEXT of the Virtual 
Router VMs' template, as stated in the Virtual Router documentation [1] in 
Configuration section?


[1]: http://opennebula.org/documentation:rel4.2:router


Good Will,



On Thu, Oct 31, 2013 at 3:38 AM, yuchangw  wrote:

 Hi,

I download OpenNebual Virtual Router 4.2 which is apline linux based.When I 
start the virutal machine with libvirt's virtual machine manager,
I cannot login without password,the account used is root.

So I try  Virtual Router 3.8(root,password:router).It works ok.

Anyone help me?

thanks yuchang




___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org







--

Valentin Bud
http://databus.pro | valen...@databus.pro___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebual Virtual Router 4.2 login failed, password needed.

2013-11-02 Thread yuchang_subscribe
Hi,

The problem is still bothering me.
Now I run this router with opennebula,and the following configuration:
router-template.one:
NAME   = router
CPU= 0.1
MEMORY = 256
DISK   = [ IMAGE = router ]
NIC= [ NETWORK = "cloud" ]
FEATURES=[ acpi="no" ]
GRAPHICS = [
TYPE= "vnc",
LISTEN  = "0.0.0.0"
]
CONTEXT= [
hostname = "router",
ip_public = "172.16.100.210",
files = "/var/lib/one/init.sh /var/lib/one/.ssh/id_dsa.pub",
target= "hdb",
root_pubkey = "id_dsa.pub"
]
init.sh:
#!/usr/bin/env bash
if [ -n "$HOSTNAME" ];then
   echo $HOSTNAME >/etc/HOSTNAME
   hostname $HOSTNAME
fi
if [ -n "$IP_PUBLIC" ];then
   ifconfig eth0 $IP_PUBLIC
fi
echo "context initing..."
if [ -f /mnt/context/$ROOT_PUBKEY ];then
cat /mnt/context/$ROOT_PUBKEY >>/root/.ssh/authorized_keys
fi

But ttylinux-template works.In ttylinux-template.one,the context's target was 
modified to "hdc".I saw the log "context initing..." from ttylinux's console.

Where was my configuration wrong?

Best Regards
yuchang
2013-11-02



yuchang_subscribe



发件人:yuchangw 
发送时间:2013-10-31 16:43
主题:Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password needed.
收件人:"Valentin Bud"
抄送:"openNebulaGroup"

Sorry,I didn't setup ROOT_PUBKEY,because I tried to run this router without 
opennebula environment.
So I should try this Router under opennebula next  time.

thank you .






At 2013-10-31 16:36:11,"Valentin Bud"  wrote:

Hello Yuchang,


Have you set up ROOT_PUBKEY or ROOT_PASSWORD in the CONTEXT of the Virtual 
Router VMs' template, as stated in the Virtual Router documentation [1] in 
Configuration section?


[1]: http://opennebula.org/documentation:rel4.2:router


Good Will,



On Thu, Oct 31, 2013 at 3:38 AM, yuchangw  wrote:

 Hi,

I download OpenNebual Virtual Router 4.2 which is apline linux based.When I 
start the virutal machine with libvirt's virtual machine manager,
I cannot login without password,the account used is root.

So I try  Virtual Router 3.8(root,password:router).It works ok.

Anyone help me?

thanks yuchang




___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org







-- 

Valentin Bud
http://databus.pro | valen...@databus.pro___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password needed.

2013-10-31 Thread yuchangw
Sorry,I didn't setup ROOT_PUBKEY,because I tried to run this router without 
opennebula environment.
So I should try this Router under opennebula next  time.

thank you .






At 2013-10-31 16:36:11,"Valentin Bud"  wrote:

Hello Yuchang,


Have you set up ROOT_PUBKEY or ROOT_PASSWORD in the CONTEXT of the Virtual 
Router VMs' template, as stated in the Virtual Router documentation [1] in 
Configuration section?


[1]: http://opennebula.org/documentation:rel4.2:router


Good Will,



On Thu, Oct 31, 2013 at 3:38 AM, yuchangw  wrote:

 Hi,

I download OpenNebual Virtual Router 4.2 which is apline linux based.When I 
start the virutal machine with libvirt's virtual machine manager,
I cannot login without password,the account used is root.

So I try  Virtual Router 3.8(root,password:router).It works ok.

Anyone help me?

thanks yuchang




___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org







--

Valentin Bud
http://databus.pro | valen...@databus.pro___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebual Virtual Router 4.2 login failed, password needed.

2013-10-31 Thread Valentin Bud
Hello Yuchang,

Have you set up ROOT_PUBKEY or ROOT_PASSWORD in the CONTEXT of the Virtual
Router VMs' template, as stated in the Virtual Router documentation [1] in
Configuration section?

[1]: http://opennebula.org/documentation:rel4.2:router

Good Will,


On Thu, Oct 31, 2013 at 3:38 AM, yuchangw  wrote:

>  Hi,
>
> I download OpenNebual Virtual Router 4.2 which is apline linux based.When
> I start the virutal machine with libvirt's virtual machine manager,
> I cannot login without password,the account used is root.
>
> So I try  Virtual Router 3.8(root,password:router).It works ok.
>
> Anyone help me?
>
> thanks yuchang
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Valentin Bud
http://databus.pro | valen...@databus.pro
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebual Virtual Router 4.2 login failed, password needed.

2013-10-30 Thread yuchangw
 Hi,

I download OpenNebual Virtual Router 4.2 which is apline linux based.When I 
start the virutal machine with libvirt's virtual machine manager,
I cannot login without password,the account used is root.

So I try  Virtual Router 3.8(root,password:router).It works ok.

Anyone help me?

thanks yuchang
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org