Page 1 of 1

Best Host

Posted: 26. Apr 2011, 16:22
by wyrmhaven
If a person wanted to create a permenant environment to host a Windows Server appliance and a couple of experimental linux appliances that only run part time, what would the best host OS be to run it on?

I have a quad core system that i want to run a small business server on, that one would run all of the time, but i want to run it in a virtual box environment because of it's easy rollback ability. (I do alot of experimental / lab work testing OS and Apps)

Have thought about running the host os as the full time server (windows smb 2003) and the other smaller part times as VMs on that system, but that does away with the rollback ability on the main server.

I am sure that there are alot of people out there that have alot of experience with VirtualBox and i am just looking for some good feedback before i start building :)

Re: Best Host

Posted: 27. Apr 2011, 16:19
by ch.eick
Hi,
your question is not easy to answer, because it depends :D

Basically, it is important to have lots of resources! If you want to have one Base Server with multiple VMs you have to
think about the amount of VMs and there CPU and memory usage. Also the disk usage regarding size and performance
is very important.
I'm running my Home Server with an
AMD Phenom II X6 1090T with 3214 MHz
8 GB Ram for the first shot (16 GB max on that motherboard)
4x1TB Disk different series, because of disk production failures
zfs file system (RAID-Z)
2x 250 GB Disk for root disk mirror
external disks for backups with zfs
you may use zfs send/receive to transfer zfs clones to different Server
up to 6 sata slots on board
4 sata ports on an PCI card
grafix on board
sound on board (not needed for server)
1GB Ethernet
Solaris 11 Express b150
using zfs, zones, cifs (samba), iscsi, apache, Jommla, VirtualBox
VirtualBox 4.0.4 is running headless in a zone
VirtualBox is configured with iscsi devices, which are hosted on the underlaying server.
each iscsi device is an zfs and could there for be snapshoted and cloned by zfs and also be compressed.
For test VMs I normaly only use a zfs snapshot/clone , distribute it as iscsi device and boot that
Image with VirtualBox. The golden base image has a size of 3.2GB (compressed to 2.8GB for a Win7).
The snapshot starts by 120MB and grows, depending of the tests. After testing I throw the entire
snapshot away and create a new one.
You could also boot the iscsi devices from client hosts and run the local client resources, but not at the
same time and not with very different hardware architectures. This is because of reconfiguring the guest
system.
If you use to identical server hosts, you can also "teleport" a running VM from one host to the other, by
using iscsi as shared storage. Please have a special look to the iscsi disk performance. You will need a
pretty good running iscsi san, to have fun.

My conclusion on that is, you first need a concept for your business needs. If you will centralize your
resources it is important to have a redundant and high performance environment. Keep it simple and
write down a disaster recovery concept. Do a continues backup and test your recovery.

For my home equipment I only use a basic installation without any funny modifications. I only do changes
with a special need! I documented all single steps to come from a clean hardware to a running system,
which is my disaster recovery plan. After that I recover my data from the backup devices, follow my
iscsi instructions and boot my VMs....that's it.

That's on my home server:
CIFS share for Windows clients
Video, audio and data
iscsi shares for VirtualBox on the server or over 1GB Ethernet to the client
1x zone for VirtualBox
if you select a single USB port to a single VM, you can have a special USB device in each VM client
1x zone for VirtualBox, to test teleporting in the box
1x zone for apache with joomla, to have a private web server
1x zone to play with Oracle 11 Express and to have a scp server
Remote service by VNC using DynDns or by ssh
2x golden base image for different guests
3-5x cloned images for test and playing around

And now back to your question:
You may run Oracle 11 Express as your base server system.
Put your small business server into VirtualBox
Put other test systems also in VirtualBox
You better buy a second hot standby server with identical hardware or less ram and storage
Create a concept to teleport the small business server between both servers for maintenance requirements
or even for recovery of the business server.
In good times you may use both systems in parallel for testing (I did an Win7 sp1 update and had to reboot my hole server!),
so you better do this kind of updates not on the same system, even if it is inside a VM 8) .
Have a special thinking on your storage and may use zfs with mirror and raid-z . May tune it with ssd cache.
Use zfs send/receive to bring your data to the second server the first time and after that by sending snapshots.
http://www.solarisinternals.com/wiki/in ... ices_Guide
You better train your users to put no data on the local VMs. Thereby you are able to kick bad VMs and start with
a clean new clone. You may write some nice scripts, to personalize a fresh VM distribution.

that's it for the first time...

Re: Best Host

Posted: 27. Apr 2011, 21:04
by scottgus1
I have SBS2003 running as a VM on an XP host along with another XP guest for anti-spam, see http://forums.virtualbox.org/viewtopic.php?f=6&t=37835
It runs excellently! Dell Poweredge 1800, Xeon, 3GB ram, Raid card. Would like more strength in the box, but it was just the SBS2003 before, no VM's. My backup routine involves shutdown of the server VM, copying the virtual disks, and rebooting the host. I have started a copy of the server VM's vdi on my home core-I5 flight-sim PC for testing, it started up just fine.

Re: Best Host

Posted: 28. Apr 2011, 11:26
by wyrmhaven
Yeah, not too worried about the hardware side of it. That i have in the bag, just mostly interested in the viewpoint of the best hosting operating system. I like the linux stability and now i have seen this php VirtualBox web ui and will be trying that out in a few days.

