LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-22-2011, 11:51 AM   #1
alphy
LQ Newbie
 
Registered: Nov 2006
Posts: 16

Rep: Reputation: 0
Using an ISO image as rootfs for a LXC


Hi,
I am trying to start a LXC, with a ISO image as the rootfs using lxc-utils (http://lxc.sourceforge.net/)

the excerpt of the mount options that I use in lxc.conf

lxc.rootfs = rootfs.iso
lxc.rootfs.mount = /lxc/rootfs

The error that I get while I start the LXC

-----
lxc-start: No such file or directory - failed to exec /sbin/init
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'raven'
lxc-start: Device or resource busy - failed to remove cgroup '/cgroup/raven'
------

on closer look at the lxc-start , I found the following

1) the iso image is mounted at the specified location
2) I am also able to stat the /sbin/init file.

I instrumented the code in file ${SRC_FOLDER}/src/lxc/start.c:: static
int start(struct lxc_handler *handler, void* data)
and I am able to stat the file /sbin/init just before execvp, but exec
fails with "No such file or directory".

Any help in this regard would be useful.


Thanks,
Alphonse
 
  


Reply

Tags
lxc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Padding jffs2 rootfs image njozwiak Linux - Embedded & Single-board computer 1 03-23-2011 01:55 PM
Merging kernel image and rootfs jaepi Linux - Embedded & Single-board computer 3 03-22-2011 10:29 AM
"No space left on device" - rootfs image build error sjremya Linux - Software 2 08-30-2010 12:16 AM
upgrade/change on the fly cramfs rootfs image crazy kernel Linux - Embedded & Single-board computer 0 08-10-2010 09:46 AM
How do you merge 4 CD ISO images into one DVD ISO image? nsydenham Linux - Software 6 01-15-2007 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration