LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   What are the advantages of virt-install over qemu-kvm? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/what-are-the-advantages-of-virt-install-over-qemu-kvm-4175414711/)

PeterSteele 07-03-2012 02:19 PM

What are the advantages of virt-install over qemu-kvm?
 
I've been playing around with creating KVM based VMs and have successfully used both qemu-kvm as well as virt-install. Under the covers I see that virt-install actually uses qemu-kvm to launch the VM. VMs launched with install-virt though include an almost bewildering set of options. My simple qemu-kvm command looks like this:

Code:

qemu-kvm -daemonize -enable-kvm -m 1024 -smp 1 -vnc 192.168.1.147:3 -drive format=raw,file=/dev/sdb -net nic,macaddr=DE:AD:BE:EF:52:69 -net tap
The one generated by virt-install on the other hand looks like this:

Code:

qemu-kvm -S -M rhel6.2.0 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name vm-sda -uuid 29b15c6b-1e8a-0761-744c-b3db6f215d47 -nographic -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/vm-sda.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -drive file=/dev/sda,if=none,id=drive-virtio-disk0,format=raw,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=23,id=hostnet0,vhost=on,vhostfd=24 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:3a:33:6c,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
I haven't even figured out what all of the options do. My question though, should I just stick with qemu-kvm to launch my VMs or does virt-install offer advantages that make it worthwhile?

dyasny 07-03-2012 04:54 PM

using libvirt commands makes managing and monitoring kvm hosts much easier.


All times are GMT -5. The time now is 05:34 AM.