[announce] vps-lxc; comprehensive tool for working with LXC containers

available...
http://aur.archlinux.org/packages.php?ID=34507
this is going to be brief, more later.  for some time i have been developing a comprehensive solution for working with LXC based VPS containers on my Arch servers.  it is about 95% complete, and ready for testing by others.
this system will allow you to build template containers for _any_ distribution if it has bootstrap type utilities (i have only implemented Arch based containers, Ubuntu and Debian will be done soon, with Fedora, maybe Opensuse, maybe others can create these?).  once the templates are created, they can be "forked" into usable domains, and the LXC config (for the lxc-* user tools) can bee 100% generated from command line options to "vps-lxc mkdom".
the code is very consistent and clean, and can easily be extended by writing/implementing your own subcommand files.  there is a command.proto file to get you started, and the "vps-lxc proto" command will show you the example command.
there is proper bash completion for most subcommands, mktpl and mkdom the exceptions for now (they have several options and i want the completion for those to be awesome).  BTRFS will be used for efficient template/domain creation if available.
see here for more details:
http://www.mail-archive.com/lxc-users@l … 00148.html
try it out if your interested in LXC, i'm using it now and its working pretty nice.  ls, init, and edit subcommands will be up soon.
here is an example of output, and do this to get started.  the system is well commented, and the usage/exception strings should guide you:
cr@ph1 ~ $ vps-lxc help
Usage: vps-lxc COMMAND [help|OPTION]...
Create, destroy, interact with, and manage LXC based Virtual Private Server
(VPS/container) domains and templates.
Creation/destruction COMMANDs:
mktpl create a new template from scratch or based off an existing template
mkdom create a new domain based off a pre-created template
rmtpl remove a created template
rmdom remove a defined/created, STOPPED domain and it's configuration
Definition/edit COMMANDs:
define initialize a domain after editing it's configuration (once)
edit edit the persistent configuration of a VPS (requires reboot)
Control/interaction COMMANDs:
start send a STOPPED domain a signal to start
stop send a RUNNING domain a signal to stop
reboot send a RUNNING domain a signal to reboot
enter enter a domain and interact via console (limited, config specific)
Query COMMANDs:
help what you are seeing right now
tree view the VPS system's directories/files in a tree
ls list each domain and/or template and their status
cr@ph1 ~ $ vps-lxc mktpl help
Usage: vps-lxc mktpl (-b BASE | -d DISTRO -a ARCH)
[-p PROFILE] [-m MIRROR] TARGET
Generate a VPS template using bootstrap utilities to build it from scratch, or
base it off an existing template and add/modify packages/configuration
Options:
-b specifies the template used as a base for this one;
arch and distribution will be ignored if provided
-d the distribution to build
-a target architecture
-p distribution specific profile; default if not provided
-m the mirror to use for download; overrides internal
Arguments:
BASE name of an existing template
DISTRO an existing folder in include/mktpl
ARCH either 32 or 64
PROFILE an existing folder in include/mktpl/DISTRO
MIRROR distribution specific mirror to use in the
form http://...
Parameters:
TARGET the name of the template to be created
Options not defined can/may be set by the selected profile
cr@ph1 ~ $ vps-lxc mkdom help
Usage: vps-lxc mkdom -b BASE [-p PROFILE] [-h HOSTNAME] [-t TTY] [-s DEVPTS]
[-n type=TYPE,flags=FLAGS,link=LINK,name=NAME,hwaddr=HWADDR,ipv4=IPV4,ipv6=IPV6]...
[-c subsys.param=VALUE]... TARGET
Generate a VPS domain using an existing template as a base. The resultant domain
configuration is altered according to the selected profile and any options passed
Options:
-b specifies the template used as a base for this domain
-p the profile to use; default if not provided
-h the hostname assigned to this domain; defaults to NAME
if not provided
-t number of ttys to allocate to this domain
-s use a private devpts instance if possible, and restrict
ptys to this number; not implemented upstream
-n append a network interface to this domain in addition
to any defined by the profile
-c append cgroup subsystem values to this domain in
addition to any defined by the profile
Arguments:
BASE name of an existing template
PROFILE an existing folder in include/mkdom
HOSTNAME a valid hostname; default TARGET
TTY positive integer; default 2
DEVPTS positive integer; default 1024
TYPE empty, veth, macvlan, or phys
FLAGS up; or do not specify
LINK an existing interface on the host
NAME the interface name assigned internally
to the container
HWADDR a valid MAC address; do not specify
for dynamic
IPV4 a valid IPV4 address in the form
x.y.z.t/m, eg. 192.168.1.123/24
IPV6 a valid IPV6 address in the form x::y/m,
eg. 2003:db8:1:0:214:1234:fe0b:3596/64
VALUE set VALUE to the specified cgroup subsystem
parameter, e.g devices.deny=a; if VALUE has
spaces, quotes are needed
Parameters:
TARGET the name of the domain to be created
Options not defined can/may be set by the selected profile
Last edited by extofme (2010-02-20 00:50:48)

