Starting QEMU as disk backend for dom0
Hi guys,
I'm just picking through the xencommons initscript provided with the Xen 4.4 source tarball...
I notice this section starting at line 119:
echo Starting QEMU as disk backend for dom0
test -z "$QEMU_XEN" && QEMU_XEN="${LIBEXEC}/qemu-system-i386" $QEMU_XEN -xen-domid 0 -xen-attach -name dom0 -nographic -M
xenpv -daemonize \
-monitor /dev/null -serial /dev/null -parallel /dev/null \
-pidfile $QEMU_PIDFILECan anyone tell me the purpose of this? I currently get an error due to missing qemu-system-i386 on my system (everything still works?) - but for the life in me, I can't figure out what this is meant to achieve :\
Signature · 6 lines
Steven Haigh Email: [email protected] Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 Fax: (03) 8338 0299
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 9 lines · Steven Haigh
Hi guys,
I'm just picking through the xencommons initscript provided with the Xen 4.4 source tarball...
I notice this section starting at line 119:
echo Starting QEMU as disk backend for dom0
test -z "$QEMU_XEN" && QEMU_XEN="${LIBEXEC}/qemu-system-i386" $QEMU_XEN -xen-domid 0 -xen-attach -name dom0 -nographic -M
Quoted 5 lines
xenpv -daemonize \ -monitor /dev/null -serial /dev/null -parallel /dev/null \ -pidfile $QEMU_PIDFILECan anyone tell me the purpose of this?
It is used if dom0 needs to be able to access a virtual disk in a non-trivial form, i.e. qcow or vhd. In this case a vbd is attached to dom0 which is backed by qdisk in this qemu process. For trivial disk formats like raw files or block partitions dom0 can just access them directly.
This comes into play when you are using pygrub, since dom0 needs to be able to read guest disks. I'm not sure if their are other places. I suppose you can also do "xl block-attach 0 <spec>" if you like e.g. in order to mount a qcow image in dom0 for some reason.
Ian.
Quoted 8 lines
I currently get an error due to
missing qemu-system-i386 on my system (everything still works?) - but for the life in me, I can't figure out what this is meant to achieve :\_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel