KVM? Virtualization? Spinoff idea?

Forum rules
We believe in Hello and Thank You.
User avatar
opt1k
runs Stable
Posts: 35
Joined: Fri Jul 03, 2015 8:44 pm

KVM? Virtualization? Spinoff idea?

Unread post by opt1k » Sun Jul 05, 2015 7:28 am

It seems that a recent market trend seems to be virtualization.

One can create a quick and dirty set up to host and "daemonize" a bunch of kvm's without libvirt.

Which leads me to a thought....
Does anyone here see value in creating a distribution aimed specifically creating a very ligntweight virtualization hosting server? This doesnt seem to exist anywhere.

Building a fast lightweight, and easy to use server to host kvm's for the enterprise user may prove profitable especially since the documentation to do such things without libvirt is extremely limited.

Someone would just need to build the tools, which can for the most part be scripted with bash and ncurses.

Canonical appears to have a desire to be all over the virtualization market



I use this to launch my simple kvm

Code: Select all

#Windows XP QEMU KVM "daemonized" example
#
# connect with gvncviewer localhost:0
# 
# helpful?:  echo 1 > /sys/kernel/mm/ksm/run
#
# explanation line by line:
# screen backgrounds the processes kvm
# expose the guest to the host cpu
# guest has 2 threads/cpus
# guest has 768mb of ram
# primary disk has cache turned off and the image file is posready2009
# standard vga is enabled with no graphic output
# amd pcnet driver with user mode networking 
# vnc is enabled on the loopback interface with compression
# samba server  \\10.0.2.4\qemu given a directory to share to the guest
# redirect host on all interfaces port 5555 to guest port 22
# redirect host on all interfaces port 5556 to guest port 80
# use tablet input device to the mouse doesnt go crazy under vnc
# permanantly attach a specific usb device (from lsusb)

screen -dmS kvm-winxp kvm \
-cpu host \
-smp 2 \
-m 768 \
-drive cache=none,file=$HOME/qemu/posready2009 \
-vga std -nographic \
-vnc 127.0.0.1:0,lossy \
-net nic,model=pcnet -net user \
-smb $HOME \
-redir tcp:5555::22 \
-redir tcp:5556::80 \
-usbdevice tablet \
-usbdevice host:058f:6387

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: KVM? Virtualization? Spinoff idea?

Unread post by machinebacon » Sun Jul 05, 2015 2:43 pm

I love spinoff ideas. Definitely doable, though I have not much idea about virtualization.
..gnutella..

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: KVM? Virtualization? Spinoff idea?

Unread post by ivanovnegro » Mon Jul 06, 2015 10:47 am

machinebacon wrote:...though I have not much idea about virtualization.
Same here.

hinto
Forums Hottie
Posts: 298
Joined: Thu Dec 06, 2012 4:28 pm

Re: KVM? Virtualization? Spinoff idea?

Unread post by hinto » Mon Jul 06, 2015 7:45 pm

Absolutely.
By far the easiest Windows upgrade to a new machine occurred when I moved from an i5 to i7 Dell and went from 8 GB ram to 32 GB.
All I did was install Linux on the new machine (the old one had Linux, too) and copy over the Windows virtual machine.
Presto new hardware, new more ram, no new Windows apps to re-install.
The Linux install too about 15-20 min (start counting at live boot) and the copy the Windows virtual image (300 GB) took about 45 min.
-Hinto
"A human being should be able to... butcher a hog..." -Robert Heinlein

User avatar
opt1k
runs Stable
Posts: 35
Joined: Fri Jul 03, 2015 8:44 pm

Re: KVM? Virtualization? Spinoff idea?

Unread post by opt1k » Tue Jul 07, 2015 10:16 am

hinto wrote:Absolutely.
By far the easiest Windows upgrade to a new machine occurred when I moved from an i5 to i7 Dell and went from 8 GB ram to 32 GB.
All I did was install Linux on the new machine (the old one had Linux, too) and copy over the Windows virtual machine.
Presto new hardware, new more ram, no new Windows apps to re-install.
The Linux install too about 15-20 min (start counting at live boot) and the copy the Windows virtual image (300 GB) took about 45 min.
-Hinto

This is one of the reasons the world needs a lightweight distribution with the sole purpose of virtualization.

User avatar
doubledutch
killall X
Posts: 163
Joined: Sun Aug 10, 2014 1:25 pm

Re: KVM? Virtualization? Spinoff idea?

Unread post by doubledutch » Thu Jul 23, 2015 1:22 pm

I would love to help. This is something I'd love to work on, and is a tool I'd definitely use.

Edit: Have been thinking about this since I posted... I was brainstorming cool ways to ncurses-ize menus to apparmor instances (aka isolate guests, since they're processes) much like seen here https://libvirt.org/drvqemu.html#securitysvirtaa. Then I looked it up, and libvirt doesn't just handle KVM/QEMU Linux, it also supports Xen, LXC, OpenVZ, User Mode Linux paravirtualization, VirtualBox, VMWare Workstation/Player/ESX/GSX, MS Hyper-V, IBM PowerVM, Parallels, Bhyve, and virtual networks using bridging and NAT and more (which is huge). You'd also have to extend basic IDE/SCSI/USB disk support by writing in FibreChannel, LVM, iSCSI and NFS filesystem functionality. Enterprise users would like to see TLS/x509 and SASL (fuck Kerberos), which is its own hairy mess to deal with.

But as a lightweight thing, yes I think your idea is awesome and it's the slimness that would make it great, as well as custom scripts/tools that you mentioned.

Post Reply