{"id":35,"date":"2014-08-19T16:37:38","date_gmt":"2014-08-19T16:37:38","guid":{"rendered":"https:\/\/www.pendragonsfolly.com\/?p=35"},"modified":"2014-09-24T20:02:24","modified_gmt":"2014-09-24T20:02:24","slug":"qemukvm-startup-script","status":"publish","type":"post","link":"https:\/\/www.pendragonsfolly.com\/?p=35","title":{"rendered":"QEMU\/KVM Startup Script"},"content":{"rendered":"<p>Right now I&#8217;m running this with root privileges for the bridged network adapter. \u00a0I really need to find a better, cleaner way to do this&#8230;<\/p>\n<p>#!\/bin\/sh<br \/>\nexport QEMU_AUDIO_DRV=alsa<br \/>\nDISKIMG=\/export\/vm\/win7old.qcow2<br \/>\nAPPIMG=~\/vm\/apps.qcow2<br \/>\nVIRTIMG=\/export\/vm\/virtio-win-0.1-81.iso<br \/>\n#CZ=~\/vm\/clonezilla-live.iso<br \/>\nCZ=~\/vm\/win7-64.iso<br \/>\nqemu-system-x86_64 &#8211;enable-kvm -drive file=${DISKIMG},if=virtio -m 8192 \\<br \/>\n-device virtio-net,netdev=tunnel -netdev tap,id=tunnel,ifname=vnet0 \\<br \/>\n-drive file=${VIRTIMG},index=3,media=cdrom \\<br \/>\n-cdrom ${CZ} \\<br \/>\n-rtc base=localtime,clock=host -smp cores=8 \\<br \/>\n-drive file=${APPIMG},if=virtio \\<br \/>\n-no-quit -no-frame \\<br \/>\n-usbdevice tablet -soundhw all -cpu host -vga vmware<br \/>\n#-usb -device usb-host,hostbus=1,hostaddr=6<br \/>\n# Last part was working for USB pass through &#8212; disabled for now, slow?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Right now I&#8217;m running this with root privileges for the bridged network adapter. \u00a0I really need to find a better, cleaner way to do this&#8230; #!\/bin\/sh export QEMU_AUDIO_DRV=alsa DISKIMG=\/export\/vm\/win7old.qcow2 APPIMG=~\/vm\/apps.qcow2 VIRTIMG=\/export\/vm\/virtio-win-0.1-81.iso #CZ=~\/vm\/clonezilla-live.iso CZ=~\/vm\/win7-64.iso qemu-system-x86_64 &#8211;enable-kvm -drive file=${DISKIMG},if=virtio -m 8192 \\ &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.pendragonsfolly.com\/?p=35\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10,1,3],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-linux","category-qemukvm-work","category-uncategorized","category-work"],"_links":{"self":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35"}],"version-history":[{"count":1,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pendragonsfolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}