{"id":597,"date":"2016-04-27T10:38:09","date_gmt":"2016-04-27T09:38:09","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=597"},"modified":"2016-04-27T12:27:49","modified_gmt":"2016-04-27T11:27:49","slug":"installing-kvm-virt-manager-xenserver-rackspace-onmetal","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/04\/27\/installing-kvm-virt-manager-xenserver-rackspace-onmetal\/","title":{"rendered":"Installing KVM, libvirtd virt-manager and Xenserver for Rackspace onmetal using ZFS &#038; X11 Forwarding"},"content":{"rendered":"<p>So, you want to run your own hypervisor using xenserver, but you want to have some of the flexibility of KVM too. This instructional guide explains how to install and configure KVM with virt-manager and with X11 forwarding. We will go step by step. In this case I am using a mac.<\/p>\n<h1> Step 1 &#8211; Create Rackspace onmetalv2 server<\/h1>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.05.06-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.05.06-AM.png\" alt=\"Screen Shot 2016-04-27 at 10.05.06 AM\" width=\"767\" height=\"652\" class=\"alignnone size-full wp-image-598\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.05.06-AM.png 767w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.05.06-AM-300x255.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.05.06-AM-353x300.png 353w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/a><br \/>\nIn this case I&#8217;ll be using a 40 cpu 128GB machine as the host utilizing the new onmetalv2 server range offered by Rackspace public cloud.<\/p>\n<p>Please note that this is a bare metal server, not a cloud server, however it is offered by the same cloud platform at mycloud.rackspace.co.uk<\/p>\n<h1> Step 2 &#8211; Install and configure KVM <\/h1>\n<pre>\r\nsudo yum update -y\r\nsudo yum -y install kvm virt-manager libvirt virt-install qemu-kvm xauth dejavu-lgc-sans-fonts\r\n<\/pre>\n<h1> Step 3 &#8211; Start and configure libvirtd <\/h1>\n<pre>\r\nchkconfig libvirtd\r\nservice libvirtd status\r\nservice libvirtd restart\r\nservice libvirtd status\r\n<\/pre>\n<h1> Step 4 &#8211; MAC SYSTEMS &#8211; Install X Quartz <\/h1>\n<p>For mac users simply install X Quartz, which can be found at <a href=\"http:\/\/www.xquartz.org\/\">http:\/\/www.xquartz.org\/<\/a><\/p>\n<h1> Step 4a &#8211; Windows Systems &#8211; Install Xming <\/h1>\n<p>Windows users can get in on the action too, using xming which can be found at <a href=\"https:\/\/sourceforge.net\/projects\/xming\/\">https:\/\/sourceforge.net\/projects\/xming\/<\/a><\/p>\n<h1> Step 5 &#8211; MAC SYSTEMS ONLY &#8211; Configure X11 Forwarding<\/h1>\n<p>Xming will work out of the box for windows, but for Mac users you need to make sure you have enabled X11 forwarding. <\/p>\n<pre>\r\ntouch ~\/.ssh\/config\r\necho \"ForwardX11 yes\" >> ~\/.ssh\/config \r\n<\/pre>\n<p>This simply allows X11 forwarding for Mac users which needs to be done at the client side. Then you can virtualize any application you like on the client, but running the application such as firefox , or even a virtual machine on the remote server. SSHv2 is beautiful. That&#8217;s it you&#8217;ve completed the most important steps.<\/p>\n<h1> Running virt-manager for the first time <\/h1>\n<pre> \r\n[root@on-metal-test-2 ~]# virt-manager\r\n<\/pre>\n<p>After running the above command you will see something like the image below. You&#8217;ll see an X window open on your local client machine, which is associated with an application running on the remote server your connected to via SSH. This is pretty damn cool. <\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.26.53-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.26.53-AM.png\" alt=\"Screen Shot 2016-04-27 at 10.26.53 AM\" width=\"1052\" height=\"762\" class=\"alignnone size-full wp-image-599\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.26.53-AM.png 1052w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.26.53-AM-300x217.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.26.53-AM-768x556.png 768w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.26.53-AM-1024x742.png 1024w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.26.53-AM-414x300.png 414w\" sizes=\"auto, (max-width: 1052px) 100vw, 1052px\" \/><\/a><\/p>\n<p>Lets take this further and install firefox to demonstrate how awesome this is!<\/p>\n<pre>\r\nyum install firefox -y\r\n<\/pre>\n<p>Now we&#8217;re using firefox thru ssh, much better and more convenient to use X11 forwarding for this, than using a proxy for instance on the client configured with tunnel or vpn.<\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.33.23-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.33.23-AM.png\" alt=\"Screen Shot 2016-04-27 at 10.33.23 AM\" width=\"1233\" height=\"761\" class=\"alignnone size-full wp-image-600\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.33.23-AM.png 1233w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.33.23-AM-300x185.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.33.23-AM-768x474.png 768w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.33.23-AM-1024x632.png 1024w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-10.33.23-AM-486x300.png 486w\" sizes=\"auto, (max-width: 1233px) 100vw, 1233px\" \/><\/a><\/p>\n<p>Nice!<\/p>\n<p>Lets take it a bit further and start installing xen server with KVM. I am very tempted to use ZFS for this since onmetal v2 has 2 1600GB disks&#8230;<\/p>\n<h1> Create partitions for KVM store <\/h1>\n<pre>\r\nfdisk -l \r\nfdisk \/dev\/sdc\r\n\r\n# type m , then type n, then type p, enter, enter, enter, enter, then type w\r\n\r\nfdisk \/dev\/sdd\r\n\r\n# type m , then type n, then type p, enter, enter, enter, enter, then type w\r\n <\/pre>\n<h1> Create filesystem for KVM store <\/h1>\n<pre>\r\n[root@on-metal-test-2 ~]# mkfs.ext3 \/dev\/sdc1 && mkfs.ext3 \/dev\/sdd1\r\nmke2fs 1.42.9 (28-Dec-2013)\r\nDiscarding device blocks: done\r\nFilesystem label=\r\nOS type: Linux\r\nBlock size=4096 (log=2)\r\nFragment size=4096 (log=2)\r\nStride=0 blocks, Stripe width=0 blocks\r\n97656832 inodes, 390624640 blocks\r\n19531232 blocks (5.00%) reserved for the super user\r\nFirst data block=0\r\nMaximum filesystem blocks=4294967296\r\n11921 block groups\r\n32768 blocks per group, 32768 fragments per group\r\n8192 inodes per group\r\nSuperblock backups stored on blocks:\r\n\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,\r\n\t4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,\r\n\t102400000, 214990848\r\n\r\nAllocating group tables: done\r\nWriting inode tables: done\r\nCreating journal (32768 blocks): done\r\nWriting superblocks and filesystem accounting information: done\r\n\r\nmke2fs 1.42.9 (28-Dec-2013)\r\nDiscarding device blocks: done\r\nFilesystem label=\r\nOS type: Linux\r\nBlock size=4096 (log=2)\r\nFragment size=4096 (log=2)\r\nStride=0 blocks, Stripe width=0 blocks\r\n97656832 inodes, 390624640 blocks\r\n19531232 blocks (5.00%) reserved for the super user\r\nFirst data block=0\r\nMaximum filesystem blocks=4294967296\r\n11921 block groups\r\n32768 blocks per group, 32768 fragments per group\r\n8192 inodes per group\r\nSuperblock backups stored on blocks:\r\n\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,\r\n\t4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,\r\n\t102400000, 214990848\r\n\r\nAllocating group tables: done\r\nWriting inode tables: done\r\nCreating journal (32768 blocks): done\r\nWriting superblocks and filesystem accounting information: done\r\n<\/pre>\n<p>Now we have created the filesystem. What about creating the ZFS partition. To do this we need to go thru a fairly laborious process (at least if you don&#8217;t know what your doing). As I discovered my yum installation wasn&#8217;t automatically providing the correct devel source for the kernel to use the ZFS DKMS module. As ZFS is really a native BSD package. <\/p>\n<p>One of the problems I had was this<\/p>\n<pre>\r\nLoading new spl-0.6.5.6 DKMS files...\r\nBuilding for 3.10.0-327.10.1.el7.x86_64\r\nModule build for kernel 3.10.0-327.10.1.el7.x86_64 was skipped since the\r\nkernel source for this kernel does not seem to be installed.\r\n  Installing : zfs-dkms-0.6.5.6-1.el7.centos.noarch                                                                                                                       4\/6\r\nLoading new zfs-0.6.5.6 DKMS files...\r\nBuilding for 3.10.0-327.10.1.el7.x86_64\r\nModule build for kernel 3.10.0-327.10.1.el7.x86_64 was skipped since the\r\nkernel source for this kernel does not seem to be installed.\r\n\r\n<\/pre>\n<p>This can be checked out in more detail by running an;<\/p>\n<pre>\r\nyum search --show-duplicates kernel-devel\r\n# and\r\nrpm -qa | grep kernel\r\n<\/pre>\n<p>This gave me the right version of the devel kernel I needed to install ZFS to my current kernel with a module, as opposed to completely recompiling the whole thing. Nice!<\/p>\n<h1> Install ZFS and kernel devel<\/h1>\n<pre>\r\nsudo yum localinstall --nogpgcheck http:\/\/archive.zfsonlinux.org\/epel\/zfs-release.el7.noarch.rpm\r\nsudo yum install epel-release\r\n\r\nsudo yum install zfs kernel-devel-3.10.0-327.10.1.el7.x86_64\r\n <\/pre>\n<h1> Enable ZFS <\/h1>\n[root@on-metal-test-2 adam]# \/sbin\/modprobe zfs<\/p>\n<h1> Create the 2 disk mirror using ZFS<\/h1>\n<pre>\r\n[root@on-metal-test-2 adam]# zpool create -f kvmstore mirror sdc1 sdd1\r\n<\/pre>\n<h1> Check KVM store disk <\/h1>\n<pre>\r\n[root@on-metal-test-2 adam]# df -h\r\nFilesystem      Size  Used Avail Use% Mounted on\r\n\/dev\/md126p1    220G  2.3G  209G   2% \/\r\ndevtmpfs         63G     0   63G   0% \/dev\r\ntmpfs            63G     0   63G   0% \/dev\/shm\r\ntmpfs            63G   26M   63G   1% \/run\r\ntmpfs            63G     0   63G   0% \/sys\/fs\/cgroup\r\ntmpfs            13G  4.0K   13G   1% \/run\/user\/0\r\nkvmstore        1.5T     0  1.5T   0% \/kvmstore\r\n<\/pre>\n<h1> Run Virt manager to create Xenserver VM <\/h1>\n<p>Now we&#8217;ve created our partition and filesystem and configured ZFS we can run the virtual machines off the new kvm partition store. simples<\/p>\n<h3> Click top left icon on corner to create new VM <\/h3>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.27.52-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.27.52-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.27.52 AM\" width=\"544\" height=\"529\" class=\"alignnone size-full wp-image-606\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.27.52-AM.png 544w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.27.52-AM-300x292.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.27.52-AM-309x300.png 309w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/a><\/p>\n<h3> Download the Xenserver ISO to \/root of hypervisor<\/h3>\n<pre>\r\nroot@on-metal-test-2 ~]# wget http:\/\/downloadns.citrix.com.edgesuite.net\/10175\/XenServer-6.5.0-xenserver.org-install-cd.iso\r\n--2016-04-27 10:29:22--  http:\/\/downloadns.citrix.com.edgesuite.net\/10175\/XenServer-6.5.0-xenserver.org-install-cd.iso\r\nResolving downloadns.citrix.com.edgesuite.net (downloadns.citrix.com.edgesuite.net)... 104.86.110.32, 104.86.110.49\r\nConnecting to downloadns.citrix.com.edgesuite.net (downloadns.citrix.com.edgesuite.net)|104.86.110.32|:80... connected.\r\nHTTP request sent, awaiting response... 200 OK\r\nLength: 603744256 (576M) [application\/octet-stream]\r\nSaving to: \u2018XenServer-6.5.0-xenserver.org-install-cd.iso\u2019\r\n\r\n100%[====================================================================================================================================>] 603,744,256 17.6MB\/s   in 38s\r\n<\/pre>\n<h3> Select Local Media (we&#8217;re going to use a Xenserver ISO) <\/h3>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.28.28-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.28.28-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.28.28 AM\" width=\"406\" height=\"424\" class=\"alignnone size-full wp-image-607\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.28.28-AM.png 406w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.28.28-AM-287x300.png 287w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.31.17-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.31.17-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.31.17 AM\" width=\"743\" height=\"505\" class=\"alignnone size-full wp-image-608\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.31.17-AM.png 743w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.31.17-AM-300x204.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.31.17-AM-441x300.png 441w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n<p>Click browse, then press the bottom left + icon to add some pools. We&#8217;re going to add \/root which has our iso in it, and we&#8217;re also going to add kvmstore aswell.<\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.32.17-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.32.17-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.32.17 AM\" width=\"383\" height=\"369\" class=\"alignnone size-full wp-image-609\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.32.17-AM.png 383w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.32.17-AM-300x289.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.32.17-AM-311x300.png 311w\" sizes=\"auto, (max-width: 383px) 100vw, 383px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.11-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.11-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.34.11 AM\" width=\"379\" height=\"369\" class=\"alignnone size-full wp-image-610\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.11-AM.png 379w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.11-AM-300x292.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.11-AM-308x300.png 308w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.21-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.21-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.34.21 AM\" width=\"448\" height=\"369\" class=\"alignnone size-full wp-image-611\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.21-AM.png 448w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.21-AM-300x247.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.21-AM-364x300.png 364w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.33-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.33-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.34.33 AM\" width=\"747\" height=\"521\" class=\"alignnone size-full wp-image-612\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.33-AM.png 747w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.33-AM-300x209.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.34.33-AM-430x300.png 430w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/a><\/p>\n<p>Congratulations you have now added the stores. Now all we need to do is finish configuring the VM.<\/p>\n<p>We want to select the root partition now we have set up the pool, and choose the xenserver iso we just recently downloaded.<\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.36.51-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.36.51-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.36.51 AM\" width=\"1249\" height=\"662\" class=\"alignnone size-full wp-image-614\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.36.51-AM.png 1249w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.36.51-AM-300x159.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.36.51-AM-768x407.png 768w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.36.51-AM-1024x543.png 1024w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.36.51-AM-500x265.png 500w\" sizes=\"auto, (max-width: 1249px) 100vw, 1249px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.37.32-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.37.32-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.37.32 AM\" width=\"403\" height=\"426\" class=\"alignnone size-full wp-image-615\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.37.32-AM.png 403w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.37.32-AM-284x300.png 284w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<p>We are almost there now! Lets set the number of cpu and ram! Also lets make sure we use the kvmstore we just setup instead of the &#8216;main disk&#8217; of the server.<\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.38.19-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.38.19-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.38.19 AM\" width=\"402\" height=\"427\" class=\"alignnone size-full wp-image-616\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.38.19-AM.png 402w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.38.19-AM-282x300.png 282w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/a><\/p>\n<p>Select our KVM store &#8216;pool&#8217; on the left hand side, and then press + to add the kvmstore.qcow2 volume, see the images for illustration.<\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.46-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.46-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.39.46 AM\" width=\"744\" height=\"524\" class=\"alignnone size-full wp-image-618\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.46-AM.png 744w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.46-AM-300x211.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.46-AM-426x300.png 426w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.02-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.02-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.39.02 AM\" width=\"429\" height=\"379\" class=\"alignnone size-full wp-image-619\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.02-AM.png 429w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.02-AM-300x265.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.39.02-AM-340x300.png 340w\" sizes=\"auto, (max-width: 429px) 100vw, 429px\" \/><\/a><\/p>\n<p>click choose volume at the bottom left to confirm! And finally name the server <\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.41.52-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.41.52-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.41.52 AM\" width=\"399\" height=\"422\" class=\"alignnone size-full wp-image-620\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.41.52-AM.png 399w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.41.52-AM-284x300.png 284w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/a><\/p>\n<p>awwww crap ,\u00a0we got this error because the libvirtd kvm configuration isnt running as root<\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.44.33-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.44.33-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.44.33 AM\" width=\"401\" height=\"425\" class=\"alignnone size-full wp-image-621\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.44.33-AM.png 401w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.44.33-AM-283x300.png 283w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><\/a><\/p>\n<p>This can be quickly resolved by editing the \/etc\/libvirt\/qemu.conf  and making sure user = &#8220;root&#8221; and group = &#8220;root&#8221; are present.<\/p>\n<p><a href=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.47.36-AM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.47.36-AM.png\" alt=\"Screen Shot 2016-04-27 at 11.47.36 AM\" width=\"798\" height=\"620\" class=\"alignnone size-full wp-image-622\" srcset=\"https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.47.36-AM.png 798w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.47.36-AM-300x233.png 300w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.47.36-AM-768x597.png 768w, https:\/\/haxed.me.uk\/wp-content\/uploads\/2016\/04\/Screen-Shot-2016-04-27-at-11.47.36-AM-386x300.png 386w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/a><\/p>\n<p>Job done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, you want to run your own hypervisor using xenserver, but you want to have some of the flexibility of KVM too. This instructional guide explains how to install and configure KVM with virt-manager and with X11 forwarding. We will &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/04\/27\/installing-kvm-virt-manager-xenserver-rackspace-onmetal\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,9,7,52,5],"tags":[],"class_list":["post-597","post","type-post","status-publish","format-standard","hentry","category-kvm","category-linux","category-management-tools","category-virtualization","category-xen"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=597"}],"version-history":[{"count":10,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/597\/revisions"}],"predecessor-version":[{"id":626,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/597\/revisions\/626"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}