Fluent virt-install Windows XP HVM DomU at Solaris (SNV_92) Dom0
Due to known bug virt-install is not approved method for mentioned installation. However, simple bash script (monitor) provides an option to attach cdrom via xm block-attach command immediately when it will be lost by virt-install after first DomU reboot.
Start virt-install for Windows HVM DomU in first terminal session:-
virt-install -n WinXP --hvm -r 1024 --vnc \
-f /export/home/images/winxp.img -s 5 \
At the same time start running following script in second terminal session:-
while [ $COUNTER -eq 1 ]; do
COUNTER=`xm list -l WinXP|grep cdrom|wc -l`
xm block-attach WinXP file:/export/home/isos/winxp.iso hdc:cdrom r
xm reboot WinXP
When scripts exists wait for several seconds.
and issue from same terminal:-
to proceed with install as normal.
Message in first terminal session.
Guest installation complete... restarting guest.
libvir: Xen Daemon error : failed Xen syscall xenDaemonDomainDumpXMLByID failed to find this domain -13551186
exception was: virDomainGetXMLDesc() failed failed Xen syscall xenDaemonDomainDumpXMLByID failed to find this domain -13551186
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start WinXP'; otherwise, please
restart your installation.
may be ignored.