cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chiradeep Vittal <Chiradeep.Vit...@citrix.com>
Subject Re: where does the params in systemvm's /proc/cmdline come from?
Date Fri, 14 Dec 2012 06:17:57 GMT
This is a question better asked in -dev.
Short answer, the XAPI call VM.set_PV_args is used.

On 12/13/12 5:02 AM, "sx chen" <cloudchen0620@gmail.com> wrote:

> Thanks howie,
>I want to know where does these parameter passed by:
>quiet 
>console=hvc0%template=domP%type=dhcpsrvr%%name=r-6-VM%eth0ip=10.1.2.1%eth0
>mask=255.255.255.0%gateway=10.1.2.254%eth1ip=169.254.1.181%eth1mask=255.25
>5.0.0%dhcprange=10.1.2.1%dns1=192.168.3.254%useextdns=true
>
>
>
>
>root@r-6-VM:~# cat /proc/cmdline
>root=LABEL=ROOT ro console=tty0 xencons=ttyS0,115200 console=hvc0
>quiet  -- quiet
>console=hvc0%template=domP%type=dhcpsrvr%%name=r-6-VM%eth0ip=10.1.2.1%eth0
>mask=255.255.255.0%gateway=10.1.2.254%eth1ip=169.254.1.181%eth1mask=255.25
>5.0.0%dhcprange=10.1.2.1%dns1=192.168.3.254%useextdns=true
>
>
>2012/12/13 howie_yu@trend.com.tw <howie_yu@trend.com.tw>
>
>> Hi sx
>>
>> The params in /proc/cmdline should be passed by kernel  args.
>>
>> Your can check /etc/grub.conf
>>
>> For example : xxx=xxx are kernel args
>>
>> kernel /vmlinuz-2.6.32-220.17.1.el6.x86_64 ro
>> root=/dev/mapper/vg_labhowie-lv_root rd_NO_LUKS rhgb LANG=zh_TW.UTF-8
>> rd_NO_MD quiet rd_LVM_LV=vg_labhowie/lv_swap crashkernel=auto
>> rd_LVM_LV=vg_labhowie/lv_root  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
>> SYSFONT=latarcyrheb-sun16 console=ttyS0
>>
>> This may help.
>>
>> On 12/12/13 下午4:04, "sx chen" <cloudchen0620@gmail.com> wrote:
>>
>> >hi:
>> >   all,
>> >   I've search the code using "/proc/cmdline" and can't find anything
>> >useful,
>> >But I want to know where does the params in this file come from.
>> > Thanks.
>>
>>
>> <table class="TM_EMAIL_NOTICE"><tr><td><pre>
>> TREND MICRO EMAIL NOTICE
>> The information contained in this email and any attachments is
>>confidential
>> and may be subject to copyright or other intellectual property
>>protection.
>> If you are not the intended recipient, you are not authorized to use or
>> disclose this information, and we request that you notify us by reply
>>mail
>> or
>> telephone and delete the original message from your mail system.
>> </pre></td></tr></table>


Mime
View raw message