Hi,
I wonder if anyone can help me with this, I have been trying to get a vm up and
running for a while now and cant for the life of me work out why it isnt
working. The errors I get arnt very helpful and im at a loss as how to debug
this any further.
Here is the command and output that I get...(Also nothing shows up with virsh
list --all after so its starting to install then dropping out)
Hope someone can help. Thanks!
[root at server ~]# /usr/bin/virt-install -n test01 -r 512 --os-variant=virtio26
-l http://172.16.0.100/iso/centos-5.5/ --nographics --noautoconsole --disk
path=/dev/vg_storage/test01, bus=virtio -w bridge:br0 -x "console=ttyS0
ks=http://172.16.0.100/ks/ks-vm.cfg" -d -v
Sun, 19 Dec 2010 20:45:05 DEBUG Requesting libvirt URI default
Sun, 19 Dec 2010 20:45:05 DEBUG Received libvirt URI 'qemu:///system'
Sun, 19 Dec 2010 20:45:05 DEBUG Requesting virt method 'hvm'
Sun, 19 Dec 2010 20:45:05 DEBUG Received virt method 'hvm'
Sun, 19 Dec 2010 20:45:05 DEBUG Hypervisor name is 'qemu'
Sun, 19 Dec 2010 20:45:05 DEBUG parse_disk: returning
('/dev/vg_storage/test01', None, None, 'disk', None, False,
False, None, True, None)
Sun, 19 Dec 2010 20:45:05 DEBUG Setting size for existing storage to
'10.0'
Sun, 19 Dec 2010 20:45:05 DEBUG Detected storage as type 'block'
Sun, 19 Dec 2010 20:45:05 DEBUG Setting size for existing storage to
'10.0'
Sun, 19 Dec 2010 20:45:05 DEBUG Detected storage as type 'block'
Sun, 19 Dec 2010 20:45:05 DEBUG Setting size for existing storage to
'10.0'
Sun, 19 Dec 2010 20:45:05 DEBUG Detected storage as type 'block'
Sun, 19 Dec 2010 20:45:05 DEBUG Setting os type to 'linux' for
variant 'virtio26'
Sun, 19 Dec 2010 20:45:05 DEBUG DistroInstaller location is a network source.
Starting install...
Sun, 19 Dec 2010 20:45:05 DEBUG Attempting to detect distro:
Sun, 19 Dec 2010 20:45:05 DEBUG HTTP hasFile: didn't find
http://172.16.0.100/iso/centos-5.5/.treeinfo
Sun, 19 Dec 2010 20:45:05 DEBUG HTTP hasFile: didn't find
http://172.16.0.100/iso/centos-5.5/Fedora
Sun, 19 Dec 2010 20:45:05 DEBUG HTTP hasFile: didn't find
http://172.16.0.100/iso/centos-5.5/Server
Sun, 19 Dec 2010 20:45:05 DEBUG HTTP hasFile: didn't find
http://172.16.0.100/iso/centos-5.5/Client
Sun, 19 Dec 2010 20:45:05 DEBUG HTTP hasFile: didn't find
http://172.16.0.100/iso/centos-5.5/RedHat
Sun, 19 Dec 2010 20:45:05 DEBUG Detected a CentOS distro
Sun, 19 Dec 2010 20:45:05 DEBUG Fetching URI:
http://172.16.0.100/iso/centos-5.5/images/pxeboot/vmlinuz
Sun, 19 Dec 2010 20:45:05 DEBUG Saved file to
/var/lib/libvirt/boot/virtinst-vmlinuz.MKBsh1
Retrieving file vmlinuz...
| 1.9 MB 00:00
Sun, 19 Dec 2010 20:45:05 DEBUG Fetching URI:
http://172.16.0.100/iso/centos-5.5/images/pxeboot/initrd.img
Sun, 19 Dec 2010 20:45:05 DEBUG Saved file to
/var/lib/libvirt/boot/virtinst-initrd.img.T2dfhc
Retrieving file initrd.img...
| 7.7 MB 00:00
Sun, 19 Dec 2010 20:45:05 DEBUG Creating guest from:
<domain type='qemu'>
<name>test01</name>
<currentMemory>524288</currentMemory>
<memory>524288</memory>
<uuid>5cbb288b-d9f7-bae4-0d05-9157553f53fe</uuid>
<os>
<type arch='x86_64'>hvm</type>
<kernel>/var/lib/libvirt/boot/virtinst-vmlinuz.oddwKg</kernel>
<initrd>/var/lib/libvirt/boot/virtinst-initrd.img.POxZ5X</initrd>
<cmdline>method=http://172.16.0.100/iso/centos-5.5/ console=ttyS0
ks=http://172.16.0.100/ks/ks-vm.cfg</cmdline>
</os>
<features>
<acpi/><apic/><pae/>
</features>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<vcpu>1</vcpu>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<console type='pty'/>
<disk type='block' device='disk'>
<driver name='qemu' cache='none'/>
<source dev='/dev/vg_storage/test01'/>
<target dev='hda' bus='ide'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<mac address='54:52:00:66:25:22'/>
</interface>
<input type='mouse' bus='ps2'/>
</devices>
</domain>
Sun, 19 Dec 2010 20:44:48 DEBUG Removing
/var/lib/libvirt/boot/virtinst-vmlinuz.oddwKg
Sun, 19 Dec 2010 20:44:48 DEBUG Removing
/var/lib/libvirt/boot/virtinst-initrd.img.POxZ5X
Sun, 19 Dec 2010 20:44:48 ERROR internal error Domain ims-gl-lin01g01
didn't show up
Domain installation may not have been
successful. If it was, you can restart your domain
by running 'virsh start test01'; otherwise, please
restart your installation.
Sun, 19 Dec 2010 20:44:48 ERROR internal error Domain test01 didn't show
up
Traceback (most recent call last):
File "/usr/bin/virt-install", line 889, in ?
main()
File "/usr/bin/virt-install", line 751, in main
start_time, guest.start_install)
File "/usr/bin/virt-install", line 813, in do_install
dom = install_func(conscb, progresscb, wait=(not wait))
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 541,
in start_install
return self._do_install(consolecb, meter, removeOld, wait)
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 633,
in _do_install
self.domain = self.conn.createLinux(install_xml, 0)
File "/usr/lib64/python2.4/site-packages/libvirt.py", line 974, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error Domain ims-gl-lin01g01 didn't show up