Community
 
 
 

CloudPlatform 4.x

팔로워 284명
 
Avatar
Pankaj Paliwal

Cloudstack 4.3 Debian 6 (64bit) Boot Order Related Login Problem

Avatar

Cloudstack 4.3 Debian 6 (64bit) Boot Order Related Login Problem

I have a rather bizarre problem, I created a template from an ISO (MailCleaner ISO, mailcleaner.org) and when I create a VM with this template, I can boot but after starting services I can not get a login prompt it simply blinks and waits after services started (no login prompt),

 

If, I go into my Xenserver and issue this command then everything works just fine:

 

xe vm-param-set uuid=d45280aa-4342-b04b-5f6d-f5c6a3b353fa HVM-boot-params:order=dc HVM-boot-policy="BIOS order" PV-bootloader=""

 

But the problem is :

 

Everytime this VM stopped and started again, it it is getting a different UUID from the XENSERVER 6.2 (with latest patches) thus breaking it again.

 

Is there a fix for this in Cloudstack 4.3 or any kind of workaround?

 

Thanks,

 

Sam 


Sam Ceylani MEMBERS
댓글 3개
0
 
 

공식 댓글

Avatar
Pankaj Paliwal
Avatar

In order to login to your running debian 6 VM for inittab editing, you have to run 2 commands on the xenserver :

 

xe vm-list

 

Make a note of your [VM UUID],

 

xe vm-param-set uuid=[YOURUUID] HVM-boot-params:order=dc HVM-boot-policy="BIOS order" PV-bootloader=""

 

Then restart your VM from your Xencenter console.

Attached Thumbnails

  • mailcleaner.jpg

Sam Ceylani MEMBERS
댓글 작업 고유 링크

댓글을 남기려면 로그인하세요.

 
 

Previous 댓글 3개

Avatar
Pankaj Paliwal
Avatar

Cloudstack 4.3 Debian 6 (64bit) Boot Order Related Login Problem

I solved this puzzle :) First off all, if you are using Xenserver with Cloudstack 4.3, everytime you stop and start your VM, you get a different UUID for your VM in Xencenter, which makes it impossible to fix VM related problems inside of your Xenserver, instead you have to work inside of your  VM or Cloudstack GUI,API etc.

 

This particular problem turns out to be a console problem, when using PV instead of HVM you have to add hvc0 and xvc0 lines to your /etc/inittab and also /etc/securetty files (I am using debian 6 [64-bit] here so for example, if you are using Centos files are in a different location and also names are different) in order to get a console prompt.

 

/etc/inittab

 

add 2 lines: ( after 6:23:respawn:/sbin/getty 38400 tty6 this line)

 

hvc0:2345:respawn:/sbin/getty 38400 hvc0
xvc0:2345:respawn:/sbin/getty 38400 xvc0

 

/etc/securetty

 

add 2 lines : (after #virtual consoles section, after tty63)

 

# Virtual consoles

tty1

..

..

 

tty63

hvc0
xvc0

 

If you are using PV then make sure in xencenter "Boot Options" have only this line "-- quiet console=hvc0"

 

Hope it helps :) took me sometime to figure out :)

 

Sam

 


Sam Ceylani MEMBERS
댓글 작업 고유 링크
Avatar
Pankaj Paliwal
Avatar

Screenshot...


Sam Ceylani MEMBERS
댓글 작업 고유 링크

Top Contributors