Questions tagged [user-mode-linux]

For questions involving user-mode Linux (UML), a virtualisation tool which runs a Linux kernel as a user-mode application inside a host. Use this tag for questions about UML itself, using UML, or questions where UML significantly affects the behaviour of the system.

Filter by
Sorted by
Tagged with
0
votes
2answers
37 views

Is it safe to use “/bin/busybox” as path to the static usermode helper binary?

I have one question: Can I use /bin/busybox as path to the static user mode helper binary, or is that a security risk? Default is /sbin/usermode-helper (CONFIG_STATIC_USERMODEHELPER_PATH: Path to ...
0
votes
1answer
10 views

UML and ethertap: what I miss?

I want to run my UML istance with network In the host machine I create the script USER=myname BRIDGENAME=br0 tunctl -t tap0 -u $USER ip link set tap0 up /usr/sbin/brctl addif $BRIDGENAME tap0 ip addr ...
1
vote
0answers
15 views

Passing a block device to User Mode Linux (UML)

I am trying to test my own DAX file system using User Mode Linux (UML). I can add my file system to the Linux source and compile it for UML. For testing purpose, I need to pass a block device (e.g., a ...
0
votes
0answers
44 views

User mode Linux can't run – It aborts immediatly after execution

When compiling UML – kernel 5.1.2 – with the following configuration CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_BINFMT_ELF=y CONFIG_HOSTFS=y CONFIG_LBD=y CONFIG_BLK_DEV=y CONFIG_BLK_DEV_LOOP=y ...
-1
votes
1answer
206 views

vsftpd access to /srv/www/domain.com/somedir

On Ubuntu 16 I am trying to give FTP access to a particular server directory which has files owned by web:www-data to an FTP user. I have changed the users home directory: usermod --home /srv/www/...
1
vote
0answers
75 views

Problems Building Debian Wheezy Inside User Mode Linux

I am building a Debian virtual machine inside UML, but it is hanging. Here is my shell script for the construction: #!/bin/bash # Let's make sure we're updated printf "\nUpdating...\n" apt update ...
1
vote
1answer
903 views

Adding multiple user accounts on different primary/secondary groups

I am trying to create several user accounts with different groups in an imx6 board. Currently, no users are created in the device. Hence, I see 1000:1000 as my default user:group ID. The scenario I ...
2
votes
2answers
520 views

How do I run the usermode linux kernel?

I followed the steps here and compiled the kernel successfully in usermode: https://btrfs.wiki.kernel.org/index.php/Debugging_Btrfs_with_GDB But when I start ./linux in various ways it always gives ...
1
vote
1answer
28k views

How to install kali Linux on an external hard disk? [closed]

My machine is running MintOs, I want to install kali Linux on my external hard disk. What are the steps to be followed for doing such setup and how to boot kali OS from my external hard disk?
1
vote
0answers
145 views

user mode linux aborts right away

./linux rootfstype=hostfs mem=64M rw init=/bin/bash Core dump limits : soft - NONE hard - NONE Checking that ptrace can change system call numbers...OK Checking syscall ...
2
votes
0answers
36 views

How do I change the home folder for an user used by process sshd?

I'm logged as root. Need to change home folder of another user but when I run usermod -d /path/to/new/home myuser it returns: usermod: user myuser is being used by process xxxx Said process is sshd. ...
1
vote
1answer
1k views

Linux C/C++ - any way to create a “transparent” SSL/TLS socket?

Normally, in C or C++, to communicate through a SSL/TLS encrypted TCP socket you need to use whatever functions the SSL/TLS provider (OpenSSL, GnuTLS, etc) gives you in order to perform reads & ...
2
votes
1answer
520 views

User mode linux eth0 connected to host tap ethernet device not coming up

I am trying to setup the network between UML instance running on ubuntu as host. UML--eth0-(192.168.0.254) ----------------tap0--(192.168.0.253)--VM But, I am not able to bring the eth0 device in UP ...
1
vote
0answers
211 views

apt-get failed to fork in UML (user mode Linux)

I'm running a user mode Linux (Linux-3.19.8) for development testing. I'd like to be able to edit files inside the UML. I have some experience with Vim, so I'd prefer that. But unfortunately when I ...
1
vote
0answers
249 views

Virtual serial ports /dev/pts

I'm trying to create virtual ports using GSM cmux. It creates virtual ports in /dev/chn 1 2 & 3. Which is linked to /dev/pts 0 1 & 2. But when I list dev directory there is no pts folder and ...
0
votes
2answers
387 views

usermod question about option e

after reading the man pages I am unable to find an explanation of what this does (the tack e option) usermod -L -e 1 username -e 1 does this mean one day after the linux epoch, jan 1 1970? How ...
1
vote
0answers
83 views

How to set up networking in UML on Fedora 21 on VirtualBox?

I'm trying to set up an user mode linux machine on my virtual machine with fedora 21, as a part of a school project. I've got it running, but I've no idea how to get the networking to work. edit. ...
18
votes
4answers
2k views

Why would someone want to run UserMode Linux (UML)

The Linux README states that: Linux has also been ported to itself. You can now run the kernel as a userspace application - this is called UserMode Linux (UML). Why would someone want to do ...
5
votes
1answer
7k views

Not able to change default group for user with `sudo usermod -g` [duplicate]

I have looked at the questions and answer here at U&L but I still cannot get my default group to change from a user. [red@ws-red-l ~]$ whoami red [red@ws-red-l ~]$ groups yellow green [red@ws-red-...
7
votes
2answers
7k views

How can a user run a program in kernel mode?

Is it possible for a user to run their own program in kernel mode? How could a user accomplish this? What weakness in the system's protection mechanism would they have to bypass? I'm thinking that a ...
0
votes
1answer
153 views

Configure UML to generate core file

The User Mode Linux (UML) I run on Ubuntu crashes occasionally, but does not generate any core file. I'd like to know the necessary configuration to be applied on UML so it generates a core when it ...
5
votes
2answers
1k views

How to create rootfs for user mode Linux on Fedora 18?

I want to create a rootfs to be used with an UML kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using febootstrap-supermin-...
4
votes
1answer
793 views

User Mode Linux compile fails

I am trying to compile User Mode Linux on a 64 bit machine with defconfig and getting the following error. arch/x86/um/user-offsets.c:1: sorry, unimplemented: code model "large" not supported yet ...