qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] MOUNT kernel with selinix=0 Problem


From: jb-gnumlists
Subject: Re: [Qemu-discuss] MOUNT kernel with selinix=0 Problem
Date: Sun, 03 Feb 2013 06:50:34 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

On 03-02-2013 03:19, Saptarshi Sen wrote:
Hi

I am trying to mount a root file system (with selniux enforced )with the following command line :

qemu-system-x86_64 -m 512 -hda root_fs_slack8.1 -kernel vmlinuz-2.6.32-71.el6.i686 *selinux=0 *-initrd initramfs-2.6.32-71.el6.i686.img -append "root=/dev/sda"

I get the following error :
*qemu-system-x86_64: -kernel vmlinuz-2.6.32-71.el6.i686: drive with bus=0, unit=0 (index=0) exis*t

This vmlinuz is the same kernel which I am currently running as host.

*if I remove "selinux=0", the error goes away. *

I want tot boot the system but because of selinux on in the rootfs, *dracut is not able to continue ?*

Any help 1) with the command line and 2) the reason is apprreciated.


You just typed it wrong. "selinux=1 " should be inside the value of the -append option, to tell qemu that this is an option to the kernel and not an option to qemu.

Those qemu command lines are getting harder and harder to type as single minded qemu maintainers wrongly believe that all invocations will be done by libvirt code that has been magically updated to implement their latest command line parser changes before they even think about making them...

--
Jakob Bohm, CIO, partner, WiseMo A/S. http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark. direct: +45 31 13 16 10 <call:+4531131610>
This message is only for its intended recipient, delete if misaddressed.
WiseMo - Remote Service Management for PCs, Phones and Embedded



reply via email to

[Prev in Thread] Current Thread [Next in Thread]