Smoothwall Firewall project

Showing posts with label Hypervisor. Show all posts
Showing posts with label Hypervisor. Show all posts

Wednesday, 30 April 2014

Problem loading/starting a KVM virtual machine on a CentOS 6.5 host that has SELINUX disabled


If you have recently built a KVM host for all your virtual machines and left SELINUX enabled, then all will be well, but what happens when you turn that setting off. Well you will end up with VM's that won't load with the error message

error: Failed to start domain Ubuntu1404
error: unsupported configuration: Unable to find security driver for label selinux


It is easy to fix , use the following command and just remove the seclabel section on the virtual machine domain XML - virsh edit Ubuntu1404

# virsh edit Ubuntu1404
...
  <;seclabel type='dynamic' model='selinux' relabel='yes'>;
    <label>system_u:system_r:svirt_t:s0:c95,c664</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c95,c664</imagelabel>
  </seclabel>  

Once you have done that, the domains will load as normal.

Make sure if you have backup's of the domain XML, they are also changed, as I have found that they will over write the domain if your not careful

Check in /etc/libvirt/qemu to make sure the changes have happen, and the XML has been updated.

Sunday, 22 March 2009

Using VMware to move an IT department across London

I have been using virtualization in many forms now for years, and when the job appeared to move my IT department across London, with as little disruption as possible, I thought VMware player and workstation could come to my aid, and they did.

The key tool that really helped me was a free one from VMware called VMware converter, which allows you to virtualize a windows installation on a physical machine to a virtual image. It is not a quick process, and you have to get the timing right with the users data, but machines can be done over night, so no disruption there.

Once all the machines were done, it was just a matter of moving all those images to the new premises along with any other data that had been captured after the image was made. We did this with a NAS server, which was small and compact, but held 2TB of data, as some of these virtual images were quiet large, though you can shrink them when you convert them, which we did.

We deployed all of these images onto machines onot quad core HP machines with Ubuntu Linux 8.04 and VMplayer 2.0. We could have used VMware workstation, but then not all of the users ever need to create new images or change their existing one. We there bought only a handful of workstation licences so that power users could create or manage the images for others.

This allowed all of the staff to turn up on the Monday morning with their machines exactly as they had left them on the Friday evening, no downtime, and no wasted time having to re-install the same applications onto new machines.

If the team had all been using virtual images in the first place , this would have made this whole process even easier, and it is another good reason for people to start using virtualized desktops.

It does also open up the possibility of having a thin Hypervisor layer on the desktop so that all it does is service the needs of the virtual client, very much like they are doing in the server world with Ubuntu JEOS. It also allows the team to use many different virtual images for all sorts of development tasks which is extremely useful, which is a great side affect of this process.

A great feature of all of the components used in this solution is that they are all free , apart from VMware workstation, and it would be possible to do exactly the same thing using open source components , if there were either a good P2V ( physical to virtual) tool, or even one that converts VMware images to Xen or KVM.

It worked perfectly, and has been doing so for over a year now, so I can heartily recommend this process to anyone looking to achieve the same sort of move.