Thread: Trouble Installing guest using libvirt
i unable use virt-install or virt-manager create kvm guest.
try following
sudo virt-install --connect qemu:///system -n xpsp2 -r 512 -f windows.qcow2 -s 12 -c /dev/cdrom --vnc --noautoconsole --os-type windows --os-variant winxp
and output
starting install...
creating storage file win 100% |=========================| 12 gb 00:00
error not remove profile 'libvirt-210d0515-2a42-7f79-29ea-4d10685f007b'
domain installation may not have been
successful. if was, can restart domain
running 'virsh start xpsp2'; otherwise, please
restart installation.
error not remove profile 'libvirt-210d0515-2a42-7f79-29ea-4d10685f007b'
traceback (most recent call last):
file "/usr/bin/virt-install", line 943, in <module>
main()
file "/usr/bin/virt-install", line 839, in main
start_time, guest.start_install)
file "/usr/bin/virt-install", line 894, in do_install
dom = install_func(conscb, progresscb, wait=(not wait))
file "/usr/lib/pymodules/python2.6/virtinst/guest.py", line 660, in start_install
return self._do_install(consolecb, meter, removeold, wait)
file "/usr/lib/pymodules/python2.6/virtinst/guest.py", line 758, in _do_install
self.domain = self.conn.createlinux(install_xml, 0)
file "/usr/lib/python2.6/dist-packages/libvirt.py", line 1097, in createlinux
if ret none:raise libvirterror('virdomaincreatelinux() failed', conn=self)
libvirterror: not remove profile 'libvirt-210d0515-2a42-7f79-29ea-4d10685f007b'
the libvirt daemon produces output
sudo /usr/sbin/libvirtd -v
14:49:29.898: error : qemuddomainlookupbyname:3017 : domain not found: no domain matching name 'xpsp2'
14:49:30.249: error : qemuddomainlookupbyuuid:2992 : domain not found: no domain matching uuid '210d0515-2a42-7f79-29ea-4d10685f007b'
14:49:30.277: error : qemuddomainlookupbyname:3017 : domain not found: no domain matching name 'xpsp2'
14:49:30.509: error : qemudreadlogoutput:1347 : internal error process exited while reading console log output
14:49:30.509: error : qemudwaitformonitor:1536 : internal error unable start guest: libvir: security labeling error : error calling aa_change_profile()
libvir: error : internal error '/usr/lib/libvirt/virt-aa-helper -r -u libvirt-210d0515-2a42-7f79-29ea-4d10685f007b' exited non-zero status 1 , signal 0: virt-aa-helper: error: profile not exist
libvir: security labeling error : not remove profile 'libvirt-210d0515-2a42-7f79-29ea-4d10685f007b'
and log file
cat /var/log/libvirt/qemu/xpsp2.log
lc_all=c path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/x11r6/bin home=/home/quinn user=root logname=root qemu_audio_drv=none /usr/bin/kvm -s -m pc-0.12 -enable-kvm -m 512 -smp 1 -name xpsp2 -uuid 210d0515-2a42-7f79-29ea-4d10685f007b -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/xpsp2.monitor,server,nowait -monitor chardev:monitor -localtime -no-reboot -boot d -drive file=/var/log/libvirt/qemu/windows.qcow2,if=ide,index=0,format=raw -drive file=/dev/cdrom,if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:1c:c5:46,vlan=0,name=nic.0 -net tap,fd=42,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:0 -k en-us -vga cirrus
libvir: security labeling error : error calling aa_change_profile()
new libvirt doesn't make sense try , use virt-aa-helper remove profile hasn't been created yet. if run command again profile uuid change.
ideas,
deleted
Forum The Ubuntu Forum Community Ubuntu Specialised Support Virtualisation [ubuntu] Trouble Installing guest using libvirt
Ubuntu
Comments
Post a Comment