starfry wrote:
Hello extofme, have you done any more work on your scripts? Is there any later information available than what is in this thread?
I'm interested in setting up an Arch host with Arch/Ubuntu LXC containers.
I am moving away from a hardy host with openvz hardy containers.
Cheers.
unfortunately i have not done much work on these for several months, as i have since moved myself and my clients to the google appengine.  however, i do follow the lxc list and devel, and they should still work ok (possibly some minor tweaking).
the scripts are very easy to work with, and are modular; you can extend what you need.  they provide stacktraces and basic exception handling.
i do intend to work with lxc soon, and will pick vps-lxc back up then.  feel free to run with it; send me patches if you find problems.  if you have issues w/vps-lxc or lxc itself just report here and i will guide you.  i was hoping others would find it useful and share some of the workload, meh :-)
C Anthony

Similar Messages

  • How much interest is there in tools for working with Microchip PIC's

    and other MCU's on Arch?
    Just thought I would ask, as if there is much interest, and I note that there must be some, we could form a group to ensure packages and support is there.

    Parallel and serial ports are a rare sight these days so I guess the best route is to go usb. There are usb to serial converters but I don't know how well that will work.
    Using usb can be troublesome, starting something from scratch is not easy, or you borrow some code to write the code to put in the bridge ucontroller and the code to write a driver or it will take ages to complete.
    Also programming the first versions of the bridge software into the bridge ucontroller can prove to be tricky if you have to rely on home made programmers. Programming more recent chips with the serial or parallel port is tricky (maybe the parallel port can do a bit better here).
    There is also the issue of building the pcb for the programmer board, powerful and feature rich chips come only in packaging with smd pin spacing or smaller, this makes assembly at home very difficult, I'm not even considering making the pcb at home, anything with a packaging smaller than dip and you already start to have problems.
    Debugging the hardware at home is not trivial either, voltages can be easily measured with a voltmeter but checking things like signal timing and synchronization between signals requires and oscilloscope, sometimes you only realize that you need to rewrite or tweak some piece of code after you see the signals with an oscilloscope.
    Also it's not fun to reinvent the wheel just for the sake of doing it, there must be already some work done out there that can probably be improved and expanded.
    To summarize, using serial/parallel/usb to serial converter may make things easier to program on both ends (pc and brigde code), usb has the potential to be faster, more flexible and more future proof but will make things a lot harder to do. The prototype programmer board must be easy to build if you want to get the parts and assemble it yourself.

  • Which pro tools version works with iMac 10.8.4?

    which pro tools version works with iMac 10.8.4?

    I have already done that. From my understanding pro tools 11 should work. Looking for confirmation from other users..

  • JK Adobe TV - Top 5 Tips for Working with Vectors in CC

    Julieanne Kost has just blogged about her  Adobe TV video on working with shapes and paths in Photoshop CC.  It's actually not that new to Adobe TV, and has already had a lot of views, but we get a lot of questions here on the subject with CC, and there are some nice little tips in it.  I certainly learned a couple of things. :-)
    http://blogs.adobe.com/jkost/2014/01/top-5-tips-for-working-with-vectors-in-photoshop-cc.h tml
    http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/top-5-tips-for-working- with-vectors-in-photoshop-cc/

    My apologies, but I really had no interest in a member's "answer", especially one that is so unhelpful.  Assuming that you were responding to me (we are the only two commenter's at this point), I would not be inclined to read the Creative Cloud offers since this is something that I am not interested in.  I bought the product the first day of offer, I did not rent it....just like I have in all the years past.

  • Mac Pro RAID block size recommendations for working with audio in Logic Pro

    I have recently ordered a Mac Pro and plan to do a RAID configuration across 3 HDD's
    The RAID type i am going to do is a RAID 0 striped.
    The computer is going to be used primarily for audio post production and working with 20+ 24-Bit audio files at any one time within a Logic project.
    I want to know what is the best block size i should use when configuring the RAID.
    I understand that using a higher block size is best for working with large files but do i need to do this in my case or will the default 32k block size be enough?
    Thanks in advance

    Use 64k. Things like databases like having 32k blocks because of all the small files. Audio files are pretty small even at 24-bit 192KHz. Go to 128k if all you are doing is streaming and no samples. But 20+ 24-bit is really not too large anyway considering most modern HDD's can stream 100MB/s off one spindle. You'll probably be fine regardless of the block size you choose. But most audio pro's choose 64k.

  • Tips for working with USB floppy drives

    I was just wondering if anyone had any tips on working with USB floppy drives in Archlinux.
    One thing I've noticed is that trying to use mkfs.msdos on my USB floppy drive directly doesn't seem to result in a usable disk (it's mountable, but reports that I don't have enough space available to copy files), but if I use the command on an image file the same size as a floppy disk and then use dd to copy the blank image to my USB drive I get a disk that's perfectly usable.  Anybody know what the deal is with that or how I might be able to successfully format a disk in fewer steps (other than keeping the blank images around and just using dd to format the floppies, haha)?
    Also, I'd like to hear any other tips or tricks any of you have for working with USB floppy drives.  They just seem so much more usable under Windows as opposed to Linux, and that disappoints me a little.

    jmetal88 wrote:Okay, thanks guys.  I haven't figured out the issue yet, but you're helping me narrow it down.  I decided to run a df -h command after each try of formatting the disk this time.  I tried the low-level ufiformat command followed by a mkfs.msdos on the device, using a 720k disk, and df -h showed 700k free on the file system.  It's just not making the file system large enough (I believe the file I was trying to copy over was 710k or so).  When I run mkfs.msdos on a 720k disk image and then dd the image over to the drive, df -h shows 713k free after mounting the drive.  Any idea why mkfs.msdos isn't filling out the full 720k on the disk itself, but is on the image?
    I would assume this happens because (as far as I can tell from skimming through the source over the course of a few minutes) mkfs.fat only applies floppy size heuristics to fd and lo devices -- your USB floppy drive is treated as a hard drive, and that leads to less-than-ideal default parameters. Run
    fsck.fat -v
    on the more spacious filesystem to figure out what options need to be set when you attempt formatting an actual disk. Or just make things easier by keeping newly-formatted blank disk images on hand so that dd and (maybe) ufiformat are all you need to worry about.

  • Best practices for working with large placed bitmap images?

    Hey all,
    I need some advice on the best way to approach building these files. I've been working on some banners that are very large: 3 x 7 feet.
    Each banner has a simple vector graphic treatment at the top and bottom (rectangle with a different colored rule on top, and vector logo) and a small amount of text, just a URL and a headline.The headline is type (not converted to outlines) and usually has some other effect applied to it, say a drop shadow or outer glow. Under these graphics is a full bleed image. The placed images need to be 150ppi at actual size, so they're honking big, sometimes up to 2GB. Once the layouts are approved, they have to go to a vendor for output.
    The Illustrator docs are really large, and I've read in other threads how to combat that (PDF compatibility, raster settings). But even still, does anyone have any insight into the best way to deal with these things? The dimensions are large, and then the images are large, and it just makes for lots of looking at the spinning ball of death...
    If it were me, I'd build them in InDe, but the vector graphics need to be edited for each one, and I so don't like to do that in InDe unless forced. To me, it's still ultimately a page layout app, not a drawing app. (Old school here.)
    FYI, our machines are all MBPs with 8G ram and the latest Intel Core 2 Duo chips, 2.66 and 2.8GHz. If we keep the files local (as opposed to working on the server) it should be fairly zippy... No?
    Any advice is appreciated, thanks!

    You can get into memory trouble with very large placed pdf files. Tiffs too.
    This has to do with the preview, which contains much more information than you need for working with.
    On the other hand if you place EPSs and take care not to turn on overprint preview you can get away with huge files.
    If you do turn on overprint preview your machine will slow down a lot and the file may become totally unmanageable.
    Compare this with to InDesign where you can control the quality of the preview. A hi-res preview will slow you down and most often you don't need it anyway.
    I was working (in Illie) the other day on much larger files than you mention – displays for whole walls – and had some considerable trouble until I reverted to the old EPS format. They say it's dying but it ain't dead yet .

  • What is better Mac Mini or Mac Pro and 4K 40" screen or iMac 5K for work with Exel

    I am working on Macbook pro retina for around 16 hours a day,  it is ok but the screen is to small. I am opening about 25 - 30 EXCEL windows, 20 - 25 safari windows at the same time. Excel windows are small, they only show 40 rows and S column   Now I am considering buying  iMac 5k ( but the screen is only 27", however a very high resolution but I think that fonts and digits displayed may be too small ). I am also considering Mac Mini or Pro with 40" 4K TV ( 4k computer monitors are 27 - 31" , so better idea would be purchasing iMac 5k ) . The problem is that 40 - 42" TV don't have Display Port ( I can't find  it anywhere )
    Please help me to choose what would suit my needs better. I need large screen to work comfortably with an Excel sheets.  What is better? Mac Mini or Mac Pro and 4K 40" screen or iMac 5K for work with Excel ?. The other problem I have is that when I spend  16 hours at work with retina macbook , my eyes are ok. Using the  30'' Dell screen 2560/1440 my eyes are tired after 2 hours.
    Thanks for your help on advance
    Best regards
    David

    Currently you can only get 4 K at 30 Hz via HDMI. Some users have reported jerky curser movement because of the 30 Hz.
    I would go for the 5K iMac. You can add a second screen at 4K.
    FaceTime HD camera
    Simultaneously supports full native resolution on the built-in display and up to 3840 by 2160 pixels on an external display
    Support for extended desktop and video mirroring modes
    The Mac Mini supports:
    Support for up to two displays at 2560 by 1600 pixels, both at millions of colors
    Thunderbolt digital video output
    Native Mini DisplayPort output
    DVI output using Mini DisplayPort to DVI Adapter (sold separately)
    VGA output using Mini DisplayPort to VGA Adapter (sold separately)
    Dual-link DVI output using Mini DisplayPort to Dual-Link DVI Adapter (sold separately)
    HDMI video output
    Support for 1080p resolution at up to 60Hz
    Support for 3840-by-2160 resolution at 30Hz
    Support for 4096-by-2160 resolution at 24Hz
    The 2013 Mac Pro can use three and more displays:
    Mac Pro (Late 2013): Using multiple displays - Apple Support
    I would go for multiple screens

  • Query on Topology for working with Routing Server

    Hi,
    We have just started working with Routing Engine. We have a sample street data. For working with routing server, whether we need the topology to be built?
    If we have a topology can we use with routing server?
    In this request for un-geocoded addresses
    <start_location>
    <input_location id="1">
    <input_address>
    <us_form1 street="4001 E Bay Dr" lastline="largo, fl" />
    </input_address>
    </input_location>
    </start_location>
    What does this street and lastline mean. Which table its referring?
    Can you help me out in this problem?
    Thanks and regards
    Aravindan

    The routing engine requires data in a particular form. It does require a node and edge table as well as oher information.
    In appendix c of the 10g Release 2 documentation is a description of the tables and the XML elements (such as us_form1, street, lastline, etc) required for the routing engine. If you have data that can be massaged into this format then you can do the massaging and load and use it.
    Hope this helps,
    d

  • How to configure Ogone for working with business catalyst ?

    How to configure Ogone for working with business catalyst ?
    In france ogone seems to be the only solution for seamless payment and there's no explications on the forum to configure it.
    Thx for your answers

    Hi ,
    [Configuration Guide SAP adapter for SAP Quality Center by HP|https://websmp101.sap-ag.de/~sapdownload/011000358700000612662007E/Adapter_Configuration_.pdf] might be useful.
    Check [Master guide|https://websmp201.sap-ag.de/~sapdownload/011000358700000612672007E/Adapter_Master_Guide.pdf]  also.
    Regards
    Naveen
    Edited by: Naveen kumar Palanichamy on Feb 19, 2009 6:38 AM

  • Generic Java class for working with Context Nodes

    Hi,all
    I would like to write generic Java class for working with Context Nodes:
    populating node,
    add element to node,
    update node element,
    remove node element
    Any ideas how can I do it?

    Hi,Armin
    Thanks for your answer.
    I have many nodes with the same structure,but different data.
    I don't want to work with each one of them individually.
    This is the main reason.
    Regards,
    Michael
    Any ideas?

  • Best laptop for working with after effects

    I need a laptop for work with adobe after effects and some others. Anyway I need laptop wich will not cost more than 1400€ and which will have inside intel core i7, 4 GB of memory or more and Nividia graphic card. Somthing more pls dont say the apple is the best beacuse i dont like it very much.
    Thanks.

    4GB is a rather small amount of RAM for working with After Effects. If you can get a computer with more RAM, I recommend doing so.
    For After Effects CS5, the graphics card (GPU) doesn't matter as much as RAM and CPUs, so focus on RAM and CPUs first.
    In general, a laptop is not going to give you the same performance as a desktop computer of the same price. If you need a laptop, fine; but don't be surprised when performance isn't as good as you might like.

  • I have downloaded MAMP for Mac and want to use it for working with Wordpress. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    I have downloaded MAMP for Mac and want to use it for working with Wordpress. I'm on an Imac with Maverick OS 10.9. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    It depends on how you installed it. You have to shutdown the MySQL service first. If you used the standard, but obsolete Startup Item, you can do that with the Startup Item. If you created a launchd script, you can do it with launchctl. Once MySQL is no longer running, you can delete the Startup Item or launchd script and the rest of MySQL.

  • OLAP tools for reporting with OPM

    Has any one used OLAP tools for reporting with OPM?
    If not, has anyone used Discoverer with OPM?
    Thanks in advance,

    What version of OPM are you using?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by venkateswara pilla ([email protected]):
    Has any one used OLAP tools for reporting with OPM?
    If not, has anyone used Discoverer with OPM?
    Thanks in advance,<HR></BLOCKQUOTE>
    null

  • Can lightroom for work with window 8?

    can lightroom for work with window 8?

    Which version of LR?
    Lightroom 4, yes.
    http://www.adobe.com/products/photoshop-lightroom/tech-specs.html

Maybe you are looking for

  • IPhone on current ios but wont let me restore without downloading latest ios (again)?

    I have an iPhone 5s running ios 7.1.1 I've connected my iphone to my itunes (on a macbook pro 2011 latest edition) and am trying to restore my iPhone. When I click on the restore button, it contacts the apple servers and then immediately directs me t

  • Oracle 11g Client and XML DB

    We have moved our applications in a mix environment (DB on Linux and App. Server on Windows) on Oracle 11g. On the past we have tested the applications and they were working, now seems nothing is ok, it is like the 10g instant client on Windows is un

  • OLE2. How to set cell format to percentage

    hi, how can I set the cell format to percentage? I tried with ole2.set_property (cell, 'NumberFormat', '%'); OLE2.set_property(cell, 'Formula', '=A1/B1'); but this only print a '%' at the end of the cell. Really, the cell format is not percentage, an

  • In Production Order Window

    Dear Experts, My problem is related to UDF defined in Production Window like Start Date/Time and End Date/Time = Consume time. When user enter the value inStart Date/Time and End Date/Time then he get the Automatically Time consumption Value. So it's

  • ABAP Transport Request

    I have a old abap transport request for a program which was transported to qa and production to restore the old version in the production server. when new changes were made to the program , along with the changes the latest version has gone to produc