Re: Best Host

Posted: 22. Jul 2011, 16:09
by kebabbert
ch.eick wrote:VirtualBox is configured with iscsi devices, which are hosted on the underlaying server.
each iscsi device is an zfs and could there for be snapshoted and cloned by zfs and also be compressed.
For test VMs I normaly only use a zfs snapshot/clone , distribute it as iscsi device and boot that
Image with VirtualBox. The golden base image has a size of 3.2GB (compressed to 2.8GB for a Win7).
The snapshot starts by 120MB and grows, depending of the tests. After testing I throw the entire
snapshot away and create a new one.
You could also boot the iscsi devices from client hosts and run the local client resources, but not at the
same time and not with very different hardware architectures. This is because of reconfiguring the guest
system.
A question: why are you using iscsi with zfs clones? I use Solaris 11 Express, and opted for this much simpler solution
http://forums.virtualbox.org/viewtopic. ... 49#p194755
Is it tricky to setup iscsi with zfs clones? Can you give a short explanation, just like I did? Could be useful for future reference...

Re: Best Host

Posted: 26. Jul 2011, 19:34
by ch.eick
Hi kebabbert

I'm using iscsi devices to be able to share boot disk over my Gigabit Ethernet with
other hosts. With that configuration I'm also able to teleport a running VirtualBox guest
between hosts.

Now a very short description...

ISCSI activation and configuration:
You need to install the "Sun iSCSI COMSTAR Port Provider" package.

After installation you have to enable it.
root@Mobile:~# svcadm enable stmf
root@Mobile:~# svcs -xv
root@Mobile:~# svcs stmf
STATE STIME FMRI
online 12:31:54 svc:/system/stmf:default
root@Mobile:~# stmfadm list-state
Operational Status: online
Config Status : initialized
ALUA Status : disabled
ALUA Node : 0

root@Mobile:~# svcadm enable target
root@Mobile:~# itadm create-target
root@Mobile:~# itadm list-target -v
TARGET NAME STATE SESSIONS
iqn.1986-03.com.sun:02:906bdfae-6667-eb3c-d618-fffb3e833f28 online 1
alias: -
auth: none (defaults)
targetchapuser: -
targetchapsecret: unset
tpg-tags: default


Now we need an zfs pool
root@Mobile:~# zfs create rpool/iscsi
root@Mobile:~# zfs set compression=on rpool/iscsi
and a zfs filesystem
root@Mobile:~# zfs create -V 20G rpool/iscsi/lun_Win7_Image

root@Mobile:~# zfs get compressratio rpool/iscsi/lun_Win7_Image
NAME PROPERTY VALUE SOURCE
rpool/iscsi/lun_Win7_Image compressratio 1.00x -

okay, there is no compression, because of an empty filesystem :-)
On my installation I have an compressionratio of 1,56 for a Win7 guest.

By using zfs snapshots and clones you can now save a lot of time and disk space.
root@Mobile:~# zfs snapshot rpool/iscsi/lun_Win7_Image@master
root@Mobile:~# zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
rpool/iscsi/lun_Win7_Image@master 0 - 15,68G -
root@Mobile:~# zfs clone rpool/iscsi/lun_Win7_Image@master rpool/iscsi/lun1

You may have a look to your zfs filesystems...
root@Mobile:/zones# zfs list|grep iscsi
rpool/iscsi 2,83G 36,3G 31K /rpool/iscsi
rpool/iscsi/lun1_WinXP_20101110 5,47M 36,3G 2,82G -
rpool/iscsi/lun2_WinXP_20101110 5,22M 36,3G 2,82G -
rpool/iscsi/lun_WinXP_Image 2,82G 36,3G 2,82G -



Now create a logical unit.
root@Mobile:~# sbdadm create-lu /dev/zvol/rdsk/rpool/iscsi/lun1
root@Mobile:~# sbdadm list-lu
Found 2 LU(s)
GUID DATA SIZE SOURCE
-------------------------------- ------------------- ----------------
600144f0080027ace5864cd16a790001 5368709120 /dev/zvol/rdsk/rpool/iscsi/lun1

and add a view to that LU
root@Mobile:~# stmfadm add-view --lun 1 600144F0080027ACE5864CD16A790001

To add the new disk to an VirtualBox guest you may use this command and change all parameters,
to fit to your environment.
VBoxManage storageattach lun1_WinXP --storagectl IDE-Controllert --port 0 --device 0 --type hdd --medium iscsi --server ServerName --target iqn.1986-03.com.sun:02:906bdfae-6667-eb3c-d618-fffb3e833f28 --lun 1


Conclusion:

* You now be able to have a golden image of you guest system.
* You are able to create a snapshot
* You clone that snapshot 1-n times
* You create 1-n luns and views
* You add the iscsi luns to your guest systems
* you may update your golden image and do a new roll out (have attention to local client data!!!)
* you are able to use teleport between different hosts
* you can use zfs send/receive to transfer the iscsi zfz from one zfs pool to an other, or also to other hosts
* you may create multiple snapshots from an hole guest disk (shut down the guest first; cold image)
* you save disk space, because of compression and snapshots for cloning


Okay, that's it for this time
Chris