{"id":1611,"date":"2011-11-04T21:40:28","date_gmt":"2011-11-05T02:40:28","guid":{"rendered":"http:\/\/bucktownbell.com\/?p=1611"},"modified":"2012-09-12T23:36:40","modified_gmt":"2012-09-13T04:36:40","slug":"howtoskvm-centos-wiki","status":"publish","type":"post","link":"http:\/\/bucktownbell.com\/?p=1611","title":{"rendered":"HowTos\/KVM"},"content":{"rendered":"<blockquote><p>For the impatient, here is our simple script. We&#8217;ll explain it afterwards. This is assuming that you&#8217;re on a 192.168.1.0\/24 network with no DHCP server.<\/p>\n<p>#!\/bin\/sh<\/p>\n<p>PATH=$PATH:\/usr\/sbin:\/sbin<\/p>\n<p>sudo brctl addbr br0<\/p>\n<p>sudo ifconfig eth0 0.0.0.0<\/p>\n<p>sudo brctl addif br0 eth0<\/p>\n<p>sudo ifconfig br0 192.168.1.120 netmask 255.255.255.0 up<\/p>\n<p>sudo route add -net 192.168.1.0 netmask 255.255.255.0 br0<\/p>\n<p>sudo route add default gw 192.168.1.1 br0<\/p>\n<p>sudo tunctl -b -u john<\/p>\n<p>sudo ifconfig tap0 up<\/p>\n<p>sudo brctl addif br0 tap0<\/p>\n<p>export SDL_VIDEO_X11_DGAMOUSE=0<\/p>\n<p>sudo iptables -I RH-Firewall-1-INPUT -i br0 -j ACCEPT<\/p>\n<p>qemu-kvm ~\/win2k.img -m 512 -net nic -net tap,ifname=tap0,script=no<\/p><\/blockquote>\n<p>via <a href=\"http:\/\/wiki.centos.org\/HowTos\/KVM\">HowTos\/KVM &#8211; CentOS Wiki<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the impatient, here is our simple script. We&#8217;ll explain it afterwards. This is assuming that you&#8217;re on a 192.168.1.0\/24 network with no DHCP server. #!\/bin\/sh PATH=$PATH:\/usr\/sbin:\/sbin sudo brctl addbr br0 sudo ifconfig eth0 0.0.0.0 sudo brctl addif br0 eth0 &hellip; <a href=\"http:\/\/bucktownbell.com\/?p=1611\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81],"tags":[37,104,93],"class_list":["post-1611","post","type-post","status-publish","format-standard","hentry","category-virtualization-2","tag-centos","tag-howto","tag-kvm"],"_links":{"self":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/1611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1611"}],"version-history":[{"count":3,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/1611\/revisions"}],"predecessor-version":[{"id":6293,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/1611\/revisions\/6293"}],"wp:attachment":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1611"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}