{"id":36,"date":"2015-07-27T18:22:50","date_gmt":"2015-07-27T21:22:50","guid":{"rendered":"http:\/\/www.kb.venidera.com\/?p=36"},"modified":"2018-07-26T13:39:51","modified_gmt":"2018-07-26T16:39:51","slug":"fast-creation-of-kvm-vms-to-use-with-maas","status":"publish","type":"post","link":"https:\/\/portal.venidera.com\/kb\/2015\/07\/27\/fast-creation-of-kvm-vms-to-use-with-maas\/","title":{"rendered":"Fast creation of kvm vms to use with MAAS"},"content":{"rendered":"<p class=\"qtranxs-available-languages-message qtranxs-available-languages-message-pb\">Desculpe-nos, mas este texto est\u00e1 apenas dispon\u00edvel em <a href=\"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/posts\/36?lang=en\" class=\"qtranxs-available-language-link qtranxs-available-language-link-en\" title=\"English\">English<\/a>. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.<\/p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 hundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-overflow:visible;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last fusion-column-no-min-height\" style=\"--awb-bg-size:cover;--awb-margin-bottom:0px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\">Remember to adjust the number of nodes, cpu, ram and the disk size.<br \/>\nImportant, use the rtl8139 driver for fast boot with MAAS PXE, and note the below the boot is defined to be made\u00a0through network.<br \/>\nAnd, remember to add the <code>br0<\/code> bridge interface.<\/p>\n<p><code>for i in {0..5}; do<br \/>\nvirt-install<br \/>\n--name=maas-node-${i}<br \/>\n--connect=qemu:\/\/\/system --ram=4096 --vcpus=1 --hvm --virt-type=kvm<br \/>\n--pxe --boot network,hd<br \/>\n--os-variant=ubuntutrusty --graphics vnc --noautoconsole --os-type=linux --accelerate<br \/>\n--disk=\/var\/lib\/libvirt\/images\/maas-node-${i}.qcow2,bus=virtio,format=qcow2,cache=none,sparse=true,size=32<br \/>\n--network=bridge=br0,model=rtl8139<br \/>\ndone<\/code><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[9],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-reminders","tag-virt-install"],"_links":{"self":[{"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":4,"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/posts\/36\/revisions\/235"}],"wp:attachment":[{"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portal.venidera.com\/kb\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}