{"id":422,"date":"2010-04-05T19:14:03","date_gmt":"2010-04-05T17:14:03","guid":{"rendered":"http:\/\/c-nergy.be\/blog\/?p=422"},"modified":"2011-08-12T15:36:22","modified_gmt":"2011-08-12T13:36:22","slug":"setup-your-proxmox-ve-infrastructure-%e2%80%93-part-4-creating-virtual-machines","status":"publish","type":"post","link":"http:\/\/c-nergy.be\/blog\/?p=422","title":{"rendered":"Setup your ProxMox VE Infrastructure \u2013 Part 4 &#8211; Creating Virtual Machines"},"content":{"rendered":"<p>Hello World,<\/p>\n<p>In <a href=\"http:\/\/c-nergy.be\/blog\/?p=356\">Part 1<\/a>, <a href=\"http:\/\/c-nergy.be\/blog\/?p=369\">2<\/a> and <a href=\"http:\/\/c-nergy.be\/blog\/?p=393\">3<\/a>, we have setup our PROXMOX VE infrastructure.\u00a0 It&#8217;s time to create our first virtual machine.\u00a0 With Proxmox, you know that you can create KVM virtual machines or OpenVZ container. In this last part, we will show you how to create virtual machines (KVM or OpenVz Container).\u00a0 After this post, you should be able to run a virtualized infrastructure.\u00a0\u00a0 So far, we have done basic configuration.\u00a0 In a next series of post, we will try to dive a little bit deeper into the product.\u00a0\u00a0 Of course, we will try to update this information based on new releases of the proxmox ve team.<\/p>\n<p>Let&#8217;s create our virtual machines !!<\/p>\n<h2>Creating Fully Virtualized Machines (KVM technology)<\/h2>\n<p style=\"text-align: justify;\">We will first demonstrate how to create a windows 2003 Virtual machine with PROXMOX VE Technology<\/p>\n<p>As you probably know (by now), you will need to login to the web interface.\u00a0 From the Home Page, on the left menu, click on the link Virtual machines. On the main pane, click on the create tab. You will be presented with the following web page<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-434\" title=\"ProxKvm1\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm1-300x157.png\" alt=\"\" width=\"300\" height=\"157\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm1-300x157.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm1.png 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">In the configuration section, ensure that the type option is set to <strong>&#8220;Fully Virtualized (KVM).<\/strong> Then you simply need to provide the hardware characteristics of your virtual machine. Within this form, you can specify the disk size, the RAM and the guest OS type you want to use.\u00a0 You can also specify where to store your disk. At the moment, we are just using local storage but if you have an ISCSI infrastructure, you could store your Virtual machines over there.<\/p>\n<p style=\"text-align: justify;\">In the network section, I selected as network Card the Virtio.\u00a0 You will need to install additional drivers within the Windows 2003 Operating System.\u00a0 When you are ready, you can press Create. You will see output information similar to this one<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-435\" title=\"ProxKvm2\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm2-300x98.png\" alt=\"\" width=\"300\" height=\"98\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm2-300x98.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm2.png 600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">When the machine is created, you will see in the Virtual machines page that your newly virtual machine has been created.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-436\" title=\"ProxKvm3\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm3-300x131.png\" alt=\"\" width=\"300\" height=\"131\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm3-300x131.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm3.png 601w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">If you click on one of your virtual machine (listed here), you will be redirected to the Virtual Machine configuration page where you can start\/stop, monitor and change some of the hardware settings as required.<\/p>\n<p style=\"text-align: justify;\">If you click on the Status tab, you are provided with general information about the Virtual machine (see screenshot below)<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-437\" title=\"ProxKvm4\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm4-300x194.png\" alt=\"\" width=\"300\" height=\"194\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm4-300x194.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm4.png 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">If you click on the Hardware Tab, you will see your hardware configuration. From here, you can add hard disks, add network card and load iso file into your CDROM Driver.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-438\" title=\"ProxKvm5\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm5-300x205.png\" alt=\"\" width=\"300\" height=\"205\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm5-300x205.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm5.png 434w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">In the options tab, you can specify the boot order and define some more advanced setting such as Real Time Clock, video graphics Adapter,&#8230;.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-440\" title=\"ProxKvm7\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm7-300x236.png\" alt=\"\" width=\"300\" height=\"236\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm7-300x236.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxKvm7.png 380w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">The Monitor tab will give you access to a qemu console where you can monitor your virtual machine.<\/p>\n<p style=\"text-align: justify;\">That&#8217;s it !! You have created your virtual machine but there is no Operating system loaded on it.\u00a0\u00a0 To have a running Windows 2003 Virtual machine, we will need to perform the installation of the Operating system.\u00a0 We will need to upload the ISO image on the PROXMOX VE server.\u00a0 Not a problem, again the PROXMOX VE team has provided a clean web interface to do that.<\/p>\n<p style=\"text-align: justify;\">On the navigation menu, in the VM manager Section click on the ISO Images. You will be presented with the following screen<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-432 alignnone\" title=\"ProxISo1\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo1-300x147.png\" alt=\"\" width=\"300\" height=\"147\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo1-300x147.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo1.png 467w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Simply, Press the Browse button and specify the location where you have stored your ISO images. Then click on the Upload link. When the upload is completed, at the bottom of the page, you can list the ISO Files that have been loaded<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-433\" title=\"ProxISo2\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo2-300x180.png\" alt=\"\" width=\"300\" height=\"180\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo2-300x180.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxISo2.png 445w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: justify;\">Go back to your virtual machine list, click on your virtual machine. Then click on the hardware tab.\u00a0 In the list, click on the CDROM drive entry. You will then be able access to attach you ISO File to the CDROM Drive. Press <strong>Apply <\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/PRoxMOXCD.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-450\" title=\"PRoxMOXCD\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/PRoxMOXCD-300x132.png\" alt=\"\" width=\"300\" height=\"132\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/PRoxMOXCD-300x132.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/PRoxMOXCD.png 535w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Going back to the Status tab, You can now click on the start Button. You will notice that a new hyperlink will be displayed as well. (something called Open VNC Console)<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxFin2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-447\" title=\"ProxMoxFin2\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxFin2-300x189.png\" alt=\"\" width=\"300\" height=\"189\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxFin2-300x189.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxFin2.png 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click on this link in order to have access to the console for the virtual machine.\u00a0 Perform your installation.\u00a0 After your setup has completed, you will have a running virtual machine that you can manage and connect to through any compatible web browser.<\/p>\n<p>&nbsp;<\/p>\n<p>Because we have chosen Virtio as network card when we have created our virtual machine, the Windows Virtual machine will need some drivers in order to install a network card.\u00a0 Special paravirtualized network drivers are available for Windows Guests.\u00a0 These drivers simply improve network performance.\u00a0 You can download the latest version from the KVM project web page or following this link <a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=180599&amp;package_id=267943\">kvm-guest-drivers-windows-2<\/a><\/p>\n<p style=\"text-align: justify;\">After downloading the iso file, you can upload it through the web interface (Go to Virtual Manager -&gt; click on ISO Images then on the page, push the browse button and locate the iso file. When this is done, press \u201cupload\u201d).\u00a0 Then Go back to your virtual machine and attach the KVM-Guest-Drivers to the CDROM. Within Windows Operating System, you will double-click the installer and your are done.(You will need to reboot the machine)<\/p>\n<p style=\"text-align: justify;\">Do not forget to assign an IP address and enable remote desktop within Windows Guest OS.<\/p>\n<p style=\"text-align: justify;\"><strong>A Useful Tip<\/strong><\/p>\n<p>When working with Windows Operating system, you can enable remote desktop and you can use the remote desktop client to connect directly into your guest machines without using the Web Browser.\u00a0 Using <strong>the Tsmmc.msc<\/strong> console, you can create a centralized access point to all your virtual machines. The Tsmmc.msc console is not installed by default on windows system.\u00a0 You need to install the adminpak software.<\/p>\n<h2>Creating Container Virtual Machines (OpenVZ technology)<\/h2>\n<p>Now, we will quickly build up a wordpress OpenVZ container.\u00a0 To create such virtual machine, we will click on the Appliance templates<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-441\" title=\"ProxMoxCont1\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont1-300x139.png\" alt=\"\" width=\"300\" height=\"139\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont1-300x139.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont1.png 520w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">I do not have created any appliance yet.\u00a0 So we will click on the Download tab and download the wordpress appliance available from the PROXMOX VE Repository<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-442\" title=\"ProxMoxCont2\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont2-300x215.png\" alt=\"\" width=\"300\" height=\"215\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont2-300x215.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont2.png 392w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">After clicking on the red arrow (next to the wordpress appliance) and having clicked on the download link, a progress window will be displayed on the web page<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-443\" title=\"ProxMoxCont3\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont3-300x132.png\" alt=\"\" width=\"300\" height=\"132\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont3-300x132.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont3.png 535w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">You can monitor the progress of the download.\u00a0 When the download is completed, you can click on the virtual machines link (in the VM Manager) Section and select Container(OpenVz) in the Type drop down box<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-445\" title=\"ProxMoxCont5\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont5-300x164.png\" alt=\"\" width=\"300\" height=\"164\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont5-300x164.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/ProxMoxCont5.png 603w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>In the configuration section, you can specify the hostname, password disk size and size of the memory to be used.\u00a0 In the network section, leave the default for the network type, assign an IP address and check your DNS settings.\u00a0 When you are happy with your configuration, click on the <strong>Create<\/strong> link.<\/p>\n<p>And voila, you have created your OpenVZ virtual machine.\u00a0 Here, you do not need to perform an installation. The WordPress software is already installed and can be used immediately.\u00a0 If click on the Virtual machines link (in the VM Manager), you will see your newly created virtual machine.\u00a0 Click on it and you will be redirected to the Virtual machine configuration page (as below)<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-455\" title=\"Open1\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open1-300x198.png\" alt=\"\" width=\"300\" height=\"198\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open1-300x198.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open1.png 602w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>From here, you can start\/stop, monitor and connect through the VNC Console to your Appliance.\u00a0 If you click on the network tab, you will be able to adjust your network settings<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-456\" title=\"Open2\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open2-300x149.png\" alt=\"\" width=\"300\" height=\"149\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open2-300x149.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/Open2.png 599w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2 style=\"text-align: justify;\">Final Words<\/h2>\n<p>With this last post, you should be able to setup a basic PROXMOX Virtual infrastructure and create some virtual machines (even if you have only one capable server).\u00a0 As you can see, the product is really easy to use and the management is centralized.\u00a0 PROXMOX VE is not finalized yet.\u00a0 Some operations still need\u00a0 to be performed from command line.\u00a0 You will need some extra tools such as putty to have full control of your Virtual infrastructure.<\/p>\n<p>Your journey has just begun !\u00a0 You have a basic understanding of the PROXMOX VE Infrastructure.\u00a0 In future posts, we will try to explain the network model and storage model that can be implemented with PROXMOX VE software.<\/p>\n<p>Till then<\/p>\n<p>Stay tuned !<\/p>\n<p><a href=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/griffon2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-202\" title=\"griffon2\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/griffon2-300x162.png\" alt=\"\" width=\"210\" height=\"113\" srcset=\"http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/griffon2-300x162.png 300w, http:\/\/c-nergy.be\/blog\/wp-content\/uploads\/griffon2.png 397w\" sizes=\"auto, (max-width: 210px) 100vw, 210px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello World, In Part 1, 2 and 3, we have setup our PROXMOX VE infrastructure.\u00a0 It&#8217;s time to create our first virtual machine.\u00a0 With Proxmox, you know that you can create KVM virtual machines or<a class=\"read-more\" href=\"http:\/\/c-nergy.be\/blog\/?p=422\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[40],"tags":[21,41,396],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-proxmox-ve","tag-administration","tag-open-source","tag-proxmox-ve"],"_links":{"self":[{"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=422"}],"version-history":[{"count":16,"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":1246,"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions\/1246"}],"wp:attachment":[{"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/c-nergy.be\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}